Click here to Skip to main content
15,912,665 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Two methods to create dialog Pin
David Crow22-Aug-07 10:57
David Crow22-Aug-07 10:57 
AnswerRe: Two methods to create dialog Pin
Mark Salsbery22-Aug-07 12:02
Mark Salsbery22-Aug-07 12:02 
AnswerRe: Two methods to create dialog Pin
toxcct22-Aug-07 21:27
toxcct22-Aug-07 21:27 
AnswerRe: Two methods to create dialog Pin
Russell'22-Aug-07 22:23
Russell'22-Aug-07 22:23 
AnswerRe: Two methods to create dialog Pin
Roger Broomfield22-Aug-07 22:33
Roger Broomfield22-Aug-07 22:33 
QuestionVC++,CClientDC and OnDraw's CDC Pin
akira3222-Aug-07 7:36
akira3222-Aug-07 7:36 
AnswerRe: VC++,CClientDC and OnDraw's CDC Pin
Mark Salsbery22-Aug-07 7:51
Mark Salsbery22-Aug-07 7:51 
QuestionUsing MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:23
koumodaki22-Aug-07 7:23 
I have a C++ Program which in which I have to read a XML file contents. The code is

#include "fstream.h"
#include "string.h"
#import "msxml2.dll" named_guids raw_interfaces_only

using namespace MSXML2;
using namespace std;
void main()
{
IXMLDOMDocumentPtr m_pXmlDoc;
IXMLDOMNodePtr m_pProductNode;
HRESULT hr = m_pXmlDoc.CreateInstance(MSXML2::CLSID_DOMDocument);
_variant_t vtFileName("my_xml.xml");
VARIANT_BOOL vtRetVal;
m_pXmlDoc->load(vtFileName,&vtRetVal);
}
The CreateInstance() call fails and m_pXmlDoc is NULL.
Why am I not getting the instance? What is wrong in this piece of code?

QuestionRe: Using MSXML APIs in C++ program Pin
David Crow22-Aug-07 7:30
David Crow22-Aug-07 7:30 
AnswerRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:33
koumodaki22-Aug-07 7:33 
GeneralRe: Using MSXML APIs in C++ program Pin
David Crow22-Aug-07 7:42
David Crow22-Aug-07 7:42 
GeneralRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 8:00
koumodaki22-Aug-07 8:00 
GeneralRe: Using MSXML APIs in C++ program Pin
Michael Dunn22-Aug-07 7:46
sitebuilderMichael Dunn22-Aug-07 7:46 
GeneralRe: Using MSXML APIs in C++ program Pin
led mike22-Aug-07 8:39
led mike22-Aug-07 8:39 
AnswerRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:32
jhwurmbach22-Aug-07 7:32 
GeneralRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:41
koumodaki22-Aug-07 7:41 
GeneralRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:44
jhwurmbach22-Aug-07 7:44 
QuestionHow to pass dynamic array from SDI Document to Dialog ComboBox? Pin
penny black22-Aug-07 7:21
penny black22-Aug-07 7:21 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
David Crow22-Aug-07 7:33
David Crow22-Aug-07 7:33 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
Maximilien22-Aug-07 7:37
Maximilien22-Aug-07 7:37 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
jhwurmbach22-Aug-07 7:38
jhwurmbach22-Aug-07 7:38 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
penny black22-Aug-07 7:51
penny black22-Aug-07 7:51 
GeneralRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
Iain Clarke, Warrior Programmer22-Aug-07 12:24
Iain Clarke, Warrior Programmer22-Aug-07 12:24 
QuestionHelp with Hook Pin
act_x22-Aug-07 7:04
act_x22-Aug-07 7:04 
AnswerRe: Help with Hook Pin
PJ Arends22-Aug-07 9:10
professionalPJ Arends22-Aug-07 9:10 

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.