Click here to Skip to main content
16,017,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hooking Pin
Rage15-Aug-05 20:34
professionalRage15-Aug-05 20:34 
GeneralRe: Hooking Pin
celllllllll16-Aug-05 7:15
celllllllll16-Aug-05 7:15 
GeneralRe: Hooking Pin
celllllllll15-Aug-05 11:32
celllllllll15-Aug-05 11:32 
GeneralUninitialized pointer Pin
valerie9915-Aug-05 5:58
valerie9915-Aug-05 5:58 
GeneralRe: Uninitialized pointer Pin
David Crow15-Aug-05 6:27
David Crow15-Aug-05 6:27 
GeneralRe: Uninitialized pointer Pin
valerie9915-Aug-05 6:40
valerie9915-Aug-05 6:40 
GeneralRe: Uninitialized pointer Pin
Maximilien15-Aug-05 7:12
Maximilien15-Aug-05 7:12 
GeneralRe: Uninitialized pointer Pin
Rage15-Aug-05 7:03
professionalRage15-Aug-05 7:03 
In this case

valerie99 wrote:
CB_DBF_NTX* const p = OpenDbfNtxHelper( szDbfName, szIndexName, szIndexKey );

the function probably fails and returns no pointer, but NULL.

In this case


valerie99 wrote:
CB_DBF_NTX* pDbf = new CB_DBF_NTX( const_cast( szDbfName ) );

pDbf should be a pointer on a new CB_DBF_NTX object, but the init also fails and returns NULL.

So the fact that both p and pDbf have a value of 0xCCCCCCC only shows that both pointers have the value NULL and are unititialized, but not that they are linked together in any way.

So the anwser to
valerie99 wrote:
does it mean p and pDbf BOTH need to be initialized or just pDbf?

is "Yes, both p and pDbf need to be initialized".

Check why your function OpenDbfNtxHelper and why the constructor CB_DBF_NTX fail (this has probably to do with szDbfName, which is common to both of the statements).

~RaGE();
GeneralRe: Uninitialized pointer Pin
Maximilien15-Aug-05 7:06
Maximilien15-Aug-05 7:06 
GeneralRe: Uninitialized pointer Pin
Jose Lamas Rios15-Aug-05 9:49
Jose Lamas Rios15-Aug-05 9:49 
GeneralRe: Uninitialized pointer Pin
valerie9915-Aug-05 11:09
valerie9915-Aug-05 11:09 
GeneralAfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 5:56
mcgahanfl15-Aug-05 5:56 
GeneralRe: AfxIsValidString does not seem to work. Pin
David Crow15-Aug-05 6:30
David Crow15-Aug-05 6:30 
GeneralRe: AfxIsValidString does not seem to work. Pin
Rage15-Aug-05 7:12
professionalRage15-Aug-05 7:12 
GeneralRe: AfxIsValidString does not seem to work. Pin
David Crow15-Aug-05 7:32
David Crow15-Aug-05 7:32 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 7:51
mcgahanfl15-Aug-05 7:51 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 7:53
mcgahanfl15-Aug-05 7:53 
GeneralRe: AfxIsValidString does not seem to work. Pin
Blake Miller15-Aug-05 10:14
Blake Miller15-Aug-05 10:14 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 10:24
mcgahanfl15-Aug-05 10:24 
GeneralRe: AfxIsValidString does not seem to work. Pin
Tim Smith15-Aug-05 13:40
Tim Smith15-Aug-05 13:40 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl16-Aug-05 3:02
mcgahanfl16-Aug-05 3:02 
GeneralMake control part of Window Pin
tommazzo15-Aug-05 5:19
tommazzo15-Aug-05 5:19 
GeneralRe: Make control part of Window Pin
Prakash Nadar15-Aug-05 6:54
Prakash Nadar15-Aug-05 6:54 
GeneralRe: Make control part of Window Pin
tommazzo15-Aug-05 7:40
tommazzo15-Aug-05 7:40 
GeneralMultithreading Pin
Ali Tavakol15-Aug-05 5:04
Ali Tavakol15-Aug-05 5:04 

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.