Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2009, 10:03 AM   #1
Registered: Jul 2007
Location: UK
Distribution: LFS 6.8, Android, Ubuntu 10.10, XP, 7 (HB,HP,Ultimate)
Posts: 41

Rep: Reputation: 15
COM+ Problem (i think) with Wine


I've been looking into wine to see if I can remove the need for a dedicated windows machine to run some in-house vb6 software including a COM+ layer.

Currently I have my COM files in the System32 folder (as i read something that suggested that WINE would require the COM to be stored there).
I don't mind where it goes, i registered it using regsvr32 provided by wine.

I have compared the registry against my windows machine, and the COM appears to have registered successfully.

When i try to run an incredibly small vb app (appA) which only uses a few COM files i get the following error:
"Run-time error '-2147467259 (80004005)': Automation Error"

"fixmele:CoCreateInstance no instance created for interface {00000000-0000-0000-c000-000000000046} of class {main COM CLSID for appA}, hres is 0x80004005"

I have created a basic VB6 hello world form program, that runs fine. (So i dont believe i am missing any VB runtime files)

In order to register the COM i needed to add windows files to Wines' system32 folder, i also added files that dependencyWalker suggested:
* msvcr71
* msvcp71
* mfc71deu
* mfc71fra
* mfc71jpn
* mfc71chs
* mfc71cht
* mfc71esp
* mfc71ita
* mfc71enu
* mfc71kor
* mfc71u
* mfc71
* mfc42d
* mfcn42d
* mfco42d
* xpsp2res
* msctfime.ime
* asyncfilt
* clbcatq
* comres
* hnetcfg
* imm32
* mfc42
* mpr
* msctf
* msvbvm60
* msvcp60
* secur32
* uxtheme
* ws2help
* wshtcpip
* mswsock
* vbscript

to those with a keen eye, you may notice that some of the files i copied are built-in to Wine. I didn't realise at the time, but i found all of them in the 'configure wine, libraries' and set their Wine configuration to built-in only.
Also, some of the COM is still debug mode, hence needing the development versions of mfc etc

I ran dependencyWalker on appA on the windows machine and under wine. I compared the results, analysing the results is not easy however.
I did find that under Wine i got many many lines that look like this:
"GetProcAddress(0x7e860000 [WINEX11.DRV], "AbortDoc" called from "GDI32.DLL" at address 0x7ecc8a0a and returned NULL. Error: Procedure not found (127)."

"GetProcAddress(0x7B820000 [KERNEL32.DLL], "IsTNT") called from "MSVBVM60.DLL" at address 0x73421BE1 and returned NULL. Error: Procedure not found (127)."
"GetProcAddress(0x7EB50000 [OLE32.DLL], "CLSIDFromProgIDEx") called from "MSVBVM60.DLL" at address 0x73424E49 and returned NULL. Error: Procedure not found (127)."
"LoadLibraryA("SXS.DLL") returned NULL. Error: Message 0x%1 not found in file %2 (317)."

none of which appear in the windows environment.

I hope this is clear, and provides enough information for someone to help or point me in the correct direction.

Perhaps, Wine just doesn't support this functionality?
Some closure would be greatly appreciated.


Old 02-27-2009, 07:28 AM   #2
Registered: Jul 2007
Location: UK
Distribution: LFS 6.8, Android, Ubuntu 10.10, XP, 7 (HB,HP,Ultimate)
Posts: 41

Original Poster
Rep: Reputation: 15
This has been solved. I was missing a registry entry. apologies. COM+ appears to be working perfectly.

thanks for looking.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wine problem hraposo Debian 1 12-29-2006 11:01 AM
Problem with WINE ibshar Linux - Software 5 12-24-2006 11:39 PM
Link targets - problems with Wine (Though not Wine specific - Wine site doesn't help) Kevjml Linux - Newbie 1 01-13-2006 07:53 AM
problem with wine exigent Linux - Software 1 03-04-2004 06:59 AM
Problem with Wine... Red Guy Linux - Software 8 02-24-2003 07:17 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration