Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~13.5K People Reached
Favorite Forums
Favorite Tags
c++ x 11
Member Avatar for jack1234

I am using visual C++ 2005(native C++) I got the error error C2065: 'CString' : undeclared identifier for the following code, [CODE]#include <cstring> using namespace std; int main(){ CString ab; ab="a"; }[/CODE] what is the problem?

Member Avatar for Yellaiah
0
9K
Member Avatar for jack1234

I am using Visual Studio 2005. Following two programs has the same code, just that one is CLR Console application and the other is Win32 Console application. I set a break point at int i=1 for both program, for CLR Console application, and when run to the break point, in …

Member Avatar for Ancient Dragon
0
736
Member Avatar for jack1234

In java we can use System.out.println In C# we can use Debug.Println but how to do it in C++? (The syntax, and where to look for the debug message)

Member Avatar for bugmenot
0
3K
Member Avatar for jack1234

I am using Visual C++ 2005 (native C++) For the following code, the different of main function 1 and main function 2 is main function 1 using }catch(MyException &e){ but main function 2 using }catch(MyException e){ Which is more correct? if both are correct, which is better? [CODE]//========This is MyException.h===== …

Member Avatar for vijayan121
0
232
Member Avatar for jack1234

I have seen SubclassDlgItem() at [url]http://functionx.com/visualc/controls/bmpbtn.htm[/url] It mentioned "The suggestion is to "subclass" your button class so the messages sent to the bitmap button would be applied effectively." I am not very clear with this statement...thus I go and find msdn [url]http://msdn.microsoft.com/en-us/library/0wx11zk9(VS.80).aspx[/url] but still not very clear. My question is …

0
78
Member Avatar for jack1234

I have seen a lot of type LPSTR(and other like LPCSTR, etc) when coding using MFC. I just know it is equivalent to char*, but what LPSTR exactly is? (ie, is it a native type in C++, or a macro in C++, or a typedef in C++, or...)

Member Avatar for CoolGamer48
0
123
Member Avatar for jack1234

Consider the following two cases: CCandyBox obj; str will be pointing to "Candy" May I know "Candy" is on heap or stack? If it is on heap, is the delete[] str; //delete the Candy to avoid memory leak line below necessary? [code]CCandyBox(char* str = "Candy") // Constructor { if (str …

Member Avatar for ArkM
0
192
Member Avatar for jack1234

Is this two ways of instantiating class both acceptable?(My intention is to create CBox on stack instead of heap) CBox a=CBox(1); CBox b(2); Definition of CBox is as followed: [CODE]class CBox { public: int abc; CBox(int var){ abc=var; } };[/CODE]

Member Avatar for Dave Sinkula
0
64