Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO #import directive
Message
De
03/08/2000 12:49:26
 
 
À
03/08/2000 12:16:44
Information générale
Forum:
Visual C++
Catégorie:
ActiveX
Divers
Thread ID:
00400430
Message ID:
00400469
Vues:
16
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();
}
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform