|
Oh, sorry, I probably didn't explain myself properly ...
You need to run the vcredist_x86.exe on the target PC (the one without the VC2005) so that it deploys the VC & MFC DLLs, and only then run your application.
|
|
|
|
|
Yes, this is what I've done... the strangest thing is that at the end the VCREDIST don't show any message...
and at the end, when I try to execute the programa the problem appears...
|
|
|
|
|
Is your app built in debug or release ?
If it's in Debug, then that's the problem ... the vcredist_x86.exe only deploys the release version of the required DLLs ... if your application is built in debug then it's dependant upon the debug versions of MFC/VC and they are probably missing. Try to deploy a release version of your app.
|
|
|
|
|
I've also tried that...
|
|
|
|
|
Maybe you have a lib that's compiled in debug in your application ?
|
|
|
|
|
No, I've even made a new solution, and tried to compile it in release mode. After doing that, the same result...
|
|
|
|
|
Hi,
Once I got it right to run an application, developed in VS2005 VC++ without having to run any external application, before hand. I linked statically to a couple of lib's. I cant remeber their names, but it worked.
Have a look at: C Run-Time Libraries (CRT)[^]
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
The best way is to create a setup project to install it, or run the .exe the others have told you about. There is a quick and dirty way that works on XP, you can just copy the .dll's that you want but you have to put them into directories with their manifests. For example, (from here[^])
to include Microsoft.VC80.MFC.dll you need to copy the \Microsoft.VC80.MFC directory from %VCINSTALLDIR%\redist\ into the loacl application directory like:
<br />
\bin\<br />
myApplication.exe<br />
\Microsoft.VC80.MFC<br />
This works on XP but I don't think it works on earlier OSs. Of course, ensure you have the release build, otherwise you would need the debug dlls.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Great! it worked! I still don't understand why do the two exes that everybody told me to use are not working on that computer, but who knows...
Thank you and everybody for your help.
|
|
|
|
|
I have application build in Embeded VC++ 4.0 project,now i want to include (.h) file in project which is produced from another (.exe) built in Win32(App) Console.I have added header file in project workspace.The problem is (.h) file is created after compiling the project.I want to include (.h) file before compilation of code because it is being used in project.Is there any way to do thing?
I have tried by writing command in Custom build step:
call "L:\11rvtsapril\ExcelCvt.exe"//(ExcelCvt.exe is Wn32 Console App)
Is there any way to change Comipler option so that Cosole App(.exe) runs first,after that compilation of Application take place.Thanks in advance.
priyank
|
|
|
|
|
pri_skit wrote: The problem is (.h) file is created after compiling the project
that's impossible !!!
the .obj, .lib, .dll or .exe are, but not .h, .c or .cpp because they are the SOURCE of a program !
|
|
|
|
|
When i run Console Win 32 App,then it reads excel & converts it into file(which may be of any type .txt,.c,.cpp,.h).This file needs to be used in another project Embedded VC++ 4.0(MFC Supported).How this could be done?
This shold happen: When i compile Embedded VC++ 4.0(MFC Supported) Application,then it automatically runs another .exe (Win 32 Cosole App) first,which in turn generate a file & this file needs to be used in project.
Is there any more clarification required????
priyank
|
|
|
|
|
WTF does excel come to do here ?
can you talk a little more about that file content ?
|
|
|
|
|
Excel contains strings in 9 language.This (.exe) project(Win32) read excel & convert to file(containg CString str[]="Lang1",.,.,.,"lang7") format string.
priyank
|
|
|
|
|
toxcct wrote: that's impossible !!!
That is possible. Sometimes, some header files and source files are generated by external tools. An example is when you use CORBA (it is a technology that allows you to make calls on a remote class, something similar to DCOM i think). You need to provide an IDL file (Interface Description Language). From this file, a specific CORBA compiler will generate header files and source files that need to be used by your program. So, it is logical that this tool is executed before the compilation of your program.
|
|
|
|
|
yes yes, i know about CORBA.
but here, it seemed to me that the OP were not really of that advanced knowledge
|
|
|
|
|
It depends of the IDE you are using.
But in general, you have several options. The easiest one, is to open the "Tool Build Order" option (in the 'Project' menu, for VC2005) and move the custom build tool before.
Or instead of using a custom build step, you can use the 'Build events' specify your command line to be executed in the 'Pre-Build Event'.
The last option is a little bit more complex: you can create a custom build rule yourself and so create a new 'tool'. But that's is a little bit comlicated.
|
|
|
|
|
hi!
i want to get my quality system in my VC project. how do i it do?
Zo.Naderi-Iran
|
|
|
|
|
Could you please expalin / elaborate more on the requirement ?
Regards,
Paresh.
|
|
|
|
|
yes,
i want to call SetPixel function in my project, but i should know what the quality system sets (16bit or 32bit)
Zo.Naderi-Iran
|
|
|
|
|
Use the API GetDeviceCaps .
Regards,
Paresh.
|
|
|
|
|
oh, yes. thank you
CDC* pdc = GetDC();<br />
int iBits = pdc->GetDeviceCaps(BITSPIXEL);
Zo.Naderi-Iran
|
|
|
|
|
Hi All,
I am getting the follwing error when I try to compilethe code...Please help
error C2664: '__thiscall CUSBMgr::CUSBMgr(const class CUSBMgr&)' : cannot convert parameter 1 from 'class CString' to 'const class CUSBMgr&'
Reason: cannot convert from 'class CString' to 'const class CUSBMgr'
No constructor could take the source type, or constructor overload resolution was ambiguous
Thanks in Advance
Ashok
|
|
|
|
|
Looks like the class CUSBMgr has no constructor that accepts a CString . Can you show the code in question?
Steve
|
|
|
|
|
Modify the constructor which takes CString as an argument.
I guess you are trying to provide the copy constructor for your class.
Could you please share the code which gives this error ?
Regards,
Paresh.
|
|
|
|