Microsoft KB Archive/156398

= FIX: Link Failures with Non-Default Calling Conventions =

Article ID: 156398

Article Last Modified on 3/21/2005

-

APPLIES TO


 * Microsoft Transaction Services 1.0

-



This article was previously published under Q156398



SYMPTOMS
If the default calling convention for the compiler you are using is something other than __cdecl, you will receive link errors when you use the GetObjectContext and SafeRef functions.



CAUSE
The function prototypes for GetObjectContext and SafeRef are not explicit in their calling conventions.



STATUS
Microsoft has confirmed this to be a problem in Microsoft Transaction Server version 1.0. This problem was corrected in Microsoft Transaction Server version 1.1.

For information on obtaining version 1.1 or version 2.0, please see the following articles in the Microsoft Knowledge Base:

168031 HOWTO: Obtain Microsoft Transaction Server Version 1.1

185174 Latest Version of Microsoft Transaction Server



MORE INFORMATION
The following function calls extern HRESULT GetObjectContext (IObjectContext** ppInstanceContext); extern void * SafeRef(REFIID rid, IUnknown* pUnk); Have been changed to: extern HRESULT __cdecl GetObjectContext (IObjectContext**  ppInstanceContext); extern void* __cdecl SafeRef(REFIID rid, IUnknown* pUnk);

Additional query words: nondefault call

Keywords: kberrmsg kbbug kbfix kbmts110fix KB156398

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.