Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to run a VFP program from Visual C++
Message
 
À
15/10/1997 16:13:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00054681
Message ID:
00054800
Vues:
37
>>>>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.
>>>
>>>VFP exe requires ESL file at least. Basically, you should run setup process to install and run it smoothly. But before you will start, I guess simple test (try to run it directly from Win Explorer) would be relevant.
>>
>>When I run it with Explorer, it works. I ran Setup Wizard and created a Setup. Then ran setup and installed it in the C:\ESDK2030 directory. If I click on the icon and run it, it works. When I try to run it from C++ nothing happens. ????? Thanks for the suggestions. I'll keep digging. Don West.
>
>At least, you see now, that is not VFP problem. I am not proficient in VC++, so cannot advise there.

I changed to the WinExec function and it worked. Thanks. Don West.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform