why destructors execute in reverse order in C++?
when we create an object of derived class.... first the base class constructor executes and then the derived class constructor executes........ but when an object of the derived class is destroyed the...
View Articlehow to disassemble a program completely which is written in C++ using Visual...
how to disassemble a program completely which is written in C++ using Visual studio?farooq.hnf
View ArticleError C2664
Hi,I am using c++ 2012 and I get this error:Error 1 error C2664: 'system' : cannot convert parameter 1 from 'std::basic_string<_Elem,_Traits,_Alloc>' to 'const char *This is Problem:system...
View ArticleSame DLL crashes when invoked from a program built with a different VC version
Hi all,I have a program that invokes an external DLL. I do not have the source code to this DLL.I'm using VS2012 to build this program, and I can use the v110 toolset (VS2012), the v100 toolset...
View ArticleWhy do we see a difference in linking when rebuilding all vs. just rebuilding...
We have a fairly large solution and while working with one of its projects (a test dll) I noticed something unusual. If I issue a "Rebuild Solution" or "Rebuild ProjectX" then Project X builds just...
View ArticleATL project merging proxy-stub code
HiI have an ATL COM project which originally started life in VC6 and has been upgraded through various versions of Visual Studio to VS2010. I'm now trying to upgrade from VS2010 to VS2012 but am having...
View ArticleCall C# managed dll from native c++ (for noobs)
Hello,First of all I know this question has been asked around many times. Although I've been reading the same answers over and over and still didn't get much help. What I need is to instantiate a class...
View ArticleGenearting screenshot (BMP) with Windows Service and CreateProcessWithLogonW
I'm trying to create a screenshot application using windows service, that can capture complete screen at regular time intervals. To get started with, I took basic window service example and included...
View Articlehow to force getting the maximum network bandwidth?
Hi All! Please I'd like to know how to force my application to get the maximum network bandwidth. thanks.
View ArticleAn error occurred while creating and opening the C++ browsing database file.
Hi,I am getting the following error always whenever I try to make a VC++ related project. Please help if anyone knows the solution. I am using windows 7 enterprise and VS 2010 professional SP1. Many...
View ArticleProblem with definition of variable
Hello, I have following problem, I was writing some app in VS C++ 2010 Express and at once I wanted to define some variable, just like this: int x; x = 5;But I got these errors (both of them pointing...
View Articlehow to define a macro value inside an other macro?
Hi All! Please I need some help, I like to define a macro inside another macro and when i try this intellisense throw an error :for example: #define MACRO1#define MACRO2 \#define MACRO1 100so how can i...
View Articlei'd like to block the network
I'd like to temporarily block the network connection. (C + +)I saw in the library to find specific API, but was unsuccessful.I hope you help me.
View ArticleCRichEditCtrl scrolling due to keyboard
I have a dialog box in which I have added my own scroll bars to control multiple CRichEditCtrl controls.That part works. If I click the the scrollbars, my edit controls properly reposition.The problem...
View Articlehow can I receive messages (line by line) through serial port from...
Dear friends,I have programmed a small form for receiving messages from a microcontroller through a serial port.when I use readline() method in the event of clicking a button (open port), it can...
View Articlesearching resources
Hello, I've a .exe program and the "source code" (from deseambler). And i found function FindResource where second parameter is a integer ID. How can i to know name that resource? Maybe that will be...
View ArticleWM_LBUTTONDBLCLK and WM_LBUTTONDOWN
I'm writing a win32 application and have got a hurdle: how to tell whether WM_LBUTTONDOWN is caused by a double click or a single click. In details, I want to define different behavor for...
View ArticleTranslate this code
Does anybody translate this code to vb.net or c#?(better if is vb.net)// thanks to cryptic for help ^^ int decryptnosfile(unsigned char *cData, unsigned int f_buffer, unsigned char *cOut, unsigned int...
View ArticleAdding 3D Models to a List
Using openGL and C++ I am struggling to know how you would add a number of 3D models to a list to allow these to be loaded into a game. Can anyone provide me with tutorials on how this would be done?
View ArticleAbout virtual function in C++
Is the following code correct (pseudo code only)? Thanksclass parent {public:virtual void fctn();}class child1:public parent {public:void fctn();}class child2:public parent {public:virtual int fctn();}
View Article