Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RegSetValueEx Pin
David Crow10-Jul-07 3:07
David Crow10-Jul-07 3:07 
GeneralRe: RegSetValueEx Pin
Yashusid10-Jul-07 3:12
Yashusid10-Jul-07 3:12 
QuestionRe: RegSetValueEx Pin
David Crow10-Jul-07 3:18
David Crow10-Jul-07 3:18 
AnswerRe: RegSetValueEx Pin
Yashusid10-Jul-07 3:23
Yashusid10-Jul-07 3:23 
GeneralRe: RegSetValueEx Pin
David Crow10-Jul-07 4:13
David Crow10-Jul-07 4:13 
GeneralRe: RegSetValueEx Pin
Yashusid10-Jul-07 4:26
Yashusid10-Jul-07 4:26 
GeneralRe: RegSetValueEx Pin
David Crow10-Jul-07 4:30
David Crow10-Jul-07 4:30 
GeneralRe: RegSetValueEx Pin
Yashusid10-Jul-07 4:34
Yashusid10-Jul-07 4:34 
In GetSourceName i am parsing a XML file.

char *GetSourceName(char *RegFileName)
{
LPTSTR lpstrMsg;
CoInitialize(NULL);
CComPtr<ixmldomdocument> spXMLDOM;
CComPtr<ixmldomnode> spXMLNode;
IXMLDOMAttribute *pIXMLDOMAttribute = NULL;
IXMLDOMElement *pIXMLDOMElement = NULL;
HRESULT hr = spXMLDOM.CoCreateInstance(__uuidof(DOMDocument));
VARIANT_BOOL bSuccess = false;
USES_CONVERSION;
_variant_t fileNameValue=T2W(RegFileName);
hr = spXMLDOM->load(fileNameValue,&bSuccess);
if(!hr)
{
hr = spXMLDOM->get_documentElement(&pIXMLDOMElement);
_variant_t nameValue;
if(!hr)
{
hr = pIXMLDOMElement->getAttribute(CComBSTR(L"source-name"),&nameValue);

}
if ( nameValue.vt == VT_BSTR )
{
USES_CONVERSION;
lpstrMsg = W2T(nameValue.bstrVal);
}
}

spXMLDOM.Release();
CoUninitialize();
return lpstrMsg;
}
GeneralRe: RegSetValueEx Pin
David Crow10-Jul-07 4:48
David Crow10-Jul-07 4:48 
AnswerRe: about "round" function in visual C++ Pin
SandipG 10-Jul-07 2:27
SandipG 10-Jul-07 2:27 
AnswerRe: about &quot;round&quot; function in visual C++ Pin
Russell'10-Jul-07 3:10
Russell'10-Jul-07 3:10 
QuestionOLEDB WITH .CDX Pin
ArielR10-Jul-07 2:23
ArielR10-Jul-07 2:23 
QuestionGet cookie from the url/web? Pin
bosfan10-Jul-07 1:43
bosfan10-Jul-07 1:43 
AnswerRe: Get cookie from the url/web? Pin
_AnsHUMAN_ 10-Jul-07 2:10
_AnsHUMAN_ 10-Jul-07 2:10 
GeneralRe: Get cookie from the url/web? Pin
bosfan10-Jul-07 3:44
bosfan10-Jul-07 3:44 
AnswerRe: Get cookie from the url/web? Pin
David Crow10-Jul-07 3:09
David Crow10-Jul-07 3:09 
GeneralRe: Get cookie from the url/web? Pin
bosfan10-Jul-07 3:45
bosfan10-Jul-07 3:45 
Questionhow to keep on this program executing when I put it at the backgound? Pin
bloodwinner10-Jul-07 1:38
bloodwinner10-Jul-07 1:38 
AnswerRe: how to keep on this program executing when I put it at the backgound? Pin
Rage10-Jul-07 1:55
professionalRage10-Jul-07 1:55 
GeneralRe: how to keep on this program executing when I put it at the backgound? Pin
bloodwinner10-Jul-07 2:22
bloodwinner10-Jul-07 2:22 
AnswerRe: how to keep on this program executing when I put it at the backgound? Pin
InOut.NET10-Jul-07 2:13
InOut.NET10-Jul-07 2:13 
GeneralRe: how to keep on this program executing when I put it at the backgound? Pin
bloodwinner10-Jul-07 2:24
bloodwinner10-Jul-07 2:24 
GeneralRe: how to keep on this program executing when I put it at the backgound? Pin
InOut.NET10-Jul-07 3:14
InOut.NET10-Jul-07 3:14 
QuestionAdding Controls in Runtime Pin
InOut.NET10-Jul-07 1:23
InOut.NET10-Jul-07 1:23 
AnswerRe: Adding Controls in Runtime Pin
Hamid_RT10-Jul-07 1:36
Hamid_RT10-Jul-07 1:36 

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.