Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralafxDump Pin
Jawache12-Sep-02 3:26
Jawache12-Sep-02 3:26 
GeneralRe: afxDump Pin
Tomasz Sowinski12-Sep-02 3:50
Tomasz Sowinski12-Sep-02 3:50 
GeneralRe: afxDump Pin
Jawache12-Sep-02 4:11
Jawache12-Sep-02 4:11 
GeneralLocal machine ip address Pin
Anonymous12-Sep-02 2:24
Anonymous12-Sep-02 2:24 
GeneralRe: Local machine ip address Pin
JohnnyG12-Sep-02 2:30
JohnnyG12-Sep-02 2:30 
GeneralRe: Local machine ip address Pin
lucy12-Sep-02 5:43
lucy12-Sep-02 5:43 
GeneralScripting for Applications Pin
Ciufudean Sorin12-Sep-02 2:16
Ciufudean Sorin12-Sep-02 2:16 
QuestionHow to check if field value is NULL? Pin
anju12-Sep-02 1:53
anju12-Sep-02 1:53 
Hi all,
How to check if field value is NULL?

In my application i am using the code as follows to get the Recordset field value
while (VARIANT_FALSE == pRecordset->EndOfFile)
{ strTemp.Format("Test Column:%s",
(LPSTR)(_bstr_t)pRecordset->Fields->GetItem("Test")->Value);
AfxMessageBox(strTemp);
pRecordset->MoveNext();
}
while running the application if the Field value is NULL. I am getting Runtime Error
as "abnormal Programme termination".
please help me



anju
AnswerRe: How to check if field value is NULL? Pin
Imran Farooqui12-Sep-02 2:12
Imran Farooqui12-Sep-02 2:12 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:39
anju12-Sep-02 18:39 
GeneralRe: How to check if field value is NULL? Pin
Imran Farooqui12-Sep-02 19:06
Imran Farooqui12-Sep-02 19:06 
AnswerRe: How to check if field value is NULL? Pin
Rama Krishna Vavilala12-Sep-02 2:09
Rama Krishna Vavilala12-Sep-02 2:09 
AnswerRe: How to check if field value is NULL? Pin
[James Pullicino]12-Sep-02 2:36
[James Pullicino]12-Sep-02 2:36 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:44
anju12-Sep-02 18:44 
GeneralRe: How to check if field value is NULL? Pin
anju12-Sep-02 18:51
anju12-Sep-02 18:51 
GeneralMFC and old functions Pin
Tolias12-Sep-02 1:38
Tolias12-Sep-02 1:38 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 1:42
Tomasz Sowinski12-Sep-02 1:42 
GeneralRe: MFC and old functions Pin
Anonymous12-Sep-02 1:52
Anonymous12-Sep-02 1:52 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 1:54
Tomasz Sowinski12-Sep-02 1:54 
GeneralRe: MFC and old functions Pin
Tolias12-Sep-02 1:59
Tolias12-Sep-02 1:59 
GeneralRe: MFC and old functions Pin
Tomasz Sowinski12-Sep-02 2:03
Tomasz Sowinski12-Sep-02 2:03 
GeneralRe: MFC and old functions Pin
Michael P Butler12-Sep-02 1:44
Michael P Butler12-Sep-02 1:44 
GeneralCompiler directives Pin
Ruca12-Sep-02 1:20
Ruca12-Sep-02 1:20 
GeneralRe: Compiler directives Pin
Tomasz Sowinski12-Sep-02 1:29
Tomasz Sowinski12-Sep-02 1:29 
GeneralOuput data Pin
Kash12-Sep-02 1:15
Kash12-Sep-02 1:15 

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.