Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,302 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: COM+: CoInitialize(NULL) always fails [Re: jcl] #382768
09/12/11 15:18
09/12/11 15:18
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Ok, thanks for clarification.

I still have trouble with getting the right results. The GetHeartCoherence function returns a long and the DLL returns always 123 in my VC++ app (because this is a debug version for me), but in Lite-C I get a 2 - and 123 is confirmed by the developer that this is the right return value.

Can you imagine why this could happen?

Re: COM+: CoInitialize(NULL) always fails [Re: HeelX] #382833
09/13/11 09:07
09/13/11 09:07
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Not without knowing more of that DLL. If you get a 2, I'd suspect you called a wrong function, as the 2 could be the return value of AddRef. Make sure that your Vtbl contains the same functions in the same order and with the same types as in the orginal DLL; the 3 standard methods must be at the start. If some type is not supported by lite-C, find an equivalent of the same size - usually a long or void* works for everything.

If the class inherits something, be sure to add the inherited methods directly after the 3 standard methods, followed by the specific methods of the class. See the example in the manual.

Page 3 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1