Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 735 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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