Greetings,
Would like to know if we need to explicitly free the string allocated by a xmldomnodeptr using it's get_text()
i.e.
IXMLDOMNodePtr pNode;
/*some code*/
BSTR sValue;
pNode->get_text(&sValue);
/*Should I do this?*/
SysFreeString(sValue);
I cannot see any documentation stating the same, so I'm assumi...
How can i download all directory from server recursively. I use WinINet and this problem solve very hard. I interested there is some easy way that download files and folders from ftp on visual-c++?
...
I write vbs that create ole atomation object
On Error Resume Next
dim objShell
dim objFolder
if not objFolder is nothing then
objFolder.CopyHere "ftp://anonymous:[email protected]/bussys"
WScript.Sleep 100
end if
set objShell = nothing
set objFolder = nothing
How to do that on C# (or do that without ole automation just use ...
Hi,
I'm getting the following error message when I try using WPP tracing in my user mode application.
3>hooktest.obj : error LNK2019: unresolved external symbol _WppCleanupUm referenced in function _main
3>hooktest.obj : error LNK2019: unresolved external symbol _WppInitUm referenced in function _main
3>hooktest.obj : error LNK2001: un...
How to fetch processor CPU flags in C# .net ?
I am particularly looking for VMX bit/flag.
...
Hi,
I have introduced boost to our code base, on my machine I created a boost directory called Thirdparty.Boost and added that as an additional include directory in my Visual Studio setting, all is fine.
However I now want to check in my changes, so the rest of the team can get them. Inorder to build the code they would need to setup b...
i need the code to convert the string type data into integer type data if i have entered a numerical value in the text box.
i am using visual c++ windows forms and the visual studio
...
Hey i need code for detecting memory leaks in win ce. I am using Visual c++. Can any one give please?
...
Hello!
I found a source code on MSDN about how to enable/disable privileges in C++
According to the source code, the linker must include cmcfg32.lib, but it can't be found...
I tried to compile without including that lib, it compiles without any error, but when I launch my program, it crashes with a fatal error.
So please, if you kno...
I have a Visual C++ application that communicates with an ASP.NET web service via ATL Soap. The client application uses an sproxy-generated proxy class for the communication. Looking at the generated proxy class, I noticed that the url for the web service is hard-coded in numerous places.
It would be preferable for the url to be confi...
What's the difference between the following two declarations? I thought they were equivalent, but the first sample works, and the second does not. I mean it compiles and runs, but the bitmap display code shows blank. I have not stepped through it yet, but am I missing something obvious? GUI_BITMAP is a simple structure describing a bitma...
I have declared a class as
class DCFrameListener : public FrameListener, public OIS::MouseListener, public OIS::KeyListener
{
bool keyPressed(const OIS::KeyEvent & kEvt);
bool keyReleased(const OIS::KeyEvent &kEvt);
//*******some code missing************************
};
But if i try defining the members like this
boo...
I know we can enumerate the windows controls with in the dialog and using the callback we can collect the windows controls.
I am looking for specific way to filtering out the controls based on interface implementation. For example, If the Active-X controls derives from interface IDataControl, I want that to add to my interest collection...
i need the code for sorting of numbers in ascending order using visual c++ in the windows forms,the output comes on the forms text box and i am doing it in visual studio....
anyone please help...provide the code
...
Hello,
I have compiled several libraries with MingW/MSYS... the generated static libraries are always .a files.
When I try to link the library with a MSVC project, Visual Studio throws 'unresolved external symbols' ... It means that the .a static library is incompatible with MS C++ Linker. I presume it has to be converted to a MSVC comp...
when i read through source files of opensource projects i often come across some weird phrases in the comments
/*
@brief ......
@usage.....
@remarks....
@par....
*/
questions
1.What are they?(were not mentioned when i was learning c++)
2.Do they have any documentation(where)
...
Hello there, I would like to ask about the available (free or not) Static and Dynamic code analysis tools that can be used to C++ applications ESPECIALLY COM and ActiveX.
I am currently using Visual Studio's /analyze compiler option, which is good and all but I still feel there is lots of analysis to be done.
I'm talking about a C++ ap...
I have a global list of function pointers. This list should be populated at startup. Order is not important and there are no dependencies that would complicate static initialization. To facilitate this, I've written a class that adds a single entry to this list in its constructor, and scatter global instances of this class via a macro wh...
Environment: VS 2008 in Windows.
Problem: A static library, say first.lib is not linked to, say second.lib, if first.lib is specified in .vsprops file and none of its functions is referenced in the second.lib.
If, however, first.lib is removed from the .vsprops file and placed instead in the appropriate project options dialog(1), it is...
What's the root cause?
I can't reproduce it,but sometimes the breakpoint can't let the programme pause.
Has anyone else ever step into this case?
...