Hello,

perhaps your DLL has a bug or the Declare ... As Object is not correct.

We offer a working DLL for download at the page
http://www.informatikfuchs.de/Software/GLPK/glpkVB.htm
but this page is in German.

Regards
Gottfried Lindner
 
Mail: [EMAIL PROTECTED]
Besuchen Sie unsere Domain: www.softwarefuchs.de 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Dienstag, 24. Mai 2005 04:12
To: [email protected]
Subject: [Help-glpk] Calling GLPK from VB scripts

I am having difficulty calling glp_lpx_create_prob in the glpk48.dll
from a VB script. (I have no choice but to use VB script So I won't
waste time and space explaining why). The following fragment hopefully
will be clear

' ======
Declare Function glp_lpx_create_prob Lib "glpk48.dll () As Object
Sub Main 
Dim lp_prob As Object
...
Set lp_prob = glp_lpx_create_prob()
....
End Sub
' =======

The script dies at the "Set" point.
I have also tried the Declare and Dim as type LPX but this does not work
either.

Hopefully someone can put me on the right track.

Max.


_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk




_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to