|
You may try something like that, assuming your Soap request envelope is stored in lpcsSoapEnvelopeFileXML:
MSXML2::IXMLDOMDocument2Ptr request(__uuidof(MSXML2::DOMDocument30));<br />
BOOL bretval;<br />
<br />
request->async = false;<br />
bretval = request->load(lpcsSoapEnvelopeFileXML);<br />
if(bretval)<br />
{<br />
MSXML2::IXMLHTTPRequestPtr serv (__uuidof(MSXML2::XMLHTTP30));<br />
serv->open ("POST",lpcsURL, false);<br />
serv->setRequestHeader ("Content-Type", "text/xml; charset=utf-8");<br />
serv->setRequestHeader ("SOAPAction", lpcsFuncURL);<br />
serv->send (_variant_t(request->xml));<br />
<br />
MSXML2::IXMLDOMDocument2Ptr response;<br />
response = serv->responseXML;<br />
<br />
csResponce = (LPCSTR)serv->responseText;<br />
}<br />
return csResponce;
On return you have to parse csResponce text or response XML...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
ThankX igor1960
It works nicely.
Abhi....
|
|
|
|
|
ThankX igor1960
It works nicely.
Abhi....
|
|
|
|
|
i am writing a download software, but i don't know the protocol of mms . where i can find this ?
help me ~
thanks
i love j2ee and vc.
|
|
|
|
|
i am writing a download software, but i don't know the protocol of mms . where i can find this ?
help me ~
thanks
i love j2ee and vc.
|
|
|
|
|
Which of the dozen or so are you interested in:
Manufacturing Monitoring System
Mass Mailing System
Maintenance Management System
Mail Management System
Manufacturing Message Service
Material Management Services
...
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi
I have installed Visual Studio including VC++.
I can set my include & link directories correctly and i can compile & link a project (which needs specific sources in other directories) perfect.
When i exit VC++, i loose all include directories & all library directories that i have added.
(the standard directories remain)
So i got to reenter all the info again.
Is this a bug in VC and how can i fix it?
Or is there a script that i can make to set the include & link dirs correctly? (dos script?)
Thanks alot for the help
BaRT
|
|
|
|
|
When you say "I can set my include ..." are you doing this by "Tools/Options/Directories"?
You should do this with one copy of VC++ only running, and exit straight away.
This should save the appropriate registry settings, in HKCU\Software\Microsoft\DevStudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories, providing you're using vc++6
Steve S
|
|
|
|
|
Strange .......
cauz these paths are stored under specific user settings , if u login with same user , path must remain stored.
You better try it , opening single instance of IDE.
No Worries!
|
|
|
|
|
Hi
Yes, i've added those by using Tools,Options.
I've checked the reg key and added some include dirs ... but this doesn't affect the tools, options include dir.
and i only open a single instance too
So i have to worry :x
|
|
|
|
|
I don't want to use the .Net framework and I was wondering if there was an equivalent to those 2 classes in MFC on Win32...
Thanks!
---------------
Tired of Spam? InboxShield for Microsoft® Outlook® 2K/2K2/2K3
http://www.inboxshield.com
|
|
|
|
|
I have rich edit View in my application. when run in the debug mode it gives an assertion stating the line 189 in winocc.cpp but runs fine in release mode. Can anyone suggest some solution asap.
Reagrds,
Samir Sood
Samir Sood
|
|
|
|
|
Have you looked at line 189 of winocc.cpp? There's a big clue there.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
|
Yes I have But it only indicates that handle to window is not there but if this was the case then why does the code run in the release mode
Samir Sood
|
|
|
|
|
I have a CFile object. I am dealing with a file with it. After my work is over i am calling CFile::Close();
CFile m_file;
m_file.Close();
after calling Close() , i need to know whether the file is closed or not. How can i do so?? Actually, my program is calling m_file.Close() two times. When i call second time, the program crashes. So before calling Close(), i want to know wheter file already been closed or not ??
|
|
|
|
|
Check if CFile::m_hFile == CFile::hFileNull.
if a CFile is already closed, a second call should ASSERT in debug mode but have have no effect in non-Debug mode, which tells me something else may be wrong with your code.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Close sets m_hFile to CFile::hFileNull.
INTP
|
|
|
|
|
hi,
how to get printer is connected or not and printer is switched on or not. any one help to me.
Thanks in advance.
|
|
|
|
|
Use GetPrinter() and look at the Status field of PRINTER_INFO_2.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
we are investigating moving our application from dev studio 6 to .NET.
It is c++, API, non-MFC. It compiles fine but when executing the program we get a series of
"Unhandled exception at 0x00000000 in MyApp.exe: 0xC0000005: Access violation reading location 0x00000000." The first one appears to be in a listview control, but cant track down exactly where. call stack only shows disassembly, and only back 1 call.
If I remove the listview control I get the exact same error, possibly in the creation of a dialog box.
Is there anything special I need to do to:
1) get a project that runs perfectly fine when compiled with vs6 to compile and run with .NET
2) get the debugger to give me better information as to the cause of the problem
Thank You
|
|
|
|
|
Sounds like you're trying to dereference a NULL pointer, or possibly you've tried to GetProcAddress something and not checked it before calling the resulting function.
Steve S
|
|
|
|
|
another code offered the following suggestion, but did not follow up on it. Is anyone here able to expand on it? specifically "try with proper api declaration"
...
Perhaps, your converted application still have lots of api call, which is trying to access certain memory location, which is not allowed..
try with proper api declaration, or using the .net functions which replaces those apis...
...
Thank You
|
|
|
|
|
after further review....this debugger sure hasnt helped much....the error appears to be with using
lpfnGradientFill = (LPFNGradientFill)GetProcAddress(MSIMG32_DLL,"GradientFill");
I get a valid pointer, but using the function seems to cause the error. Will investigate further.
Thank You
|
|
|
|
|
Another cause might be a trashed stack. Thus the "ret" ends up going to 0.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|