Group:  Visual C ยป microsoft.public.dotnet.languages.vc

Threads Replies Last Post
143 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  
Singleton and Local static object:
Is the below code thread safe, in multithreaded environments will a race condition happen as we are using static Singleton* Singleton::Instance () { static Singleton s; return &s; } Regards, Alamelu...
3 12/30/2008 10:57:41 PM
_DWORD
Hello. Does anybody know what this conversion (?) does? I don't understand the underline in front of the DWORD. Thank you. Tim...
6 12/29/2008 3:14:53 PM
FindWindow fails
Hello, I am trying to register my own unique window class. The registration seems successful (the window is displayed and there are no error messages), but when I use FindWindow, to try and find the registered window, the functions returns NULL How come the window registrtation is OK, but the Findwindow fails? BOOL CMyApp::InitInstance() { WNDCLASS wndcls; memset(&wndcls, NULL...
8 12/29/2008 11:06:57 AM
plugging windows form application to mfc application
1) i have a windows form based (CLR , visual studio 2005 ) application , which is running fine. 2) i have two more application in MFC ( VC++, visual studio 2005 ), which are running fine. Now i need to make a combined application which will kind of contain all three. Basically the idea is to have 3 tabs and each tab showing a different application. This means i have to either port windo...
1 12/29/2008 9:49:38 AM
Findwindow fails
Hello, I am reposting this question, because the previous time I posted the question it states; "Community Message Not Available"??? Anyway, I am trying to register my own Window class. It seems that the window registration is working OK (the window is displayed and there are no error messages). But, when I try to access the window using FindWindow, from a different application, the F...
1 12/27/2008 3:11:01 PM
Including file in *.exe.
1. How to include any type of file in MFC *.exe file at design-time? 2. How to launch them without extracting ? 3. How to exctract them ? 4. How to include them back in *.exe at run-time?...
2 12/27/2008 12:25:17 AM
New Mother Board and SATA Drive Copying settings from old drive to
Hi, I needed to upgrade my system so I backed up my 1st system using Norton Ghost to a third drive then swapped out my Mother Board (Intel DG45ID WITH AN iNTEL 2 duo PROCESSOR). I got it without knowing that I was not going to get IDE slots on my new board so by the time I got the new Mother Board I discovered I had to buy SATA DVD and HD drives. When I installed Windows XP again and ...
2 12/27/2008 12:05:30 AM
Automatically install (register) dll
When I manyally register *.ocx or *.dll files like this regsvr32 mydll.dll everything is normal. 1. But how to install(register) them automatically when the MFC VC++2008 *.exe first time running, without any message, and only one time ? 2. How to find out if they installed or not ? 3. How to replace old version the same *.dll ? 4. How to include dll file in exe and extract them and re...
2 12/26/2008 10:44:52 PM
Visual studio 2008 IDE application R6034 runtime error - MSDN news group moderator Please Respond.
I am getting a Visual studio 2008 IDE application R6034 runtime error. This means that the IDE application is raising the error not the application I am building. This means that Microsoft did not follow its own advice as listed in http://msdn.microsoft.com/en-us/library/ms235560(VS.80).aspx and "build with a manifest". The DLL in question seems to be msvcr8.0.dll which is the VS2005 C r...
5 12/26/2008 9:00:54 PM
Converting types: long to CString
How to convert long to CString ?...
2 12/26/2008 12:25:50 PM
specify def in project settings
I am trying to use a 3rd party dll that only comes with a .def file (no ..lib). Where do I specify in project settings to use that .def file? I am using Visual Studio 6.0. Thank you. Jerry...
2 12/26/2008 9:27:22 AM
long to CString
How to convert long to CString and back (vice-versa) ?...
1 12/26/2008 7:41:00 AM
Using Access 2002 database without installing Access Server
If server program Access 2002 is installed everything is normal. But when I use a VC++ *.exe file with a *.mdb in the WXPSP2 system without installing server program Access 2002 then it: 1. works 3 times slower 2. right-to-left text appears left-to-right in the listbox. How to fix these in both cases without installing the server program, but only with the *.mdb and *.exe program ? How ...
1 12/26/2008 7:31:01 AM
Displaying unicode text from access 2002 database in VC++6 control
How to display unicode text from access 2002 database in VC++6 controls? For example, in CListBox, CListCtrl and others. Supporting languages from right to left in control panel ... languages... installed. I have defined _UNICODE in the project->settings->c/c++ tab under preprocessor definitions and write wWinMainCRTStartup in the project->settings->Link under Entry-point symbo...
10 12/26/2008 6:52:00 AM
msado15.dll and ADO using
I'm using ADO in VC++6 #import "C:\Program Files\Common Files\System\ado\msado15.dll" \ rename( "EOF", "adoEOF" ) and so on. Everything is normal. But when I take release .exe from the computer with VS6 (WXPSP2) and put it on the computer with only OS WXPSP2 it does not work. There is the msado15.dll in the same folder and registered. What should I else add to the .exe file to...
2 12/25/2008 6:39:27 PM
Disabled a status bar pane
Hello, I added a new pane to the status bar. I receive the message in the OnUpdateLevelPane. In the message handler I set Enable(false), but the text that I set in the status bar is not gray. Do I have to explicitly change the color, of the text, in the message handler, or should the Enable(false) change the text to gray? void CMainFrame::OnLevelPane() { } void CMainFrame::OnUpd...
2 12/23/2008 5:56:00 PM
Any API to find if cstring contains special characters
Hi, I want to check if cstring contains alphabets, numerics and comma. No other characters are allowed. Any methods available in cstring? The below code doesnt work. Could you Plz suggest any other better approach CString strTemp = _T("abcde,54"); for(int i = 0; i <= strTemp.GetLength() ; i++) { if(isalnum(strTemp[i]) ||strTemp[i] == ",") { } else { cout...
3 12/23/2008 6:46:22 AM
Clearing a listview
What is the fastest way to clear the contents of a ListView? listView1->Clear() takes far too long. Cheers, K ...
4 12/23/2008 1:31:20 AM
How can I used packed typdefs in Visual C/C++
I wanto use a packed structure with a malloc. But the pack pragma only applies to data declarations not typdef. is this possible in C/C++? eg I want do something like; #define PACK_UNIX __attribute__((aligned)) #define Iu32 to be a 4 byte variable type. typedef struct thread_trace_element1 { Iu32 timestamp PACK_UNIX ; Iu32 tracepoint PACK_UNIX ; Iu32 type PACK_UNIX ; Iu...
3 12/22/2008 8:57:20 PM
Debugger
I have this "debug" error that continually pops up when online or playing a game and it is very annoying. Can anyone tell me how to disable this so it will stop asking me that question? Happy Holidays, Mimi...
1 12/22/2008 6:55:01 PM
Error when loading form designer in visual c++ 2008 express
I am using visual c++ 2008 express. When I try to open the form designer I get the error: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) at Microsoft.VisualStudio.Designer.Interfaces.IVSMDCodeDomProvider.get_CodeDomProvider() at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider() at Microsoft.VisualStudio.Shell.De...
1 12/22/2008 12:31:01 PM
VS2008 && /clr && boost::thread == error LNK2022
Hi, I have a VS2008 project where I'm using boost::thread. The project is compiled with /clr, it's a classlibrary where I wrap access to a native library. Everything compiles fine. The linker gives this error: 1>Finished searching libraries 1>Search transition __pRawDllMain->__t2m@__pRawDllMain 1>Merging metadata 1>EditorFactory.obj : error LNK2022: metadata operation ...
12 12/22/2008 12:09:30 PM
VC 8
Hi, I converted a project in VC6 to VC8 and performed a clean build after compiling stdafx.cpp separately. In project settings i am using "Use Precompiled Header" options. I want to use precompiled headers, hence i dont want to go for "Not Using precompiled Header" options. When building it gives me the following error fatal error C1083: Cannot open precompiled header file: '.\...
2 12/22/2008 9:22:52 AM
MySQL sample ?
Hi Is there some good MySQL database sample use C# or VC or MFC ? Is there some good api or library that I can access MySQL without MySQL ODBC driver ? Thank for your grand help....
5 12/22/2008 1:49:56 AM
Compiler Error
Hello, CPtrArray *pArrTable; CPtrArray m_pArrTable pArrTable = &m_pArrTable; I'm getting a compiler error from the following line of code: (*(PTABLE_INFO_STRUCT)pArrTable[i]).strResult = _T("3"); Any suggestion on how to fix the code? TIA; -jc ...
3 12/21/2008 4:17:00 PM
143 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  

Home | Search | Terms | Imprint
Newsgroups Reader