nitindangare
Programmer
Hi all,
I am using VC++ to access the functions exported by the GM5s32.dll/GM6s32.dll. I need to support both dBASE and SQL Server as back-end. My aim is to schedule an Activity using WriteSchedule (business logic function) through my Application.
Here is what I am doing:
1. LoadLibrary(GM5s32.dll)
2. Get the function pointers for all the required function to achieve my target such as GMW_LoadBDE, GMW_UnLoadBDE, etc.
3. Load the BDE by calling GMW_LoadBDE(...)
4. Create an Name/Value pair GMW_NV_Create()
5. Set all the required fields using the GMW_NV_SetValue(..).
6. Using GMW_Execute I am calling the business logic function GMW_Execute("WriteSchedule",..)
7. Delete the Name/Value pair using GMW_NV_Delete()
8. Unload the BDE using GMW_UnloadBDE(..)
9. Finally Unload the DLL using FreeLibrary(...)
These above 9 step are executed perfectly when the back-end is dBASE, and I can see an Scheduled Activity in GM.
When I change GM's back-end to SQL Server, the GMW_Execute() in step 6 returns a error "0". Which implies Failure to Schedule the Activity.
Please let me know what is the step that I missed in case of SQL Server as back-end? I am stuck in this case and need to make it work for both the back-ends. Please note I am not changing any paths that I pass to LoadBDE(...) in both the case (dBASE and SQL Server).
My call to LoadBDE is as follows:
LoadBDE("c:\program files\goldmine", "c:\program files\goldmine\GMBase", "c:\program files\goldmine\common", "", ""
Please let me know is there anything else I need to do? in case of SQL Server.
Any help will be appreciated. Desporately need help...
Thanks in advance,
you can send a mail to nitin_dangare@yahoo.com
Nitin Dangare
I am using VC++ to access the functions exported by the GM5s32.dll/GM6s32.dll. I need to support both dBASE and SQL Server as back-end. My aim is to schedule an Activity using WriteSchedule (business logic function) through my Application.
Here is what I am doing:
1. LoadLibrary(GM5s32.dll)
2. Get the function pointers for all the required function to achieve my target such as GMW_LoadBDE, GMW_UnLoadBDE, etc.
3. Load the BDE by calling GMW_LoadBDE(...)
4. Create an Name/Value pair GMW_NV_Create()
5. Set all the required fields using the GMW_NV_SetValue(..).
6. Using GMW_Execute I am calling the business logic function GMW_Execute("WriteSchedule",..)
7. Delete the Name/Value pair using GMW_NV_Delete()
8. Unload the BDE using GMW_UnloadBDE(..)
9. Finally Unload the DLL using FreeLibrary(...)
These above 9 step are executed perfectly when the back-end is dBASE, and I can see an Scheduled Activity in GM.
When I change GM's back-end to SQL Server, the GMW_Execute() in step 6 returns a error "0". Which implies Failure to Schedule the Activity.
Please let me know what is the step that I missed in case of SQL Server as back-end? I am stuck in this case and need to make it work for both the back-ends. Please note I am not changing any paths that I pass to LoadBDE(...) in both the case (dBASE and SQL Server).
My call to LoadBDE is as follows:
LoadBDE("c:\program files\goldmine", "c:\program files\goldmine\GMBase", "c:\program files\goldmine\common", "", ""
Please let me know is there anything else I need to do? in case of SQL Server.
Any help will be appreciated. Desporately need help...
Thanks in advance,
you can send a mail to nitin_dangare@yahoo.com
Nitin Dangare