Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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