Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:46
RChin1-Aug-05 5:46 
GeneralRe: Class wizard Pin
BicycleTheif1-Aug-05 5:49
BicycleTheif1-Aug-05 5:49 
GeneralRe: Class wizard Pin
RChin1-Aug-05 5:53
RChin1-Aug-05 5:53 
GeneralSmart Pointer Pin
LCI1-Aug-05 5:34
LCI1-Aug-05 5:34 
GeneralRe: Smart Pointer Pin
Marc Soleda1-Aug-05 5:40
Marc Soleda1-Aug-05 5:40 
GeneralRe: Smart Pointer Pin
Alex_Y1-Aug-05 5:42
Alex_Y1-Aug-05 5:42 
GeneralRe: Smart Pointer Pin
David Crow1-Aug-05 5:44
David Crow1-Aug-05 5:44 
GeneralCOM interface weirdity Pin
LCI1-Aug-05 5:31
LCI1-Aug-05 5:31 
I have an MFC .exe that makes calls into a non-MFC .dll
There is one call that i make that returns an int, but i have some COM interface error when i return.


.dll
__declspec(dllexport) int GetXMLRESPONSE()
{
int NUM = 0;
// Create XMLDOMDocument
hr = CoInitialize(NULL);

hr = pDocument.CreateInstance("Msxml2.DOMDocument.4.0");

//I do some document parsing etc here,
//Then at the end before i return i do a CoUninitialize();


CoUninitialize();
//Function blows up when i execute the return
return Num;

}
If i were to take all the COM stuf out, it returns fine. Is there something i should be doing or not doing?
GeneralRe: COM interface weirdity Pin
Alex_Y1-Aug-05 5:40
Alex_Y1-Aug-05 5:40 
GeneralRe: COM interface weirdity Pin
Michael Dunn1-Aug-05 6:55
sitebuilderMichael Dunn1-Aug-05 6:55 
GeneralGetQueueStatus Pin
Alex_Y1-Aug-05 4:58
Alex_Y1-Aug-05 4:58 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 5:46
David Crow1-Aug-05 5:46 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 6:05
Alex_Y1-Aug-05 6:05 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 6:33
David Crow1-Aug-05 6:33 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 7:37
Alex_Y1-Aug-05 7:37 
GeneralRe: GetQueueStatus Pin
David Crow1-Aug-05 7:58
David Crow1-Aug-05 7:58 
GeneralRe: GetQueueStatus Pin
Alex_Y1-Aug-05 8:39
Alex_Y1-Aug-05 8:39 
GeneralCSock and firewall Pin
Shay Harel1-Aug-05 4:56
Shay Harel1-Aug-05 4:56 
GeneralRe: CSock and firewall Pin
Anonymous1-Aug-05 5:13
Anonymous1-Aug-05 5:13 
GeneralRe: CSock and firewall Pin
Anonymous1-Aug-05 5:17
Anonymous1-Aug-05 5:17 
GeneralRe: CSock and firewall Pin
Anonymous2-Aug-05 7:14
Anonymous2-Aug-05 7:14 
QuestionConverting from MFC Ext DLL to standard MFC DLL? Pin
Anacreon1-Aug-05 4:48
Anacreon1-Aug-05 4:48 
AnswerRe: Converting from MFC Ext DLL to standard MFC DLL? Pin
Alex_Y1-Aug-05 4:56
Alex_Y1-Aug-05 4:56 
GeneralRe: Converting from MFC Ext DLL to standard MFC DLL? Pin
Anacreon1-Aug-05 5:03
Anacreon1-Aug-05 5:03 
AnswerRe: Converting from MFC Ext DLL to standard MFC DLL? Pin
Anacreon1-Aug-05 5:02
Anacreon1-Aug-05 5:02 

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.