Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Pick up String Array from a VB6 DLL

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,30516
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Pick up String Array from a VB6 DLL
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Pick up String Array from a VB6 DLL - 2/1/2006 3:59:14 AM   
  Mr.No

 

Posts: 6
Score: 0
Joined: 11/18/2005
Status: offline
Hi

I have a VB6 DLL that I've instantiated from a VBScript script and I want to pick up the String array returned by one of the methods but I'm getting a type mismatch error. Here's an example of what I'm doing.


      

The VB6 DLL exposes a method as follows:


      


Is there anyway I could pick up the string array exposed by my VB6 DLL?

Thanks
 
 
Post #: 1
 
 RE: Pick up String Array from a VB6 DLL - 2/1/2006 4:56:58 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
Does this work?

Msgbox CStr(pvArrBatches(0))

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Mr.No)
 
 
Post #: 2
 
 RE: Pick up String Array from a VB6 DLL - 2/3/2006 8:32:04 AM   
  Mr.No

 

Posts: 6
Score: 0
Joined: 11/18/2005
Status: offline
Hi Ebgreen

No, the Msgbox CStr(pvArrBatches(0)) also generates an error.
In the meantime I've found this link http://www.dotnet247.com/247reference/msgs/42/211620.aspx which states that you can only pick up arrays of variants.

Thanks for your input

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Pick up String Array from a VB6 DLL - 2/3/2006 8:42:28 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
Hmmm...annoying but not completely unexpected since all VBScript vars are variants.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to Mr.No)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Pick up String Array from a VB6 DLL Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts