Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Join Date
    Jun 2004
    Posts
    31

    Visual Basic DLL

    Hi,
    I need to make Setup Factory call a VB DLL, any ideas how to do it?

    Cheers,
    Warren

    PS: Setup Factory 7 is wicked!!

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Basically, you should be able to use DLL.CallFunction to call the function from the DLL.

  3. #3
    Join Date
    Jun 2004
    Posts
    31
    It dosent work! Cant find function...

    I have a funtion in a class, how do I specify the class? Since all functions have to be in class!

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Be sure the function is exported, and that you are using the exact spelling in your call as the function is aliased as.

  5. #5
    Join Date
    Jun 2004
    Posts
    31
    Quote Originally Posted by Worm
    Be sure the function is exported, and that you are using the exact spelling in your call as the function is aliased as.
    Huh? What you mean?

  6. #6
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    From your previous post, I assumed that you wrote the DLL yourself. In your code, you need to tell the compiler which functions are exported (available to call from another program).

    When you make the call to the DLL, be sure to use the same spelling as you did in your code, it is case sensitive.

  7. #7
    Join Date
    Jun 2004
    Posts
    31
    Yes, in C++!

    You cant do that with VB DLLs

  8. #8
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    I think you will have problems in either VB6 or VB.NET. Unless the DLL was compiled to instantiate your DLL through COM, COM won't help you in this situation. Developing in C++ is the only way that I know for this to be achieved. I'm not a great user of COM so may well be wrong and certainly do not use C++.

    John

  9. #9
    Join Date
    Jun 2004
    Posts
    31
    This is the problem I have! Its a shame that even this version of Setup Factory does not support VB DLLs....

    (I cant code in C++)

    Also, there is a typo bug in the DLL action:

    CallConvention
    The calling convention that AutoPlay will use when calling the DLL
    AutoPlay should say Setup Factory

  10. #10
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Thanks for pointing out that typo.

    Corey Milner
    Creative Director, Indigo Rose Software

  11. #11
    Join Date
    Jun 2004
    Posts
    31
    Quote Originally Posted by Corey
    Thanks for pointing out that typo.
    No problem, however I need a solution to my problem with my VB DLL...

    I can convert the DLL to an EXE, but whatever happens, I need to pass a variable to the EXE, and then the EXE will return a number...

    How would I get this number?

    Cheers,
    Warren

  12. #12
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    Its a shame that even this version of Setup Factory does not support VB DLLs....
    No application can access a VB generated DLL unless the DLL has clever stuff added to it which only available via C++ so not a Setup Factory problem. Your only choice is to have a VB6 front end application pass through from SUF7 to the DLL but then I would ask why bother having the DLL anyway.

    Have you thought whether SUF7 could replicate the DLL functionality at all?

    John

  13. #13
    Join Date
    Jun 2004
    Posts
    31
    It cant replicate what the DLL does, bcause the DLL has encryption routines in it etc...

    However, as I said I can convert to an EXE, but I need to get the result from the EXE?

  14. #14
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    FWIW as far as I know the Crypto encryption plug-in from http://www.autoplay.org is compatible with Setup Factory 7.0...

    Corey Milner
    Creative Director, Indigo Rose Software

  15. #15
    Join Date
    Jun 2004
    Posts
    31
    I need to use the encryption I have in my DLL, as it is the same as that used in my app.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Dependency Module: Visual Basic 6.0 (SP6)
    By Darryl in forum Setup Factory 8.0 Examples
    Replies: 1
    Last Post: 12-17-2010, 04:38 PM
  2. Dependency Module: Visual Basic 5.0 (SP3)
    By Darryl in forum Setup Factory 8.0 Examples
    Replies: 0
    Last Post: 09-02-2004, 09:58 AM
  3. INFO: Visual Basic 6.0 (SP5) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 10:30 AM
  4. INFO: Visual Basic 5.0 (SP3) Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 10:29 AM
  5. INFO: Visual Basic 6.0 (SP5) Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts