General information
Category:
Coding, syntax & commands
>I need to run a VFP 3.0 program that PACK's the database. Visual C++ won't let me execute the command directly because it won't allow exclusive access to the VFP database (It is a snapshot type). So, I wrote a VFP program that goes through each table and issues a PACK command. I am trying to execute the program from Visual C++ using the following:
>
>// i = CreateProcess("C:\\esdk2030\\esdkpack.exe", NULL, NULL, NULL, TRUE, NULL, NULL, NULL, NULL, NULL);
>
>The preceeding statement runs without errors but the value of i is 0(zero) which means it didn't really execute the esdkpack.exe program.
>
>Any ideas on how to execute a VFP program from Visual C++. Thanks. Don West.
Build your app as OLE DLL instead of EXE. You should be able to use it like an OCX/ActiveX from C++. I think you should also register your DLL using REGSRV32.EXE program.
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only