Answer Questions
Seidel1 MFC Message Routing to active view from a dialog box
Hey everyone, I an working on a MDI MFC application (although the multiple documents aren't currently being used, just the multiple views). The program uses a modeless dialog box to take user input. The dialog box has an edit box that lets a user type in a command and an enter button for the user to enter the command in the edit box. The program makes use of multiple views through the "new window" item in the window menu. ...Show All
Chengcheng MS C++ 2005 express database mismatch error when compiling
Every time that I attempt to compile a c++ program I get a database mismatch error. When I looked this error up in the included documents, it said that I needed a newer version of dbi.dll. Where can I find this file I know that my programs work because they compile with ms vc++ 6.0 and the gcc complier. Here is the artilce where it told me "how to fix it," but I still cannot find the file that I need. Visual C++ Conc ...Show All
dbcuser Bringing windows to the forground without grabbing focus
Working in VC++ Unmanaged Code. My application has functionality to "alert" the user when certain conditions occur. This is not done with popups, rather, the window which contains the alert is brought to the forground. The idea being that we do not want to grab the focus away from wherever it currently is but we want the window to become visible. The window is a modeless dialog. So, Is there an easy way to "popup" a dia ...Show All
Fogel cl.exe ignores filename case in warning messages
Hi, does anyone know how to make cl.exe create warning messages referring to files with correct filename case -----8<----an example----------- C:\sandbox\>cl.exe /c /EHsc MuppClass.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. MuppClass.cpp c:\sandbox\muppclass.cpp(16) : warning C4715: 'test' : not all control paths return a value -------8<- ...Show All
renealejandrov problems with vc++ express compiling with wsock32.lib
Hello, I'm trying to learn how to work with winsock, but I'm stuck on day 1. When trying to use the WSADATA struct or the WSAStartup function I get some linker errors: -begin code segment- WSADATA wsaData; if (WSAStartup(MAKEWORD(2,0),&wsaData) != 0) { MessageBox(NULL,(LPCWSTR) "wsa thingy failed" ,(LPCWSTR) "boo hoo" , 0); } -end code segment- ------ Build started: Project: win32p ...Show All
Dick Donny new to VC++ 2005, have a few problems
1-In VC++6.0 i could compile a single file by just opening a c++ source file(workspace less) and press the build button. But in vC++ 2005, if i open a c++ source file, the build command is unavalible. i tried to do it by creating an empty project and adding a c++ source file to it. well i can run the code succesfully, but i can not debug it. How can i do it 2-How can i want to add a template to my project: template<class TYPE> class ...Show All
Anon wcsstr with a const return type in rc1 header
Hi 40th Floor! > _CRTIMP __checkReturn _CONST_RETURN wchar_t * __cdecl wcsstr(__in_z > const wchar_t * _Str, __in_z const wchar_t * _SubStr); > > What's the deal with the "const" on the return in > > ...\Microsoft Visual Studio 8\VC\include\string.h > > when the docs I see show > > *wchar_t *wcsstr( const wchar_t* */_string_/, *const* *wchar_t* > */_strCharSet_/ *);* It seems that the docs (or the standard) are wrong :-) ...Show All
gimmick The application failed to initialize properly(0xc00000fd)
Hello, Previously we were using VS6 to build our applications. Recently we moved to VS2005. We are still using the beta. After builds when we run the application we got errors which mentioned unable to find dll entry point for some functions in msvcr80.dll. We found some old msvcr80.dll in c:\winnt\system32. The build manifest file uses 8.0.50215.4652. We replaced the dll in system 32 with 8.0.50215.44 which was available in the sdk/b ...Show All
zpjim dll error...Sorry Guys
Can somebody fix my error(s) The common Language Runtime Support is set to "Common Language Runtime Support (/clr)." I don't know if my function works correctly or not, but I am more concerned about getting the .dll to work. Here is the output, the .h and the .cpp file: ------ Rebuild All started: Project: StationFormat, Configuration: Release Win32 ------ Deleting intermediate and output files for project 'StationFormat', con ...Show All
Havoc Link:Fatal Error LINK1104: cannot open file "C:\DOCUME~1\Alia\Local
I have vc++ 6.0 and use Windows Xp(user name:Alia) I try to complie rainbowcrack source codes http://www.antsight.com/zsl/rainbow...ack-1.2-src.zip in the readme file its says "build as : nmake -f makefile.win first i got openssl error. but later i solved this error. But now i get this error.Look at the pic: http://img93.imageshack.us/img93/5067/errorpic8gb.jpg i didnt change anything in the source code. ...Show All
Craig Skibo Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have recently install VS 2005 Pro and I cannot get breakpoints to work properly in my C++ Win32 application. After compiling for Debug and placing a breakpoint, when I run my program the breakpoint indicator becomes a hollow circle with an exclamation point and I see the above message when I hover over it. This makes no sense to me because I have verified the following: 1. Yes, I have compiled for Debug. 2. Output for my program indic ...Show All
N_M cannot convert from '_variant_t' to '__int64' Ambiguous user-defined-conversion
anyone know the cause of this error I've looked at the manual _variant_t's extrators have a conversion to __int64 so why is the compiler giving me an error so I looked at the header file and the __int64 conversoin operator is ifdefed to nt 501.. why is that This isn't an os specific code it's just converting. And why isn't this in the documentation Earlier versions of Windows ...Show All
Murthi App hogs CPU when mouse pointer moved over it
My MFC app hogs CPU when the mouse pointer is moved around over it. I'm using task manager to monitor the CPU usage. No othe app seems to do this. If my app has a modal dialog box up then it doesn't happen. The app is built with Visual Studio 2005. My main window is only handling WM_CLOSE, WM_ERASEBKGND, WM_SIZE and WM_SYSCOMMAND (none of which get fired when you just move the mouse pointer around over it). If you get furious with the mouse p ...Show All
Gopinath M COM port
I am looking at moving a company utility that collects/analyses/formats/displays diagnostic data collected from specialized equipment via a COM port to a more up to date code platform: it is currently a 16 bit Windows app. I am evaluating Visual C++ 2005. I am searching around for classes/components/anything that will help me with this task. Can anyone point me in the right direction Am I asking in the right place ...Show All
GaryStrader AllocateAndInitializeSid: unresolved external symbols (PlatformSDK)
When linking with 8.0 beta I find these symbols are unresolved: AllocateAndInitializeSid FreeSid In 7.1 they were in PlatformSDK\Lib\AdvAPI32.lib. 8.0 has a library of that name, but apparently no such function definitions In both 7.1 and 8.0, there are declarations for them in PlatformSDK\include\winbase.h. Is there a workaround / fix I need them. Hi, They are in my copy of the library. Can you ...Show All
