Indigo Rose Software
  #1  
Old 09-23-2004
Waza04 Waza04 is offline
Forum Member
 
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!!
Reply With Quote
  #2  
Old 09-23-2004
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Basically, you should be able to use DLL.CallFunction to call the function from the DLL.
Reply With Quote
  #3  
Old 09-23-2004
Waza04 Waza04 is offline
Forum Member
 
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!
Reply With Quote
  #4  
Old 09-23-2004
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Be sure the function is exported, and that you are using the exact spelling in your call as the function is aliased as.
Reply With Quote
  #5  
Old 09-23-2004
Waza04 Waza04 is offline
Forum Member
 
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?
Reply With Quote
  #6  
Old 09-23-2004
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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.
Reply With Quote
  #7  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
Join Date: Jun 2004
Posts: 31
Yes, in C++!

You cant do that with VB DLLs
Reply With Quote
  #8  
Old 09-24-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
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
Reply With Quote
  #9  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
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:

Quote:
CallConvention
The calling convention that AutoPlay will use when calling the DLL
AutoPlay should say Setup Factory
Reply With Quote
  #10  
Old 09-24-2004
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Thanks for pointing out that typo.

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
  #11  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
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
Reply With Quote
  #12  
Old 09-24-2004
JXBURNS's Avatar
JXBURNS JXBURNS is offline
Forum Member
 
Join Date: Apr 2001
Location: Haverhill, Suffolk, UK
Posts: 333
Quote:
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
Reply With Quote
  #13  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
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?
Reply With Quote
  #14  
Old 09-24-2004
Corey's Avatar
Corey Corey is offline
Registered User
 
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
Reply With Quote
  #15  
Old 09-24-2004
Waza04 Waza04 is offline
Forum Member
 
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dependency Module: Visual Basic 6.0 (SP6) Darryl Setup Factory 8.0 Examples 0 09-02-2004 12:48 PM
Dependency Module: Visual Basic 5.0 (SP3) Darryl Setup Factory 8.0 Examples 0 09-02-2004 10:58 AM
INFO: Visual Basic 6.0 (SP5) Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 11:30 AM
INFO: Visual Basic 5.0 (SP3) Runtime Notes Desmond Setup Factory 6.0 Knowledge Base 0 11-28-2003 11:29 AM
INFO: Visual Basic 6.0 (SP5) Runtime Support Module Support Setup Factory 6.0 Knowledge Base 0 10-30-2002 04:00 PM


All times are GMT -6. The time now is 04:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software