Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with VB DLL
Message
From
08/08/2013 12:48:00
 
 
To
08/08/2013 11:01:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01580026
Message ID:
01580062
Views:
41
>Yes
>I Tried:
>
>DECLARE Integer HvsCodeOpen IN HvsCodeDll.dll string dbDirectory
>DECLARE INTEGER vbHvsCodeTeze IN HvsCodeDll STRING @vHvsCode, STRING @vHvsAdr
>test=HvsCodeOpen("D:\DllTest\") &&Opens the Database Access MDB
>
>vHvsAdr="DEU"+chr(0)+"30559"+chr(0)+"Hannover" + chr(0)+ "Strasse 1"+chr(0)
>vHvsCode=REPLICATE(CHR(0),512)
>
>retval=vbHvsCodeTeze(@vHvsCode,@vHvsAdr)
>
>
>But still get only get a message "declare dll caused an exception"
>
>can you point out where my mistake is ?

see anatoliys reply - if that one still throws an error, try 2nd parameter as value, not reference. In prev posts I also described the needed structure.
Previous
Reply
Map
View

Click here to load this message in the networking platform