Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling VFP DLL from VB with MTS
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00173991
Message ID:
00174882
Views:
32
>What are you doing in the INIT of the VFP? The CURDIR() of a DLL is the SYSTEM32 directory. Is the path set correctly to the data. When you issue a 'SELECT * FROM ???' if it can't find the data, it will prompt.

The Init event fires when I call the CreateInstance method from VB. I do not have any code in the Init event, except for a line that writes a message to a text file to say that it made it to the Init event. Before I do any SELECT's, I first do an OPEN DATABASE (APP_DBC), where APP_DBC includes the DBC file name and full path to it.

As far as I can tell, it never executes a line a VFP code. It locks up before any VFP code executes. The statement it locks up on is the call to the CreateInstance method in VB. This statement creates an instance of the VFP object. No dialogs appear on my workstation prior to or during the lock up. I do not know where to begin to fix the problem.

Just as a test I strip out all the code in my VFP DLL, so that all the public methods returned NULL to VB. This meant I did not create objects within VFP or query/open any foxpro tables. It still locked up. It has to be something obvious. I hope. :)

Thanks for your help!
Previous
Reply
Map
View

Click here to load this message in the networking platform