Click here to Skip to main content
15,923,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Static Linking Pin
hyling23-Oct-04 7:34
hyling23-Oct-04 7:34 
GeneralRe: Static Linking Pin
Uwe Keim23-Oct-04 4:56
sitebuilderUwe Keim23-Oct-04 4:56 
GeneralRe: Static Linking Pin
hyling23-Oct-04 7:33
hyling23-Oct-04 7:33 
GeneralRemote Office Automation Pin
Malcolm Smart22-Oct-04 8:50
Malcolm Smart22-Oct-04 8:50 
GeneralRe: Remote Office Automation Pin
Michael P Butler23-Oct-04 9:00
Michael P Butler23-Oct-04 9:00 
GeneralTroubling creating object Pin
AmorphousP22-Oct-04 7:04
AmorphousP22-Oct-04 7:04 
GeneralRe: Troubling creating object Pin
David Crow22-Oct-04 7:40
David Crow22-Oct-04 7:40 
GeneralRe: Troubling creating object Pin
AmorphousP22-Oct-04 9:37
AmorphousP22-Oct-04 9:37 
CDns* DnsCl = new CDns;
This is the part where I am creating the object on the heap in a function of another class, CDnsThread. This is the code that asserts.

CDns* DnsCl;
This is the part when it is created on the stack. It doesn't assert but now when I call a public member fuction of the CDns class like

DnsCl->GetSMTPAddress(domain);

the code inside the GetSMTPAddress() function can't access it's own member variables. I tried debugging it and found that the constructor works fine because all the initialization work I do happens correctly. But the first line inside the GetSMTPAddress() function

if (SockStatus = INVALID_SOCKET)<br />
         error handling code...


causes an 'access violation'. This same thing had worked very well some time back when I had tested this module. But now as a part of an application, it's causing troubles. I hope u r able to help.
Thanx
GeneralRe: Troubling creating object Pin
Maximilien22-Oct-04 9:51
Maximilien22-Oct-04 9:51 
GeneralRe: Troubling creating object Pin
AmorphousP22-Oct-04 10:34
AmorphousP22-Oct-04 10:34 
GeneralRe: Troubling creating object Pin
David Crow22-Oct-04 9:53
David Crow22-Oct-04 9:53 
GeneralRe: Troubling creating object Pin
AmorphousP22-Oct-04 10:29
AmorphousP22-Oct-04 10:29 
GeneralRe: Troubling creating object Pin
dharani26-Oct-04 22:44
dharani26-Oct-04 22:44 
GeneralRe: Troubling creating object Pin
AmorphousP27-Oct-04 9:51
AmorphousP27-Oct-04 9:51 
GeneralAbstract member functions - strange phenomenon open to discussion: Pin
Nick Nougat22-Oct-04 6:54
Nick Nougat22-Oct-04 6:54 
GeneralRe: Abstract member functions - strange phenomenon open to discussion: Pin
Roger Allen22-Oct-04 7:13
Roger Allen22-Oct-04 7:13 
GeneralRe: Abstract member functions - strange phenomenon open to discussion: Pin
Nick Nougat22-Oct-04 7:58
Nick Nougat22-Oct-04 7:58 
QuestionHow can I programmatically install a visual C++ add-in for visual C++? Pin
Behzad Ebrahimi22-Oct-04 5:56
Behzad Ebrahimi22-Oct-04 5:56 
GeneralPeek stdin Pin
peterchen22-Oct-04 5:50
peterchen22-Oct-04 5:50 
GeneralRe: Peek stdin Pin
David Crow22-Oct-04 6:04
David Crow22-Oct-04 6:04 
GeneralPlease help me with MFC Dialogs Pin
Member 214873122-Oct-04 5:22
Member 214873122-Oct-04 5:22 
GeneralRe: Please help me with MFC Dialogs Pin
David Crow22-Oct-04 5:33
David Crow22-Oct-04 5:33 
GeneralRe: Please help me with MFC Dialogs Pin
Member 214873122-Oct-04 5:34
Member 214873122-Oct-04 5:34 
GeneralRe: Please help me with MFC Dialogs Pin
David Crow22-Oct-04 5:37
David Crow22-Oct-04 5:37 
GeneralRe: Please help me with MFC Dialogs Pin
Buyer122-Oct-04 5:42
sussBuyer122-Oct-04 5:42 

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.