Issue while registering ocx files  
Author Message
sabarish_s





PostPosted: Visual C++ General, Issue while registering ocx files Top

Hello Everyone,

We are facing a strange issue while building some VC8 OCX projects using Visual Studio 2005 i one particular machine ... By Default there is a custom build Step which registers the control after building . The following is the custom build Step

regsvr32 /s /c "$(TargetPath)"
echo regsvr32 exec. time > "$(OutDir)\regsvr32.trg"

When we rebuild the solution, we are getting an error

Runtime Error

Program : c:\windows\System32\regsvr32.exe

R6034

An application has made an attempt to load the C Runtime incorrectly


but if build the ocx project again the error disappears.... Can any one guide us

Regards
Sabarish



Visual C++8  
 
 
Sheng Jiang





PostPosted: Visual C++ General, Issue while registering ocx files Top

Is the machine runnig 64bit Windows

 
 
sabarish_s





PostPosted: Visual C++ General, Issue while registering ocx files Top

Yes
 
 
sabarish_s





PostPosted: Visual C++ General, Issue while registering ocx files Top

Also if i try to build the ocx using Build option, the error goes away.... can any one help me on this strange problem. This is happening only in one mahine
 
 
Anne CHild





PostPosted: Visual C++ General, Issue while registering ocx files Top

We too are getting the "R6034 - An application has made an attempt to load the C runtime libraries incorrectly." error when attempting to run regsvr32 against our OCX files. We have put mfc80.dll, msvcr80.dll, and msvcp80.dll into the path and have linked with the manifest flags. Still the problem occurs. Did you ever find a solution to this

What do you mean by "if i try to build the ocx using Build option, the error goes away". Do you mean by using "Build" from the developer studio GUI as opposed to building via a make file from the command line If there is an option I can stick into my makefile, I'd love to know what it is.

Thank you.