Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiling Error
Message
De
17/11/2000 12:39:30
 
 
À
17/11/2000 11:59:57
Information générale
Forum:
Visual C++
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00442617
Message ID:
00443104
Vues:
15
OK, did what you said. The result was the following:

C:\1davids\CTBO\Addresses.cpp(68) : error C2664: 'GetRecordset' : cannot convert parameter 2 from 'struct IDispatch ** ' to 'struct _Recordset ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\1davids\CTBO\Addresses.cpp(99) : error C2664: 'GetRecordset' : cannot convert parameter 2 from 'struct IDispatch ** ' to 'struct _Recordset ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

This was repeated for each of my .cpp files; except for the core file (ctbo10.cpp) which threw the following:

c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject' : cannot instantiate abstract class due to following members:
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator >::CreateInstance(void *,const struct _GUID
&,void ** )'

Knowing as little as I do about this stuff, it would seem that somewhere I have the GetRecordset function defined poorly, but the IDL file shows it as:

[object, uuid(0181AC77-CC93-11D2-9B87-00A0C9762359), dual, hidden, pointer_default(unique) ]
interface IVFDataAccess : IDispatch {
[id(1), helpstring("Generates a unique ID for the given name")] HRESULT GenerateID([in] BSTR Name, [out, retval] long* NewID);
[id(2), helpstring("Executes a command")] HRESULT Execute([in] BSTR Statement);
[id(3), helpstring("Retreives a recordset")] HRESULT GetRecordset([in] BSTR Query, [out, retval] _Recordset** ppIRS);
[id(4), helpstring("Begins a transaction")] HRESULT BeginTrans([out, retval] long* TransDepth);
[id(5), helpstring("Commits a transaction")] HRESULT CommitTrans();
[id(6), helpstring("Rolls back a transaction")] HRESULT RollbackTrans();
[id(7), propget, helpstring("Retrieves an error collection for a failed operation")] HRESULT Errors([out, retval] Errors** ppErrors);
[id(8), helpstring("Creates a command object")] HRESULT CreateCommand([out, retval] _Command** ppCommand);
[id(9), helpstring("Executes a command object")] HRESULT ExecuteCommand([in] IDispatch* CmdObject);
};

I hope this helps someone, 'cuz I'm lost.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform