Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CHttpFile::ReadString Pin
Anders Molin4-Jul-01 2:02
professionalAnders Molin4-Jul-01 2:02 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang4-Jul-01 16:04
Winston,Dang4-Jul-01 16:04 
GeneralRe: CHttpFile::ReadString Pin
Winston,Dang5-Jul-01 23:29
Winston,Dang5-Jul-01 23:29 
Generalsmart pointer Pin
Gérald Mercet3-Jul-01 23:39
Gérald Mercet3-Jul-01 23:39 
GeneralRe: smart pointer Pin
Tomasz Sowinski4-Jul-01 0:05
Tomasz Sowinski4-Jul-01 0:05 
GeneralRe: smart pointer Pin
Erik Thompson4-Jul-01 7:36
sitebuilderErik Thompson4-Jul-01 7:36 
GeneralGrid and Databases in VC. Pin
Daniel Visan3-Jul-01 23:13
Daniel Visan3-Jul-01 23:13 
GeneralRe: Grid and Databases in VC. Pin
4-Jul-01 1:33
suss4-Jul-01 1:33 
Why not a grid written in C and OleDB/ODBC as DB support? Implement into a DLL a window (not especially an ActiveX), export Register/Unregister from this dll, properties and methods (as every ATL/MFC-like wizard do) as (example):
BOOL
GridCtl_GetColumns(
  IN HWND hwndCtl,
  OUT PGRIDCOLUMNS **ppColumns
);

etc., implement your own paint for header, lines, columns, cells etc.?

The DB support: you can choose from the myriad of DB interfaces available (starting from ODBC and DB-Library and ending with OleDB, ADO, DAO, Newton binome of A,D and O - Smile | :) - ) and create another dll (or in the same) where you implement the "data source": in the same way, register, unregister, general properties (Server/Source, Catalog/Database etc.), methods/properties (IsBOF, IsEOF, NextRow, Query, Cancel, SetSql, RowCount, GetSql etc.), eventually expose a little rectangle with rewind, back button, in the middle a static with some informations (Connected, Row n Of N etc.) and ending with next/forward buttons (something like: "<< < Row 1 of 10 > >>").

If you need an activex, ok, the ATL object wizard should be a good starting point. Implement what you need (connection points, sinks, events, all the usual stuff).

Frankly, I have seen many controls, from simple windows to ActiveX. But I never seen a grid or a data source to like. So I decided to wrote my controls (including grid) in C. It works, until now.

(RO: Mai pe romaneste: ce faci cu mina ta... Smile | :) )

Cristian 'Sardaukar' Amarie
GeneralProblem with throwing class objects Pin
Malcolm McMahon3-Jul-01 22:47
Malcolm McMahon3-Jul-01 22:47 
GeneralRe: Problem with throwing class objects Pin
Tomasz Sowinski3-Jul-01 23:54
Tomasz Sowinski3-Jul-01 23:54 
GeneralRe: Problem with throwing class objects Pin
Malcolm McMahon4-Jul-01 0:18
Malcolm McMahon4-Jul-01 0:18 
GeneralRe: Problem with throwing class objects Pin
Tomasz Sowinski4-Jul-01 0:35
Tomasz Sowinski4-Jul-01 0:35 
GeneralTHE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan3-Jul-01 22:41
Daniel Visan3-Jul-01 22:41 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 0:17
Tomasz Sowinski4-Jul-01 0:17 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 1:31
Daniel Visan4-Jul-01 1:31 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 1:51
Tomasz Sowinski4-Jul-01 1:51 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Daniel Visan4-Jul-01 5:22
Daniel Visan4-Jul-01 5:22 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 5:48
Tomasz Sowinski4-Jul-01 5:48 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Justin Hallet4-Jul-01 10:04
Justin Hallet4-Jul-01 10:04 
GeneralRe: THE STRANGEST WM_TIMER ISSUE (only for gurus) Pin
Tomasz Sowinski4-Jul-01 10:24
Tomasz Sowinski4-Jul-01 10:24 
QuestionIs there a NULL for member pointers? Pin
Malcolm McMahon3-Jul-01 22:26
Malcolm McMahon3-Jul-01 22:26 
AnswerRe: Is there a NULL for member pointers? Pin
Tomasz Sowinski4-Jul-01 0:32
Tomasz Sowinski4-Jul-01 0:32 
Questionhow to set g723.1 when waveinopen Pin
3-Jul-01 22:22
suss3-Jul-01 22:22 
AnswerRe: how to set g723.1 when waveinopen Pin
4-Jul-01 23:48
suss4-Jul-01 23:48 
GeneralRe: how to set g723.1 when waveinopen Pin
hapcoer5-Jul-01 22:29
hapcoer5-Jul-01 22:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.