Click here to Skip to main content
16,019,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create a new thread to init socket in DLL? Pin
teawater24-Aug-06 21:47
teawater24-Aug-06 21:47 
AnswerRe: How to create a new thread to init socket in DLL? Pin
teawater25-Aug-06 14:38
teawater25-Aug-06 14:38 
QuestionReceiveFrom(); [modified] Pin
ramanand_bulusu24-Aug-06 21:43
ramanand_bulusu24-Aug-06 21:43 
AnswerRe: ReceiveFrom(); Pin
uday kiran janaswamy24-Aug-06 23:42
uday kiran janaswamy24-Aug-06 23:42 
AnswerRe: ReceiveFrom(); Pin
uday kiran janaswamy24-Aug-06 23:43
uday kiran janaswamy24-Aug-06 23:43 
AnswerRe: ReceiveFrom(); Pin
Hamid Taebi25-Aug-06 0:56
professionalHamid Taebi25-Aug-06 0:56 
QuestionRe: ReceiveFrom(); Pin
David Crow25-Aug-06 2:44
David Crow25-Aug-06 2:44 
Questionproblem in loading XML Pin
raycadarena24-Aug-06 21:13
raycadarena24-Aug-06 21:13 
Hi all!
I have a problem in getting xml file data. If a xml file is in my computer, i can get all data. But if i want to access to another computer to get data, all of it will be NULL. My code is here: (unicode project)

// redefine : using msxml3.dll
typedef MSXML::IXMLDOMDocument* XMLDocumentPtr;
typedef MSXML::IXMLDOMElement* XMLElementPtr;
typedef MSXML::IXMLDOMNode* XMLNodePtr;
typedef MSXML::IXMLDOMNodeList* XMLNodeListPtr;
XMLDocumentPtr pXMLDoc = NULL;
HRESULT hr;
hr = CoInitialize(NULL);
if (FAILED(hr)) {
return FALSE;
}
hr = CoCreateInstance(MSXML::CLSID_DOMDocument, NULL,
CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER,
MSXML::IID_IXMLDOMDocument, (LPVOID*)&pXMLDoc);
if (!pXMLDoc) {
return FALSE;
}
pXMLDoc->put_async(VARIANT_TRUE);
VARIANT_BOOL varOkay;
pXMLDoc->load((_variant_t)szXMLFilePathName,&varOkay);
if(!varOkay)
return FALSE;
XMLNodePtr pNodeItem = NULL;
VARIANT var;
CString szTmp;
// get Version
szTmp = _T("VisioAlertData/VersionAlert/Version");
pXMLDoc->selectSingleNode((_bstr_t)szTmp, &pNodeItem);
if(pNodeItem)
{
pNodeItem->get_nodeTypedValue(&var);
vAlt.m_szVersion = var.bstrVal;
} .............

If szXMLFilePathName = _T("C:\\a.xml") then pNodeItem will be != NULL
But if szXMLFilePathName = _T("http://pnlong:8080/Visioalerte/VisioAlerte.xml") then pNodeItem will be = NULL. but if after pXMLDoc->load((_variant_t)szXMLFilePathName,&varOkay) i call a message: AfxMessageBox(szXMLFilePathName) then i can get all data.

I don't know why D'Oh! | :doh: . Who can help me?
Thank in advance!







QuestionNon Rectangular Edit Box Pin
kiranin24-Aug-06 20:57
kiranin24-Aug-06 20:57 
AnswerRe: Non Rectangular Edit Box Pin
toxcct24-Aug-06 21:53
toxcct24-Aug-06 21:53 
GeneralRe: Non Rectangular Edit Box Pin
kiranin24-Aug-06 22:07
kiranin24-Aug-06 22:07 
GeneralRe: Non Rectangular Edit Box Pin
Hamid Taebi24-Aug-06 22:49
professionalHamid Taebi24-Aug-06 22:49 
AnswerRe: Non Rectangular Edit Box Pin
Christian Graus24-Aug-06 22:22
protectorChristian Graus24-Aug-06 22:22 
AnswerRe: Non Rectangular Edit Box Pin
Waldermort24-Aug-06 22:42
Waldermort24-Aug-06 22:42 
QuestionEdit Control multiline - number of lines Pin
Joy Anne24-Aug-06 20:51
Joy Anne24-Aug-06 20:51 
AnswerRe: Edit Control multiline - number of lines Pin
_AnsHUMAN_ 24-Aug-06 22:03
_AnsHUMAN_ 24-Aug-06 22:03 
AnswerRe: Edit Control multiline - number of lines Pin
toxcct24-Aug-06 22:39
toxcct24-Aug-06 22:39 
GeneralRe: Edit Control multiline - number of lines Pin
David Crow25-Aug-06 2:49
David Crow25-Aug-06 2:49 
GeneralRe: Edit Control multiline - number of lines Pin
toxcct25-Aug-06 2:51
toxcct25-Aug-06 2:51 
Questionattaching icons to the menu options Pin
radhika2824-Aug-06 20:50
radhika2824-Aug-06 20:50 
AnswerRe: attaching icons to the menu options Pin
KarstenK24-Aug-06 22:56
mveKarstenK24-Aug-06 22:56 
AnswerRe: attaching icons to the menu options Pin
Hamid Taebi25-Aug-06 1:38
professionalHamid Taebi25-Aug-06 1:38 
GeneralRe: attaching icons to the menu options Pin
radhika2825-Aug-06 3:39
radhika2825-Aug-06 3:39 
GeneralRe: attaching icons to the menu options Pin
Hamid Taebi25-Aug-06 4:34
professionalHamid Taebi25-Aug-06 4:34 
GeneralRe: attaching icons to the menu options Pin
radhika2825-Aug-06 18:58
radhika2825-Aug-06 18:58 

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.