Board index » Visual Studio » Update your OLE?

Update your OLE?

Visual Studio291
I am trying use mscorlib.dll from old VC6 MFC app that was ported to the VC7

compiler. The app works fine except when I enable /clr in the project

settings and run the app. The following error dialog appears then the app

exits:

"OLE initialization failed. Make sure that the OLE libraries are the

correct version."



So I looked up the error on MSDN and found the following

msdn.microsoft.com/library/default.asp

Error Message:

OLE initialization failed. Make sure that the OLE libraries are the correct

version.



Explanation:

When CLUSCFG was started, AfxOleInit failed. The most probable cause is that

the OLE DLLs are outdated.



User Action:

Update your OLE



This User Action doesn't help much. How does one "Update your OLE?", and to

what should it be updated. I am using Windows XP SP1 and Visual Studio.Net

2003.





--

Regards,

-Ron


-
 

Re:Update your OLE?

RNEELY <RNEELY@discussions.microsoft.com>wrote in message news:<136167FA-77C4-4AA5-A32A-E3C861040469@microsoft.com>...

Quote
I am trying use mscorlib.dll from old VC6 MFC app that was ported to the VC7

compiler. The app works fine except when I enable /clr in the project

settings and run the app. The following error dialog appears then the app

exits:

"OLE initialization failed. Make sure that the OLE libraries are the

correct version."



So I looked up the error on MSDN and found the following:

http://msdn.microsoft.com/library/default.asp?url" rel="nofollow" target="_blank">msdn.microsoft.com/library/default.asp=/library/en-us/w2kmsgs/4810.asp

Error Message:

OLE initialization failed. Make sure that the OLE libraries are the correct

version.



Explanation:

When CLUSCFG was started, AfxOleInit failed. The most probable cause is that

the OLE DLLs are outdated.



User Action:

Update your OLE



This User Action doesn't help much. How does one "Update your OLE?", and to

what should it be updated. I am using Windows XP SP1 and Visual Studio.Net

2003.





Are you compiling and running it on the same machine? You can step

into AfxOleInit you know! It actually calls OleInitialize so look at

the full documentation for OleInitialize which contains the following

bullet point:



If OleInitialize returns OLE_E_WRONGCOMPOBJ, either COMPOBJ.DLL or

OLE2.DLL has been updated to a version that is incompatible with the

other file. To correct this problem, replace both of these files with

versions for your operating system from the same release of the

Platform SDK.

-

Re:Update your OLE?

Thanks for your reply Headache. Actually this thread was

was resolved via code gur

http://www.codeproject.com/script/comments/forums.asp?forumid" rel="nofollow" target="_blank">www.codeproject.com/script/comments/forums.asp=3785&df=4&mpp=50&select=987044&msg=987044#xx987044xx



Regards,

-Ron



"Headache" wrote:



Quote
RNEELY <RNEELY@discussions.microsoft.com>wrote in message news:<136167FA-77C4-4AA5-A32A-E3C861040469@microsoft.com>...

>I am trying use mscorlib.dll from old VC6 MFC app that was ported to the VC7

>compiler. The app works fine except when I enable /clr in the project

>settings and run the app. The following error dialog appears then the app

>exits:

>"OLE initialization failed. Make sure that the OLE libraries are the

>correct version."

>

>So I looked up the error on MSDN and found the following:

>http://msdn.microsoft.com/library/default.asp?url" rel="nofollow" target="_blank">msdn.microsoft.com/library/default.asp=/library/en-us/w2kmsgs/4810.asp

>Error Message:

>OLE initialization failed. Make sure that the OLE libraries are the correct

>version.

>

>Explanation:

>When CLUSCFG was started, AfxOleInit failed. The most probable cause is that

>the OLE DLLs are outdated.

>

>User Action:

>Update your OLE

>

>This User Action doesn't help much. How does one "Update your OLE?", and to

>what should it be updated. I am using Windows XP SP1 and Visual Studio.Net

>2003.





Are you compiling and running it on the same machine? You can step

into AfxOleInit you know! It actually calls OleInitialize so look at

the full documentation for OleInitialize which contains the following

bullet point:



If OleInitialize returns OLE_E_WRONGCOMPOBJ, either COMPOBJ.DLL or

OLE2.DLL has been updated to a version that is incompatible with the

other file. To correct this problem, replace both of these files with

versions for your operating system from the same release of the

Platform SDK.



-