-
- Win32 API CListCtrl GetView
by Anonymous4683
- 5 Replies
- Last post
by Anonymous4683
- Hi all~
Was wondering if there is another way (say Win32 method) to access the View type of a CListCtrl just like the way GetView and LVM_GETVIEW do it..
Reason being, the usage of GetView need to have the macro _WIN32_WINNT set to 0x0501, which is what I do not wish to do..
Thanks in advance~
-
- Beginner Windows Forms Question
by kater7
- 11 Replies
- Last post
by Jonathan Caves - MSFT
- Hi,
I am a noob with the Visual C++ 2005 windows form applications. I have experience with simple C++ and VB code. What I am trying to do is manually convert current VB code (a very old version of VB) to Visual C++ 2005. I chose to use the windows form applications because the user interface would be vary similar to that of the VB code. This code is suppose to ping the serial port for inf
-
- reading and writing file
by aguess
- 14 Replies
- Last post
by aguess
- hello i would like to open an existent file with read and writing and to modify some characters and i just know :
StreamWriter^ sw1 = gcnew StreamReader( "c:\\me.txt",true,Encoding::Unicode);
and don't know if i can read with it or not and i would like to know how can i read character by character in the file because i just know ReadLine who read line by line
-
- get an int from what is entered in the textbox
by nadeemshafi9
- 8 Replies
- Last post
by Shakje
- Hello guys
I have just started learning VC++ and i need to know if theres an easy way of getting the integer entered into the textbox into an int variable, or will i have to do lots of work eg will i have to compare and select each character of the string in a select statment or somthing. I am just trying to get to grips with a calculator for my very first program
Thanks
Nadee
-
- How to terminate a thread
by Quang Tuan
- 14 Replies
- Last post
by Simple Samples
- Hi all, I have a trouble when using multithread in my program. My program uses CDatabase, CRecordset to operate with MS Access database. GUI of program includes Process and Cancel buttons. I created a thread to process when user click on Process button and it takes very long time to operate with database. So I want to cancel this process (terminate thread) by click on Cancel button, but this progr
-
- Excel Automation using MFC C++--> How to select a particular sheet in a workbook to read a cell value
by MMV2007
- 1 Replies
- Last post
by Damien Watkins - MSFT
- In the code below, please tell me how to change the last line so as to read a value from a specified sheet. The code below, specifically the last line, only uses the first sheet in a workbook as the default. if (oExcel.m_lpDispatch == NULL) { oExcel.CreateDispatch("Excel.Application"); } // Show Excel to the user. //oExcel.put_Visible(TRUE); //oExcel.put_UserControl(TRUE);
-
- C++ code in "#if defined(XXXXX) ... #endif" displayed in disabled color?
by giantsaturn
- 4 Replies
- Last post
by Simple Samples
- Hi, I have a few VS.2005 projects defined in a solution. In one project, I have the macro XXXXX_SERVER defined, and all codes within "#if defined(XXXXX_SERVER) ... #endif" are displayed correctly with different syntax color. In another project, I have the macro XXXXX_CLIENT defined, and all codes within "#if defined(XXXXX_CLIENT) ... #endif" are displayed INCORRECTLY with disa
-
- Problem with opening in ios_base::ate mode
by Djobi
- 2 Replies
- Last post
by Djobi
- I think there is a bug in the ofstream. Or something I didn't anderstand... My test program : ======================================= int _tmain(int argc, _TCHAR* argv[]) { ofstream FluxOut; FluxOut.open( "AAAA.txt", ios_base::ate ); if ( FluxOut.fail() ){ // ( it doesn't fail ) cout << " Erreur Ouverture" << endl; return 1; } FluxOut.close(); ret
-
- C++ And MS-Access Connectivity :problem parameterised query does not get parameter.
by vaibhavsaxena17
- 1 Replies
- Last post
by vaibhavsaxena17
- Hi all; I am doing C++ and Ms-ACCESS connectivity. previously I was using DAO. not I just switch with ADO. I need to add Grid to display data. Stored queries are used. It is working fine if stored query is like Select Statement. but it is not working fine if I use Parametrised query. the same code is running fine in DAO version. means Parameter is not able to set to parametrised query. The same pr
-
- Compiling Older C++ Versions In Visual Studio 2005
by Slugger25
- 4 Replies
- Last post
by Sahir Shah
- I'm about to start supporting an application that was developed in Visual C++ 5.0.
What problems will I encounter if I compiled the code in Visual Studio 2005
Can anyone give me some indication of the effort to bring the Visual C++ 5.0 code
up to Visual Studio 2005 version of Visual C++
I know the app is a Windows app developed with MFC. I do not know the extent to
which
-
- Thread stacks consumes all address space
by jfranzoy
- 7 Replies
- Last post
by Mark Gilbert
- Hello. I am a library writter/mantainer. In one of the libraries there is a Thread class. A clien program needs to launch a lot of threads, kind of 3K or 4K threads. The problem is that virtual address space get exhausted because every thread take 1MB for stack.
I was asked to provide a way to limit the virtual address space consumed by the stack of a thread. Browsing the documentation I fo
-
- DLL fails on 9x platform, runs on NT platform
by JeffRozar
- 8 Replies
- Last post
by JeffRozar
- Here is some code I wrote that needs to be called from a Win32 exe. The Win32 exe needs to run on both 9x and NT platforms. The code compiles with no problem on VS 2005, but the DLL will not load when run in 9x. It runs under NT, and only if I uncomment the "//return" line, will it run under 9x. LsaOpenPolicy is an NT platform API - it's as though the DLL is calling or referencing the Ls
-
- relinking RTM libraries for VS2005SP1
by HonzaHornik
- 10 Replies
- Last post
by HonzaHornik
- Hello.I cannot relinking CRT libraries (msvcr80.dll, ...) due to unhandld.obj. This obj is not generated during compiling. I used original makefile from VS2005 SP1. Can you help me. Thanks.
-
- how to use REALZWQUERYSYSTEMINFORMATION
by langev
- 2 Replies
- Last post
by langev
- when i use REALZWQUERYSYSTEMINFORMATION,there are errors:
missing ';' before identifier 'RealZwQuerySystemInformation' error C2501: 'REALZWQUERYSYSTEMINFORMATION' : missing storage-class or type specifiers error C2501: 'RealZwQuerySystemInformation' : missing storage-class or type specifiers
why
thank you!
-
- RegQueryValueEx, Access Violation error (0xC0000005)
by stef8803
- 9 Replies
- Last post
by stef8803
- I have the following code in my program:
Code Snippet RegCreateKeyEx(HKEY_CURRENT_USER,(CString)"Software\\StefSoft\\WinStatus",0,NULL,REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS,0,&hcpl,&disposition); if(disposition==REG_CREATED_NEW_KEY) { char* lpData1="%m%"; RegSetValueEx(hcpl,"Masca",NULL,REG_SZ,(const unsigned char*)lpData1,strlen(lpData1)); } RegClo
-
- AfxGetThread from non-MFC thread
by Alexander Petukhov
- 7 Replies
- Last post
by Simple Samples
- Hi i have the following problem: i'm developing Internet Explorer extension, which have some dialogs with help buttons When pressing help button from the extension executing in the main thread(first IE window), message is routing well to the main thread CWinThread object where it is handled and everyting is all right. But when i'm opening new window and press help button there, AfxGetThread which
-
- mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
by ceasor123456
- 11 Replies
- Last post
by Nikhil J George
- I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'.
I don't add any code in it.
I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
My VS is:
Microsoft Visual Studio 2005 Ve
-
- Need to re-register???
by regthesk8r
- 4 Replies
- Last post
by regthesk8r
- I installed service pack 1 for Visual C++ the other day, and now im being told to register Visual C++, yet it is already registered is it possible to use the registration key I was using before, or do I need a new one
-
- Define object scope - C++/CLI
by soli3d
- 6 Replies
- Last post
by soli3d
- Hi All, What is the proper way to define object scope similar to "using" in c# Font font2 = new Font("Arial", 10.0f);
using (font2)
{
// use font2
} Thank you, Paul
-
- assigning derived class from base class declaration
by Steve Jackson
- 9 Replies
- Last post
by Steve Jackson
- Hello;
For the following code, know that Poodle is a derived class of Dog, and that aPoodle is an instanciation of Poodle.
In the code below, I would expect dogObject to become a pointer to aPoodle, but it doesn't seem to work for me. Instead, dogObject seems to only maintain the attributes of dog.
Any idea what I may be doing wrong
___________________________________________________
-
- Help in getting DLL name
by mejandusay
- 7 Replies
- Last post
by TilakGopi
- Hello,
I have an application that used LoadLibrary to invoke a DLL; then that DLL invoked another DLL using its exported functions; how will I be able to get the name of the middle DLL
-
- std::string and std::wstring
by VFaul
- 6 Replies
- Last post
by einaros
- In my code I'm doing the following:
using namespace std;
#ifdef UNICODE
wstring m_str;
#else
string m_str;
#endif
Is there a std type, similar to TCHAR, that I can use instead
Thanks,
VF
-
- i cant find the mistake plz help
by simpatico
- 3 Replies
- Last post
by simpatico
- hi i have this code and i have a problem i cant find the logic error here
the problem is when i enter a value its work but sometimes there are values become exist without i try to enter them how would i fixed that like that
enter row then column 1 1
x - - - - - - x - here the one in the red i didnot input its value why its appear plz tell me
and help me
this is t
-
- VS 2005 and Qt QString
by TDobmeye
- 14 Replies
- Last post
by TDobmeye
- I am trying to convert a QString to a std: tring using VS 2005 and Qt 4.3.0. There is a function in QString::toStdString( ) that returns a std: tring and I have used this many times when I used VS 2003 and Qt 4.3.0 but I was recently forced to upgrade to VS 2005. Now I have been crashing in a function and I have narrowed it down to this call. I have commented out everything but this one line for c
-
- Programming FAQ
by n0n4m3
- 0 Replies
- Last post
by n0n4m3
- Hi, since I started visiting this forum I answered same questions for some time and I decided to write a FAQ page with those questions answered. You can find it here: http://n0n4m3.codingcorner.net/index.php pag=programming_faq&language=en and if you prefer Portuguese: http://n0n4m3.codingcorner.net/index.php pag=programacao_faq&language=pt It still has only a few questions but more will