|
Dernière réponse | |
---|---|
Sujet : Recherche de sources C++ | |
skynet | Cool !!!!!
Ca marche !!!!!! J'ai trouvé pleins de trucs !!!! :bounce: :) MERCI ! ;) |
Aperçu |
---|
Vue Rapide de la discussion |
---|
skynet | Cool !!!!!
Ca marche !!!!!! J'ai trouvé pleins de trucs !!!! :bounce: :) MERCI ! ;) |
ayachi | fais www.google.com
ensuite tu mets "+jeu +"c++" +source" et là tu dois avoir de quoi te régaler. si tu maitrise l'anglais tu mets game à la place de jeu. |
skynet | Effectivement, je viens de mieux regarder les sources, tu t'es bien foutu de ma gueule :D :lol: :fou: Tu me le payeras !!!!!!!! :na: |
skynet | Ayachi, tu es sage :jap: , merci de rétablir la vérité !
En fait j'ai déjà le bouquin (Le grand Livre :) ) Je l'ai pas mal étudier (j'en suis a la moitié (mais quand meme 1 200 pages, ca se lit pas comme ca !) mais j'aimerai avoir des exemples d'applications, principalement pour des petits jeux parce que coté application, le livre en est pauvre ! Gedeon :gun: Méchant farceur :cry: Voila voila :hello: :bounce: |
ayachi | Arreter de vous moquez de lui en montrant les sources générés par visual c++:)
Que veux-tu faire avec des sources ? Si tu débutes, faut t'acheter un livre car étudier des sources comme ça, ça n'a aucun intérêt. Mais si t'en veux, tu fais une recherche et t'en auras des milliers! [edtdd]--Message édité par ayachi--[/edtdd] |
skynet | :sarcastic: :??: Cool !!!!! T'as pas plus simple ? :??: :??: Parce que je débute quand même ! :( :( :( :( :( :( :( :( Remarques c'est pas grave, je matterai ca quand je m'y connaitrai un peu mieux. Merci :bounce: :hello: |
gedeon | Allez pour verdoux (tu as raison je le reconnait, mais j'ai fait vite)
:bounce: :bounce: :bounce: :bounce: // Machine generated IDispatch wrapper class(es) created with ClassWizard ///////////////////////////////////////////////////////////////////////////// // _Collection wrapper class class _Collection : public COleDispatchDriver { public: _Collection() {} // Calls COleDispatchDriver default constructor _Collection(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Collection(const _Collection& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); }; ///////////////////////////////////////////////////////////////////////////// // _DynaCollection wrapper class class _DynaCollection : public COleDispatchDriver { public: _DynaCollection() {} // Calls COleDispatchDriver default constructor _DynaCollection(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _DynaCollection(const _DynaCollection& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); void Append(LPDISPATCH Object); void Delete(const VARIANT& Index); }; ///////////////////////////////////////////////////////////////////////////// // _ADO wrapper class class _ADO : public COleDispatchDriver { public: _ADO() {} // Calls COleDispatchDriver default constructor _ADO(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _ADO(const _ADO& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); }; ////////////////////////////////////////////////// /////////////////////////// // Properties wrapper class class Properties : public COleDispatchDriver { public: Properties() {} // Calls COleDispatchDriver default constructor Properties(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Properties(const Properties& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); LPDISPATCH GetItem(const VARIANT& Index); }; ///////////////////////////////////////////////////////////////////////////// // Property wrapper class class Property : public COleDispatchDriver { public: Property() {} // Calls COleDispatchDriver default constructor Property(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Property(const Property& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: VARIANT GetValue(); void SetValue(const VARIANT& newValue); CString GetName(); long GetType(); long GetAttributes(); void SetAttributes(long nNewValue); }; ///////////////////////////////////////////////////////////////////////////// // Error wrapper class class Error : public COleDispatchDriver { public: Error() {} // Calls COleDispatchDriver default constructor Error(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Error(const Error& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetNumber(); CString GetSource(); CString GetDescription(); CString GetHelpFile(); long GetHelpContext(); CString GetSQLState(); long GetNativeError(); }; ////////////////////////////////////////////////// /////////////////////////// // Errors wrapper class class Errors : public COleDispatchDriver { public: Errors() {} // Calls COleDispatchDriver default constructor Errors(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Errors(const Errors& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); LPDISPATCH GetItem(const VARIANT& Index); void Clear(); }; ///////////////////////////////////////////////////////////////////////////// // Command15 wrapper class class Command15 : public COleDispatchDriver { public: Command15() {} // Calls COleDispatchDriver default constructor Command15(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Command15(const Command15& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); LPDISPATCH GetActiveConnection(); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); CString GetCommandText(); void SetCommandText(LPCTSTR lpszNewValue); long GetCommandTimeout(); void SetCommandTimeout(long nNewValue); BOOL GetPrepared(); void SetPrepared(BOOL bNewValue); LPDISPATCH Execute(VARIANT* RecordsAffected, VARIANT* Parameters, long Options); LPDISPATCH CreateParameter(LPCTSTR Name, long Type, long Direction, long Size, const VARIANT& Value); LPDISPATCH GetParameters(); void SetCommandType(long nNewValue); long GetCommandType(); CString GetName(); void SetName(LPCTSTR lpszNewValue); }; ////////////////////////////////////////////////// /////////////////////////// // _Connection wrapper class class _Connection : public COleDispatchDriver { public: _Connection() {} // Calls COleDispatchDriver default constructor _Connection(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Connection(const _Connection& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); CString GetConnectionString(); void SetConnectionString(LPCTSTR lpszNewValue); long GetCommandTimeout(); void SetCommandTimeout(long nNewValue); long GetConnectionTimeout(); void SetConnectionTimeout(long nNewValue); CString GetVersion(); void Close(); LPDISPATCH Execute(LPCTSTR CommandText, VARIANT* RecordsAffected, long Options); long BeginTrans(); void CommitTrans(); void RollbackTrans(); void Open(LPCTSTR ConnectionString, LPCTSTR UserID, LPCTSTR Password, long Options); LPDISPATCH GetErrors(); CString GetDefaultDatabase(); void SetDefaultDatabase(LPCTSTR lpszNewValue); long GetIsolationLevel(); void SetIsolationLevel(long nNewValue); long GetAttributes(); void SetAttributes(long nNewValue); long GetCursorLocation(); void SetCursorLocation(long nNewValue); long GetMode(); void SetMode(long nNewValue); CString GetProvider(); void SetProvider(LPCTSTR lpszNewValue); long GetState(); LPDISPATCH OpenSchema(long Schema, const VARIANT& Restrictions, const VARIANT& SchemaID); void Cancel(); }; ///////////////////////////////////////////////////////////////////////////// // Connection15 wrapper class class Connection15 : public COleDispatchDriver { public: Connection15() {} // Calls COleDispatchDriver default constructor Connection15(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Connection15(const Connection15& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); CString GetConnectionString(); void SetConnectionString(LPCTSTR lpszNewValue); long GetCommandTimeout(); void SetCommandTimeout(long nNewValue); long GetConnectionTimeout(); void SetConnectionTimeout(long nNewValue); CString GetVersion(); void Close(); LPDISPATCH Execute(LPCTSTR CommandText, VARIANT* RecordsAffected, long Options); long BeginTrans(); void CommitTrans(); void RollbackTrans(); void Open(LPCTSTR ConnectionString, LPCTSTR UserID, LPCTSTR Password, long Options); LPDISPATCH GetErrors(); CString GetDefaultDatabase(); void SetDefaultDatabase(LPCTSTR lpszNewValue); long GetIsolationLevel(); void SetIsolationLevel(long nNewValue); long GetAttributes(); void SetAttributes(long nNewValue); long GetCursorLocation(); void SetCursorLocation(long nNewValue); long GetMode(); void SetMode(long nNewValue); CString GetProvider(); void SetProvider(LPCTSTR lpszNewValue); long GetState(); LPDISPATCH OpenSchema(long Schema, const VARIANT& Restrictions, const VARIANT& SchemaID); }; ///////////////////////////////////////////////////////////////////////////// // _Recordset wrapper class class _Recordset : public COleDispatchDriver { public: _Recordset() {} // Calls COleDispatchDriver default constructor _Recordset(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Recordset(const _Recordset& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetAbsolutePosition(); void SetAbsolutePosition(long nNewValue); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); VARIANT GetActiveConnection(); BOOL GetBof(); VARIANT GetBookmark(); void SetBookmark(const VARIANT& newValue); long GetCacheSize(); void SetCacheSize(long nNewValue); long GetCursorType(); void SetCursorType(long nNewValue); BOOL GetEof(); LPDISPATCH GetFields(); long GetLockType(); void SetLockType(long nNewValue); long GetMaxRecords(); void SetMaxRecords(long nNewValue); long GetRecordCount(); void SetRefSource(LPDISPATCH newValue); void SetSource(LPCTSTR lpszNewValue); VARIANT GetSource(); void AddNew(const VARIANT& FieldList, const VARIANT& Values); void CancelUpdate(); void Close(); void Delete(long AffectRecords); VARIANT GetRows(long Rows, const VARIANT& Start, const VARIANT& Fields); void Move(long NumRecords, const VARIANT& Start); void MoveNext(); void MovePrevious(); void MoveFirst(); void MoveLast(); void Open(const VARIANT& Source, const VARIANT& ActiveConnection, long CursorType, long LockType, long Options); void Requery(long Options); void Update(const VARIANT& Fields, const VARIANT& Values); long GetAbsolutePage(); void SetAbsolutePage(long nNewValue); long GetEditMode(); VARIANT GetFilter(); void SetFilter(const VARIANT& newValue); long GetPageCount(); long GetPageSize(); void SetPageSize(long nNewValue); CString GetSort(); void SetSort(LPCTSTR lpszNewValue); long GetStatus(); long GetState(); void UpdateBatch(long AffectRecords); void CancelBatch(long AffectRecords); long GetCursorLocation(); void SetCursorLocation(long nNewValue); LPDISPATCH NextRecordset(VARIANT* RecordsAffected); BOOL Supports(long CursorOptions); long GetMarshalOptions(); void SetMarshalOptions(long nNewValue); void Find(LPCTSTR Criteria, long SkipRecords, long SearchDirection, const VARIANT& Start); void Cancel(); LPUNKNOWN GetDataSource(); void SetRefDataSource(LPUNKNOWN newValue); LPDISPATCH GetActiveCommand(); void SetStayInSync(BOOL bNewValue); BOOL GetStayInSync(); CString GetString(long StringFormat, long NumRows, LPCTSTR ColumnDelimeter, LPCTSTR RowDelimeter, LPCTSTR NullExpr); CString GetDataMember(); void SetDataMember(LPCTSTR lpszNewValue); long CompareBookmarks(const VARIANT& Bookmark1, const VARIANT& Bookmark2); LPDISPATCH Clone(long LockType); void Resync(long AffectRecords, long ResyncValues); void Seek(const VARIANT& KeyValues, long SeekOption); void SetIndex(LPCTSTR lpszNewValue); CString GetIndex(); void Save(const VARIANT& Destination, long PersistFormat); }; ////////////////////////////////////////////////// /////////////////////////// // Recordset21 wrapper class class Recordset21 : public COleDispatchDriver { public: Recordset21() {} // Calls COleDispatchDriver default constructor Recordset21(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Recordset21(const Recordset21& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetAbsolutePosition(); void SetAbsolutePosition(long nNewValue); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); VARIANT GetActiveConnection(); BOOL GetBof(); VARIANT GetBookmark(); void SetBookmark(const VARIANT& newValue); long GetCacheSize(); void SetCacheSize(long nNewValue); long GetCursorType(); void SetCursorType(long nNewValue); BOOL GetEof(); LPDISPATCH GetFields(); long GetLockType(); void SetLockType(long nNewValue); long GetMaxRecords(); void SetMaxRecords(long nNewValue); long GetRecordCount(); void SetRefSource(LPDISPATCH newValue); void SetSource(LPCTSTR lpszNewValue); VARIANT GetSource(); void AddNew(const VARIANT& FieldList, const VARIANT& Values); void CancelUpdate(); void Close(); void Delete(long AffectRecords); VARIANT GetRows(long Rows, const VARIANT& Start, const VARIANT& Fields); void Move(long NumRecords, const VARIANT& Start); void MoveNext(); void MovePrevious(); void MoveFirst(); void MoveLast(); void Open(const VARIANT& Source, const VARIANT& ActiveConnection, long CursorType, long LockType, long Options); void Requery(long Options); void Update(const VARIANT& Fields, const VARIANT& Values); long GetAbsolutePage(); void SetAbsolutePage(long nNewValue); long GetEditMode(); VARIANT GetFilter(); void SetFilter(const VARIANT& newValue); long GetPageCount(); long GetPageSize(); void SetPageSize(long nNewValue); CString GetSort(); void SetSort(LPCTSTR lpszNewValue); long GetStatus(); long GetState(); void UpdateBatch(long AffectRecords); void CancelBatch(long AffectRecords); long GetCursorLocation(); void SetCursorLocation(long nNewValue); LPDISPATCH NextRecordset(VARIANT* RecordsAffected); BOOL Supports(long CursorOptions); long GetMarshalOptions(); void SetMarshalOptions(long nNewValue); void Find(LPCTSTR Criteria, long SkipRecords, long SearchDirection, const VARIANT& Start); void Cancel(); LPUNKNOWN GetDataSource(); void SetRefDataSource(LPUNKNOWN newValue); LPDISPATCH GetActiveCommand(); void SetStayInSync(BOOL bNewValue); BOOL GetStayInSync(); CString GetString(long StringFormat, long NumRows, LPCTSTR ColumnDelimeter, LPCTSTR RowDelimeter, LPCTSTR NullExpr); CString GetDataMember(); void SetDataMember(LPCTSTR lpszNewValue); long CompareBookmarks(const VARIANT& Bookmark1, const VARIANT& Bookmark2); LPDISPATCH Clone(long LockType); void Resync(long AffectRecords, long ResyncValues); void Seek(const VARIANT& KeyValues, long SeekOption); void SetIndex(LPCTSTR lpszNewValue); CString GetIndex(); }; ///////////////////////////////////////////////////////////////////////////// // Recordset20 wrapper class class Recordset20 : public COleDispatchDriver { public: Recordset20() {} // Calls COleDispatchDriver default constructor Recordset20(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Recordset20(const Recordset20& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetAbsolutePosition(); void SetAbsolutePosition(long nNewValue); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); VARIANT GetActiveConnection(); BOOL GetBof(); VARIANT GetBookmark(); void SetBookmark(const VARIANT& newValue); long GetCacheSize(); void SetCacheSize(long nNewValue); long GetCursorType(); void SetCursorType(long nNewValue); BOOL GetEof(); LPDISPATCH GetFields(); long GetLockType(); void SetLockType(long nNewValue); long GetMaxRecords(); void SetMaxRecords(long nNewValue); long GetRecordCount(); void SetRefSource(LPDISPATCH newValue); void SetSource(LPCTSTR lpszNewValue); VARIANT GetSource(); void AddNew(const VARIANT& FieldList, const VARIANT& Values); void CancelUpdate(); void Close(); void Delete(long AffectRecords); VARIANT GetRows(long Rows, const VARIANT& Start, const VARIANT& Fields); void Move(long NumRecords, const VARIANT& Start); void MoveNext(); void MovePrevious(); void MoveFirst(); void MoveLast(); void Open(const VARIANT& Source, const VARIANT& ActiveConnection, long CursorType, long LockType, long Options); void Requery(long Options); void Update(const VARIANT& Fields, const VARIANT& Values); long GetAbsolutePage(); void SetAbsolutePage(long nNewValue); long GetEditMode(); VARIANT GetFilter(); void SetFilter(const VARIANT& newValue); long GetPageCount(); long GetPageSize(); void SetPageSize(long nNewValue); CString GetSort(); void SetSort(LPCTSTR lpszNewValue); long GetStatus(); long GetState(); void UpdateBatch(long AffectRecords); void CancelBatch(long AffectRecords); long GetCursorLocation(); void SetCursorLocation(long nNewValue); LPDISPATCH NextRecordset(VARIANT* RecordsAffected); BOOL Supports(long CursorOptions); long GetMarshalOptions(); void SetMarshalOptions(long nNewValue); void Find(LPCTSTR Criteria, long SkipRecords, long SearchDirection, const VARIANT& Start); void Cancel(); LPUNKNOWN GetDataSource(); void SetRefDataSource(LPUNKNOWN newValue); LPDISPATCH GetActiveCommand(); void SetStayInSync(BOOL bNewValue); BOOL GetStayInSync(); CString GetString(long StringFormat, long NumRows, LPCTSTR ColumnDelimeter, LPCTSTR RowDelimeter, LPCTSTR NullExpr); CString GetDataMember(); void SetDataMember(LPCTSTR lpszNewValue); long CompareBookmarks(const VARIANT& Bookmark1, const VARIANT& Bookmark2); LPDISPATCH Clone(long LockType); void Resync(long AffectRecords, long ResyncValues); }; ////////////////////////////////////////////////// /////////////////////////// // Recordset15 wrapper class class Recordset15 : public COleDispatchDriver { public: Recordset15() {} // Calls COleDispatchDriver default constructor Recordset15(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Recordset15(const Recordset15& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetAbsolutePosition(); void SetAbsolutePosition(long nNewValue); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); VARIANT GetActiveConnection(); BOOL GetBof(); VARIANT GetBookmark(); void SetBookmark(const VARIANT& newValue); long GetCacheSize(); void SetCacheSize(long nNewValue); long GetCursorType(); void SetCursorType(long nNewValue); BOOL GetEof(); LPDISPATCH GetFields(); long GetLockType(); void SetLockType(long nNewValue); long GetMaxRecords(); void SetMaxRecords(long nNewValue); long GetRecordCount(); void SetRefSource(LPDISPATCH newValue); void SetSource(LPCTSTR lpszNewValue); VARIANT GetSource(); void AddNew(const VARIANT& FieldList, const VARIANT& Values); void CancelUpdate(); void Close(); void Delete(long AffectRecords); VARIANT GetRows(long Rows, const VARIANT& Start, const VARIANT& Fields); void Move(long NumRecords, const VARIANT& Start); void MoveNext(); void MovePrevious(); void MoveFirst(); void MoveLast(); void Open(const VARIANT& Source, const VARIANT& ActiveConnection, long CursorType, long LockType, long Options); void Requery(long Options); void Update(const VARIANT& Fields, const VARIANT& Values); long GetAbsolutePage(); void SetAbsolutePage(long nNewValue); long GetEditMode(); VARIANT GetFilter(); void SetFilter(const VARIANT& newValue); long GetPageCount(); long GetPageSize(); void SetPageSize(long nNewValue); CString GetSort(); void SetSort(LPCTSTR lpszNewValue); long GetStatus(); long GetState(); void UpdateBatch(long AffectRecords); void CancelBatch(long AffectRecords); long GetCursorLocation(); void SetCursorLocation(long nNewValue); LPDISPATCH NextRecordset(VARIANT* RecordsAffected); BOOL Supports(long CursorOptions); long GetMarshalOptions(); void SetMarshalOptions(long nNewValue); void Find(LPCTSTR Criteria, long SkipRecords, long SearchDirection, const VARIANT& Start); }; ///////////////////////////////////////////////////////////////////////////// // Fields wrapper class class Fields : public COleDispatchDriver { public: Fields() {} // Calls COleDispatchDriver default constructor Fields(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Fields(const Fields& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); LPDISPATCH GetItem(const VARIANT& Index); void Delete(const VARIANT& Index); void Append(LPCTSTR Name, long Type, long DefinedSize, long Attrib, const VARIANT& FieldValue); void Update(); void Resync(long ResyncValues); void CancelUpdate(); }; ////////////////////////////////////////////////// /////////////////////////// // Fields20 wrapper class class Fields20 : public COleDispatchDriver { public: Fields20() {} // Calls COleDispatchDriver default constructor Fields20(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Fields20(const Fields20& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); LPDISPATCH GetItem(const VARIANT& Index); void Delete(const VARIANT& Index); }; ///////////////////////////////////////////////////////////////////////////// // Fields15 wrapper class class Fields15 : public COleDispatchDriver { public: Fields15() {} // Calls COleDispatchDriver default constructor Fields15(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Fields15(const Fields15& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); LPDISPATCH GetItem(const VARIANT& Index); }; ///////////////////////////////////////////////////////////////////////////// // Field wrapper class class Field : public COleDispatchDriver { public: Field() {} // Calls COleDispatchDriver default constructor Field(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Field(const Field& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetActualSize(); long GetAttributes(); long GetDefinedSize(); CString GetName(); long GetType(); VARIANT GetValue(); void SetValue(const VARIANT& newValue); // method 'GetPrecision' not emitted because of invalid return type or parameter type // method 'GetNumericScale' not emitted because of invalid return type or parameter type void AppendChunk(const VARIANT& Data); VARIANT GetChunk(long Length); VARIANT GetOriginalValue(); VARIANT GetUnderlyingValue(); LPUNKNOWN GetDataFormat(); void SetRefDataFormat(LPUNKNOWN newValue); // method 'SetPrecision' not emitted because of invalid return type or parameter type // method 'SetNumericScale' not emitted because of invalid return type or parameter type void SetType(long nNewValue); void SetDefinedSize(long nNewValue); void SetAttributes(long nNewValue); long GetStatus(); }; ///////////////////////////////////////////////////////////////////////////// // Field20 wrapper class class Field20 : public COleDispatchDriver { public: Field20() {} // Calls COleDispatchDriver default constructor Field20(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Field20(const Field20& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetActualSize(); long GetAttributes(); long GetDefinedSize(); CString GetName(); long GetType(); VARIANT GetValue(); void SetValue(const VARIANT& newValue); // method 'GetPrecision' not emitted because of invalid return type or parameter type // method 'GetNumericScale' not emitted because of invalid return type or parameter type void AppendChunk(const VARIANT& Data); VARIANT GetChunk(long Length); VARIANT GetOriginalValue(); VARIANT GetUnderlyingValue(); LPUNKNOWN GetDataFormat(); void SetRefDataFormat(LPUNKNOWN newValue); // method 'SetPrecision' not emitted because of invalid return type or parameter type // method 'SetNumericScale' not emitted because of invalid return type or parameter type void SetType(long nNewValue); void SetDefinedSize(long nNewValue); void SetAttributes(long nNewValue); }; ///////////////////////////////////////////////////////////////////////////// // _Parameter wrapper class class _Parameter : public COleDispatchDriver { public: _Parameter() {} // Calls COleDispatchDriver default constructor _Parameter(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Parameter(const _Parameter& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); CString GetName(); void SetName(LPCTSTR lpszNewValue); VARIANT GetValue(); void SetValue(const VARIANT& newValue); long GetType(); void SetType(long nNewValue); void SetDirection(long nNewValue); long GetDirection(); // method 'SetPrecision' not emitted because of invalid return type or parameter type // method 'GetPrecision' not emitted because of invalid return type or parameter type // method 'SetNumericScale' not emitted because of invalid return type or parameter type // method 'GetNumericScale' not emitted because of invalid return type or parameter type void SetSize(long nNewValue); long GetSize(); void AppendChunk(const VARIANT& Val); long GetAttributes(); void SetAttributes(long nNewValue); }; ///////////////////////////////////////////////////////////////////////////// // Parameters wrapper class class Parameters : public COleDispatchDriver { public: Parameters() {} // Calls COleDispatchDriver default constructor Parameters(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Parameters(const Parameters& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetCount(); void Refresh(); void Append(LPDISPATCH Object); void Delete(const VARIANT& Index); LPDISPATCH GetItem(const VARIANT& Index); }; ///////////////////////////////////////////////////////////////////////////// // _Command wrapper class class _Command : public COleDispatchDriver { public: _Command() {} // Calls COleDispatchDriver default constructor _Command(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Command(const _Command& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); LPDISPATCH GetActiveConnection(); void SetRefActiveConnection(LPDISPATCH newValue); void SetActiveConnection(const VARIANT& newValue); CString GetCommandText(); void SetCommandText(LPCTSTR lpszNewValue); long GetCommandTimeout(); void SetCommandTimeout(long nNewValue); BOOL GetPrepared(); void SetPrepared(BOOL bNewValue); LPDISPATCH Execute(VARIANT* RecordsAffected, VARIANT* Parameters, long Options); LPDISPATCH CreateParameter(LPCTSTR Name, long Type, long Direction, long Size, const VARIANT& Value); LPDISPATCH GetParameters(); void SetCommandType(long nNewValue); long GetCommandType(); CString GetName(); void SetName(LPCTSTR lpszNewValue); long GetState(); void Cancel(); }; ///////////////////////////////////////////////////////////////////////////// // ConnectionEvents wrapper class class ConnectionEvents : public COleDispatchDriver { public: ConnectionEvents() {} // Calls COleDispatchDriver default constructor ConnectionEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} ConnectionEvents(const ConnectionEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: // method 'InfoMessage' not emitted because of invalid return type or parameter type // method 'BeginTransComplete' not emitted because of invalid return type or parameter type // method 'CommitTransComplete' not emitted because of invalid return type or parameter type // method 'RollbackTransComplete' not emitted because of invalid return type or parameter type // method 'WillExecute' not emitted because of invalid return type or parameter type // method 'ExecuteComplete' not emitted because of invalid return type or parameter type // method 'WillConnect' not emitted because of invalid return type or parameter type // method 'ConnectComplete' not emitted because of invalid return type or parameter type // method 'Disconnect' not emitted because of invalid return type or parameter type }; ///////////////////////////////////////////////////////////////////////////// // RecordsetEvents wrapper class class RecordsetEvents : public COleDispatchDriver { public: RecordsetEvents() {} // Calls COleDispatchDriver default constructor RecordsetEvents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} RecordsetEvents(const RecordsetEvents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: // method 'WillChangeField' not emitted because of invalid return type or parameter type // method 'FieldChangeComplete' not emitted because of invalid return type or parameter type // method 'WillChangeRecord' not emitted because of invalid return type or parameter type // method 'RecordChangeComplete' not emitted because of invalid return type or parameter type // method 'WillChangeRecordset' not emitted because of invalid return type or parameter type // method 'RecordsetChangeComplete' not emitted because of invalid return type or parameter type // method 'WillMove' not emitted because of invalid return type or parameter type // method 'MoveComplete' not emitted because of invalid return type or parameter type // method 'EndOfRecordset' not emitted because of invalid return type or parameter type // method 'FetchProgress' not emitted because of invalid return type or parameter type // method 'FetchComplete' not emitted because of invalid return type or parameter type }; ///////////////////////////////////////////////////////////////////////////// // _Record wrapper class class _Record : public COleDispatchDriver { public: _Record() {} // Calls COleDispatchDriver default constructor _Record(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Record(const _Record& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); VARIANT GetActiveConnection(); void SetActiveConnection(LPCTSTR lpszNewValue); void SetRefActiveConnection(LPDISPATCH newValue); long GetState(); VARIANT GetSource(); void SetSource(LPCTSTR lpszNewValue); void SetRefSource(LPDISPATCH newValue); long GetMode(); void SetMode(long nNewValue); CString GetParentURL(); CString MoveRecord(LPCTSTR Source, LPCTSTR Destination, LPCTSTR UserName, LPCTSTR Password, long Options, BOOL Async); CString CopyRecord(LPCTSTR Source, LPCTSTR Destination, LPCTSTR UserName, LPCTSTR Password, long Options, BOOL Async); void DeleteRecord(LPCTSTR Source, BOOL Async); void Open(const VARIANT& Source, const VARIANT& ActiveConnection, long Mode, long CreateOptions, long Options, LPCTSTR UserName, LPCTSTR Password); void Close(); LPDISPATCH GetFields(); long GetRecordType(); LPDISPATCH GetChildren(); void Cancel(); }; ///////////////////////////////////////////////////////////////////////////// // IRecFields wrapper class class IRecFields : public COleDispatchDriver { public: IRecFields() {} // Calls COleDispatchDriver default constructor IRecFields(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} IRecFields(const IRecFields& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: void ADOCheck(); }; ///////////////////////////////////////////////////////////////////////////// // _Stream wrapper class class _Stream : public COleDispatchDriver { public: _Stream() {} // Calls COleDispatchDriver default constructor _Stream(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} _Stream(const _Stream& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: long GetSize(); BOOL GetEos(); long GetPosition(); void SetPosition(long nNewValue); long GetType(); void SetType(long nNewValue); long GetLineSeparator(); void SetLineSeparator(long nNewValue); long GetState(); long GetMode(); void SetMode(long nNewValue); CString GetCharset(); void SetCharset(LPCTSTR lpszNewValue); VARIANT Read(long NumBytes); void Open(const VARIANT& Source, long Mode, long Options, LPCTSTR UserName, LPCTSTR Password); void Close(); void SkipLine(); void Write(const VARIANT& Buffer); void SetEOS(); void CopyTo(LPDISPATCH DestStream, long CharNumber); void Flush(); void SaveToFile(LPCTSTR FileName, long Options); void LoadFromFile(LPCTSTR FileName); CString ReadText(long NumChars); void WriteText(LPCTSTR Data, long Options); void Cancel(); }; ///////////////////////////////////////////////////////////////////////////// // Field15 wrapper class class Field15 : public COleDispatchDriver { public: Field15() {} // Calls COleDispatchDriver default constructor Field15(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {} Field15(const Field15& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} // Attributes public: // Operations public: LPDISPATCH GetProperties(); long GetActualSize(); long GetAttributes(); long GetDefinedSize(); CString GetName(); long GetType(); VARIANT GetValue(); void SetValue(const VARIANT& newValue); // method 'GetPrecision' not emitted because of invalid return type or parameter type // method 'GetNumericScale' not emitted because of invalid return type or parameter type void AppendChunk(const VARIANT& Data); VARIANT GetChunk(long Length); VARIANT GetOriginalValue(); VARIANT GetUnderlyingValue(); }; |
skynet | Merci mais ....... :sarcastic: Je vais étudier ca mais tu peux me dire a quoi ca sert ? :??: :hello: |
verdoux | C'est pas terrible comme c++. |
gedeon | Tiens c kdo !
:bounce: :bounce: :bounce: :bounce: :bounce: :bounce: // test6.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; // The title bar text TCHAR szWindowClass[MAX_LOADSTRING]; // The title bar text // Foward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK About(HWND, UINT, WPARAM, LPARAM); void testDB(); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. MSG msg; HACCEL hAccelTable; // Initialize global strings LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadString(hInstance, IDC_TEST6, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Perform application initialization: if (!InitInstance (hInstance, nCmdShow)) { return FALSE; } hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_TEST6); // Main message loop: while (GetMessage(&msg, NULL, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return msg.wParam; } // // FUNCTION: MyRegisterClass() // // PURPOSE: Registers the window class. // // COMMENTS: // // This function and its usage is only necessary if you want this code // to be compatible with Win32 systems prior to the 'RegisterClassEx' // function that was added to Windows 95. It is important to call this function // so that the application will get 'well formed' small icons associated // with it. // ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEX wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = (WNDPROC)WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_TEST6); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = (LPCSTR)IDC_TEST6; wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); return RegisterClassEx(&wcex); } // // FUNCTION: InitInstance(HANDLE, int) // // PURPOSE: Saves instance handle and creates main window // // COMMENTS: // // In this function, we save the instance handle in a global variable and // create and display the main program window. // BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { HWND hWnd; hInst = hInstance; // Store instance handle in our global variable hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); if (!hWnd) { return FALSE; } ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; } // // FUNCTION: WndProc(HWND, unsigned, WORD, LONG) // // PURPOSE: Processes messages for the main window. // // WM_COMMAND - process the application menu // WM_PAINT - Paint the main window // WM_DESTROY - post a quit message and return // // LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR szHello[MAX_LOADSTRING]; LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING); switch (message) { case WM_COMMAND: wmId = LOWORD(wParam); wmEvent = HIWORD(wParam); // Parse the menu selections: switch (wmId) { case IDM_ABOUT: DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here... RECT rt; GetClientRect(hWnd, &rt); DrawText(hdc, szHello, strlen(szHello), &rt, DT_CENTER); EndPaint(hWnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; case WM_LBUTTONDOWN: testDB(); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } // Mesage handler for about box. LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return TRUE; } break; } return FALSE; } void testDB(){ ::CoInitialize(NULL); _variant_t SQLreq; _variant_t szResult; try{ _RecordsetPtr pRst("ADODB.Recordset" ); // Connection String : Voir MSDN pour les drivers, providers adequats (Access, SQLServer, ...) _bstr_t strCnn("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Appli_GREG\\antalis.mdb;" ); SQLreq = "SELECT * FROM Produits"; pRst->Open(SQLreq, strCnn, adOpenStatic, adLockReadOnly, adCmdText); //while (!pRst->ADOEOF){ szResult = pRst->GetFields()->GetItem("marques" )->GetValue(); MessageBox(NULL,(char*) ((_bstr_t) szResult),NULL,MB_OK); pRst->MoveNext(); szResult = ((_bstr_t) pRst->GetFields()->GetItem("marques" )->GetValue()); MessageBox(NULL,(char*) ((_bstr_t)szResult),NULL,MB_OK); pRst->MoveNext(); szResult = ((_bstr_t) pRst->GetFields()->GetItem("marques" )->GetValue()); MessageBox(NULL,(char*) ((_bstr_t)szResult),NULL,MB_OK); pRst->MoveNext(); szResult = ((_bstr_t) pRst->GetFields()->GetItem("marques" )->GetValue()); MessageBox(NULL,(char*) ((_bstr_t)szResult),NULL,MB_OK); pRst->MoveNext(); //} pRst->Close(); }catch (_com_error &e){ MessageBox(NULL,"erreur",NULL,MB_OK); return; } MessageBox(NULL,"ok",NULL,MB_OK); ::CoUninitialize(); } |
skynet | Je recherche pleins de sources C++
Vous avez des bonnes adresses ? Vous pouvez m'en envoyer sur Pikomat@hotmail.com Merci :hello: |