Click here to Skip to main content
15,916,838 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Completely and Totally OT Pin
Atlantys27-Oct-03 14:08
Atlantys27-Oct-03 14:08 
GeneralRe: Completely and Totally OT Pin
Michael Dunn27-Oct-03 14:39
sitebuilderMichael Dunn27-Oct-03 14:39 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 5:37
Jörgen Sigvardsson26-Oct-03 5:37 
GeneralRe: Arrays, heap, delete and crash again... Pin
Rickard Andersson2026-Oct-03 12:26
Rickard Andersson2026-Oct-03 12:26 
GeneralRe: Arrays, heap, delete and crash again... Pin
Jörgen Sigvardsson26-Oct-03 12:30
Jörgen Sigvardsson26-Oct-03 12:30 
GeneralVC++ Runtime Installation Error Pin
Roger Wright26-Oct-03 4:20
professionalRoger Wright26-Oct-03 4:20 
GeneralRe: VC++ Runtime Installation Error Pin
Gary R. Wheeler26-Oct-03 4:26
Gary R. Wheeler26-Oct-03 4:26 
GeneralWS_CLIPSIBLINGS problem Pin
DaFrawg26-Oct-03 3:03
DaFrawg26-Oct-03 3:03 
GeneralRe: WS_CLIPSIBLINGS problem Pin
Gary R. Wheeler26-Oct-03 4:28
Gary R. Wheeler26-Oct-03 4:28 
GeneralRe: WS_CLIPSIBLINGS problem Pin
DaFrawg27-Oct-03 1:47
DaFrawg27-Oct-03 1:47 
GeneralRe: WS_CLIPSIBLINGS problem Pin
Gary R. Wheeler27-Oct-03 11:17
Gary R. Wheeler27-Oct-03 11:17 
GeneralRe: WS_CLIPSIBLINGS problem Pin
DaFrawg27-Oct-03 22:55
DaFrawg27-Oct-03 22:55 
GeneralC++ Question. Pin
WREY26-Oct-03 2:54
WREY26-Oct-03 2:54 
GeneralRe: C++ Question. Pin
Andrew Walker26-Oct-03 3:31
Andrew Walker26-Oct-03 3:31 
GeneralRe: C++ Question. Pin
WREY26-Oct-03 4:51
WREY26-Oct-03 4:51 
GeneralRe: C++ Question. Pin
Gary R. Wheeler26-Oct-03 4:53
Gary R. Wheeler26-Oct-03 4:53 
GeneralRe: C++ Question. Pin
WREY26-Oct-03 11:25
WREY26-Oct-03 11:25 
GeneralRe: C++ Question. Pin
Ravi Bhavnani26-Oct-03 5:25
professionalRavi Bhavnani26-Oct-03 5:25 
GeneralCreate Snapshot for MS ACCESS Pin
Azghar Hussain26-Oct-03 2:23
professionalAzghar Hussain26-Oct-03 2:23 
GeneralWinsock layered service provider, getting remote ip in WSPRecvFrom() Pin
Kuniva26-Oct-03 2:09
Kuniva26-Oct-03 2:09 
GeneralCdatabase embedded in my View Pin
tlbrown26-Oct-03 2:01
tlbrown26-Oct-03 2:01 
I am trying to grab some data from my database file and display the infromation in my view window. I made a standard scrollview app and added CRecordSet (RecSet) with class wizard. Right now I have this code in my OnDraw fucntion. I am sure there is a better place to put it but I am just playing around at the moment.

long *A;
RecSet *MyRec; // the name of my class is RecSet
MyRec=new RecSet(&m_dbCust); // CDatabase *m_dbCust
MyRec ->GetDefaultConnect();
MyRec ->GetDefaultSQL();
A = &MyRec ->m_Score;
MyRec ->Close();
m_dbCust.Close();

char *B="Hi",Z[100];
pDC ->TextOut(200,200,B);
sprintf(Z,"%d",A);
pDC ->TextOut(400,200,Z);

I know the GetDefaultConnect is working and am assuming he GetdefaultSQL is as well. Do I also need the DoFieldExchange in there as well? Right now I am just trying to grab the data from any row in the Score column of my table and print it to my screen. I am using sprintf because my data is a long type and that is the only way I have got it to convert and print other long numbers to the screen in some testing. Right now it is just printing some random number as far as I can tell. Anybody willing to give me a hint as to what I am missing?

A simpleton trying to get a clue…
QuestionHow to monitor the status of a process. Pin
George225-Oct-03 23:52
George225-Oct-03 23:52 
AnswerRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 0:22
Jörgen Sigvardsson26-Oct-03 0:22 
GeneralRe: How to monitor the status of a process. Pin
George226-Oct-03 0:36
George226-Oct-03 0:36 
GeneralRe: How to monitor the status of a process. Pin
Jörgen Sigvardsson26-Oct-03 0:41
Jörgen Sigvardsson26-Oct-03 0:41 

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.