visual-c++

does XMLDOMNodePtr::get_text() needs to be deallocated explicitly?

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...

FTP download directory c++

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++? ...

Ole atomation in 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 ...

Unresolved external symbol while using wpp tracing

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 ?

How to fetch processor CPU flags in C# .net ? I am particularly looking for VMX bit/flag. ...

How to setup directories in Visual Studio when using boost?

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...

string to integer type conversion if the string is taken from text box in visual c++ using visual studion n windows forms

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 ...

Can anyone paste code for detcting memory leaks in win ce 6.0?

Hey i need code for detecting memory leaks in win ce. I am using Visual c++. Can any one give please? ...

Where is cmcfg32.lib?

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...

Allow run-time configuration of web service url using ATL soap and sproxy-generated proxy class

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...

Problem with extern keyword in C++

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...

problems with overloaded function members C++

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...

How to collect Active X controls in the MFC dialog

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...

code for sorting of numbers in ascending order in visual c++

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 ...

How to use libraries compiled with MingW in MSVC?

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...

funny looking comments - c++

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) ...

C++ Professional Code Analysis Tools

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...

How does one force construction of a global object in a statically linked library? [MSVC9]

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...

How to force link a static library to another using .vsprops, if possible?

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...

Why do breakpoints sometimes not work in visual c++ 2008 express?

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? ...