Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO #import directive
Message
From
03/08/2000 12:49:26
 
 
To
03/08/2000 12:16:44
General information
Forum:
Visual C++
Category:
ActiveX
Miscellaneous
Thread ID:
00400430
Message ID:
00400469
Views:
15
First thing to check is wether or not the #import created the header and implementation files. For example, the following #import line should have created msado15.tlh and msado15.tli (tlh = header, tli = implementation).

#include
#include
#include

#import no_namespace rename( "EOF", "adoEOF" )

void main()
{
HRESULT hResult = S_OK;
_ConnectionPtr pConnection = NULL;

if(FAILED(::CoInitialize(NULL)))
return;

hResult = pConnection.CreateInstance(__uuidof(Connection));
pConnection = NULL;

::CoUninitialize();
}
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform