Evan Hansen
22nd August 2002, 09:59
Hi all
I would like to establish a "connection" from a C++ application to Baan. My code looks like this:
if (pBaanApp == NULL)
{
CoInitialize(NULL);
HRESULT hr = pBaanApp.CreateInstance("Baan4.Application");
....
....
This works fine when the Baan4 application is not allready started. If it is started, this will fail and hr=-2147467262. I then tried to use this line of code to "get hand on" Baan:
HRESULT hr = pBaanApp.GetActiveObject("Baan4.Application");
This fails and hr=-2147221021.
Can anybody help me ?
Thank you very much in advance.
With best wishes
Evan Hansen
I would like to establish a "connection" from a C++ application to Baan. My code looks like this:
if (pBaanApp == NULL)
{
CoInitialize(NULL);
HRESULT hr = pBaanApp.CreateInstance("Baan4.Application");
....
....
This works fine when the Baan4 application is not allready started. If it is started, this will fail and hr=-2147467262. I then tried to use this line of code to "get hand on" Baan:
HRESULT hr = pBaanApp.GetActiveObject("Baan4.Application");
This fails and hr=-2147221021.
Can anybody help me ?
Thank you very much in advance.
With best wishes
Evan Hansen