Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create a Windows API function? Pin
rushing30-Jan-05 16:10
rushing30-Jan-05 16:10 
AnswerRe: How to create a Windows API function? Pin
Selvam R31-Jan-05 0:58
professionalSelvam R31-Jan-05 0:58 
GeneralWindow Messaging Pin
JKallen30-Jan-05 15:34
JKallen30-Jan-05 15:34 
GeneralRe: Window Messaging Pin
Blake Miller31-Jan-05 5:49
Blake Miller31-Jan-05 5:49 
Generalaccess violation at 0x00000000 Pin
IsaacLitingjun30-Jan-05 15:19
IsaacLitingjun30-Jan-05 15:19 
GeneralRe: access violation at 0x00000000 Pin
IsaacLitingjun30-Jan-05 15:24
IsaacLitingjun30-Jan-05 15:24 
GeneralRe: access violation at 0x00000000 Pin
PJ Arends30-Jan-05 16:09
professionalPJ Arends30-Jan-05 16:09 
GeneralRe: access violation at 0x00000000 Pin
IsaacLitingjun30-Jan-05 17:22
IsaacLitingjun30-Jan-05 17:22 
Thanks,PJ Arends!

But in my program i didn't use message handlers D'Oh! | :doh: (i planned to use once, but now i didn't use it. Maybe cos i remained the definition?? )

<br />
#define WM_OPENRECORD WM_USER + 100		//<br />
#define WM_STARTCALL WM_USER + 101		//<br />


and i found i made a stupid mistake:

<br />
while(1)<br />
{<br />
<br />
pRs = new CADORecordset(pAdoDb);<br />
<br />
while(DB_CONNECTED)<br />
{<br />
 Dosomething();<br />
  <br />
 if(DB_problem)break;<br />
}<br />
}<br />


it seemed i forgot to "delete pRs"!

<br />
while(1)<br />
{<br />
<br />
pRs = new CADORecordset(pAdoDb);<br />
<br />
while(DB_CONNECTED)<br />
{<br />
 Dosomething();<br />
  <br />
 if(DB_problem)break;<br />
}<br />
// 20050131 Modified by Dick <br />
delete pRs;<br />
}<br />


maybe this cause the problem? i'm not sure, now i'm letting the program run and watch whether i get next error. (if i do get, i'll go to ask you again,hope you don't feel it's a trouble Poke tongue | ;-P )

Thank you sooooooooo much! Smile | :) Have a good day!!

________________________________________

Many nights we've prayed with no proof anyone could hear, we were moving moutains long before we knew we could!
Yet now i'm standing here, although we know there's much to fear, hope seemed like summer bird too swiftly flown away ...

There can be miracles! When you believe, though hope is frail, it's hard to kill!
Who knows what miracles, you can achieve! When you believe, somehow you will ...

YOU WILL WHEN YOU BELIEVE

Generaltext file to Word document Pin
yannah30-Jan-05 14:56
yannah30-Jan-05 14:56 
Generalget the system driver Pin
masmstudio30-Jan-05 14:40
masmstudio30-Jan-05 14:40 
GeneralPowering down Win98 system Pin
Still learning how to code30-Jan-05 11:05
Still learning how to code30-Jan-05 11:05 
GeneralRe: Powering down Win98 system Pin
PJ Arends30-Jan-05 11:32
professionalPJ Arends30-Jan-05 11:32 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 8:29
Still learning how to code31-Jan-05 8:29 
GeneralRe: Powering down Win98 system Pin
PJ Arends31-Jan-05 9:21
professionalPJ Arends31-Jan-05 9:21 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 10:31
Still learning how to code31-Jan-05 10:31 
GeneralRe: Powering down Win98 system Pin
PJ Arends31-Jan-05 10:45
professionalPJ Arends31-Jan-05 10:45 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 11:31
Still learning how to code31-Jan-05 11:31 
GeneralCalling th OSK (ON-Screen Keyboard) Pin
Alex Evans30-Jan-05 9:43
Alex Evans30-Jan-05 9:43 
GeneralAlgorithm and necessary code Pin
joy00730-Jan-05 5:57
joy00730-Jan-05 5:57 
QuestionHow to Enable at runtime Pin
joy00730-Jan-05 5:40
joy00730-Jan-05 5:40 
AnswerRe: How to Enable at runtime Pin
Bob Ciora30-Jan-05 6:15
Bob Ciora30-Jan-05 6:15 
AnswerRe: How to Enable at runtime Pin
Ravi Bhavnani30-Jan-05 6:17
professionalRavi Bhavnani30-Jan-05 6:17 
GeneralCArray can't add Pin
jw8130-Jan-05 5:31
jw8130-Jan-05 5:31 
GeneralRe: CArray can't add Pin
Bob Ciora30-Jan-05 6:09
Bob Ciora30-Jan-05 6:09 
GeneralRe: CArray can't add Pin
jw8130-Jan-05 6:50
jw8130-Jan-05 6:50 

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.