It works fine when I compile under VC 6.0 but when I convert the project to a VC .NET "solution", the following line will return a NULL pointer: Code: CWnd* pWnd = GetParent()->GetDlgItem(edt1); Any helps? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
Michael Liu
Posts
-
edt1 problem in vc .net -
edt1 problem in vc .netIt works fine when I compile under VC 6.0 but when I convert the project to a VC .NET "solution", the following line will return a NULL pointer: Code: CWnd* pWnd = GetParent()->GetDlgItem(edt1); Any helps? mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
How to output STL string into a fileHow to output string into a file? My part of code is belowLook at the last line, it is not ok.) // Open the file ready write if((pOutputFileStream = fopen(csFilePath, "w")) != NULL) bStatus = TRUE; // Otherwise output message to the console window. else { printf("The output %s file is not available!", csFilePath); bStatus = FALSE; } if (bStatus) { // STL string. string str = vNode.back (); cout << str << endl; // // this line is not ok. // fprintf(pOutputFileStream, "%s", str.substr); } Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Output STL string into file.How to output string into a file? My part of code is below:(Look at the last line, it is not ok.) // Open the file ready write if((pOutputFileStream = fopen(csFilePath, "w")) != NULL) bStatus = TRUE; // Otherwise output message to the console window. else { printf("The output %s file is not available!", csFilePath); bStatus = FALSE; } if (bStatus) { // STL string. string str = vNode.back (); cout << str << endl; // // this line is not ok. // fprintf(pOutputFileStream, "%s", str.substr); } Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
How do I create a CArray of complex numbers in VC++In complex number class, can I be able to just change the value Real or Imaginary? mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
How do I create a CArray of complex numbers in VC++Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
How do I create a CArray of complex numbers in VC++Anyone knows how to create a CArray of complex numbers? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Create array of complex numbers.I'm using C++ complex template class. I got problem when I declared an array of complex numbers. e.g. I declared it like this: CArray, complex> ptArrayComplexNumber; The declaration above is not right for the VC compile. So I changed to CArray, float> ptArrayComplexNumber; This one is good for compile, but I can't do insertion complex number into it or other actions. Do you know how to do it? Best regards, mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Create array of complex numbers.Any one knows how to create an array of complex numbers? Do you think I can use CArray or other collective class? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Complex class question.Any one knows how to use complex class in VC++? How to declare it and how to use it? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Microsoft SDK and VC++ integration question.My original project was using VC98\include\ as the directory. Recently, because I need to use one of defined valuable (PM_QS_PAINT)which is defined in Platform SDK, so I installed SDK with the option "Integrate with VC++" and move the SDK include directory to the top of the directory in options dialog in VC++. When I complied, I got compile errors from StdAfx.h like " error in ..\vc98\include\transact.h: miss ";" before some valuable.". If I removed the SDK directory below the VC++ include directory, those error disappeared, but got error for undefined valuable "PM_QS_PAINT". Anyone knows how to fix those problem? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
ration buttonHow to gray the radio button? mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Big binary array to decimal array.Actually, I have a big integer value, larger than 80 bits which I can't use DOUBLE to hold this value and print it out. Now I have a array to hold this value by binary integers(0,1), then I need to convert it to another array which hold decimal integers(0 to 9) to present this large value. Because I can't use power of 2 ( if I have 256 bits, then I can't hold the it), I have touble to convert it. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Big binary array to decimal array.Any one knows how to convert a binary array to a decimal array in C++? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Question about CArray.My code like this: CUIntArray CMyClass::CMyFunc(CUIntArray caArrayA, CUIntArray caArrayB) { return m_ncaBinaryResult; } CMyClass derived from CObject. CUintArray is almost same as CArray, but only contain UINT elements. I got "class 'CUIntArray' : no copy constructor available" compile error at the 'return m_ncaBinaryResult'. How to fix it. Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Binary Multiplication code.Any one has a binary multiplication c++ code? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Context menu in CHtmlView question.Thank you. It's a good point. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
Context menu in CHtmlView question.I tried to use OnContextMenu and OnRButtonDown to popup the context menu when click right mouse button in a CHtmlView class. When I test it, no menu popup. How to fix it? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
C/C++ problem.I have head file and cpp file are written in C++. There is a GetItem() in it. I used it in a C file to create a lib file. The compile is fine. Then I use this lib file in a C++ application and got a Link2001 link error which says "unresolved external symbol _GetItem". Anyone knows how to fix this problem? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)
-
memory leaks...right. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)