I am trying to run an application on a machine that does not have Visual Studio 2008 installed.
I am getting an error message "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem."
It's only a one dialog application. Nothing fancy. The controls used are combo boxes, edit control, static text control and list control.
I have installed the distributable libraries on this machine. I have compiled my code under release mode. Update the machine with all patches from Microsoft update as well.
I used the setup and deployment wizard too to see if that would solve my problem.
I have installed the distributable libraries on this machine.
How did you do that exactly ?
TO be able to run such an application on a machine were Visual Studio is not installed, you need to install the Visual C++ 2008 Redistributable package[^] on the target machine. This takes care of installing the required libraries (C run-time and MFC libraries). You can't do the same as with VC6: simply copying manually some files won't work.
you need to install the Visual C++ 2008 Redistributable package[^] on the target machine.
Yes, I read about that when I searched for this error before posting this message.
Not sure what else to do, even reinstalled the operating system, got all the current updates. and installed the redistributable and yes I did compile it in the release instead of debug. Are there any options that need to be changed when I do a release compile.
I even tried a new project created by the wizard same result in the realease mode.
Do I have to change any other options when in release mode?
Ozer is right in that GetBuffer() is the problem. But you don't need to call that since you don't need write access to the CString's buffer. Pass *this to atof() and the compiler will insert a call to the LPCSTR converter for you.
Yes, but you can't tell the radio button is selected by looking at it (it loses the black circle indicating selection). You can access that information in code, but how does the user know what was previously selected?
Normally, its visual state (black circle) shouldn't be changed, too, except for dimming, of course. Normally means, at first, your radio button is in windows' standard RADIOBUTTON class (or its MFC counterpart, CButton).
It's possible that it may be an owner draw button or sub-classed one or even a complete custom control. if so, the problem may be with its drawing routine.
Sometimes, OS itself shows some strange behavior due to a sw./hw. problem (may be graphic card driver). I recommend to try it on another machine.
Although I think that this is standard behavior, (latest) windows version differences should also be considered (e.g. Windows7, Vista).
So, this isn't the same request as most other requests of this topic.
My idea is to hook it just for one particular application. I'm desiring to sandbox an application, aka application virtualization.
So, take a written application, wrap it with my code which hooks all the CreatefileA, CreatefileW, etc... made by this application. I assumed it would be easier than hooking the system api, but honestly, I'm not so sure after I've been looking around!
My hope is to start an open source application virtualization which will be like ThinApp (Thinstall), and the microsoft one too.
Any ideas, or pointers to existing open source projects? (I haven't found one...)
Can you modify how the application is built? If so, you could create a replacement for kernel32.lib, user32.lib etc that the application could link against. This CP article[^] could help with creating the interception DLL
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I've got a custom control class that derives from CStatic that should handle WM_RBUTTONUP within its code. unfortunately this message is always redirected to the parent window (a CDialog). What can i do?