INFO: Proxy-Stubs for Custom Interfaces Must Include Mtxih.lib |
Q170831
Microsoft Transaction Server components must be accompanied by proxy-stub DLLs, which enable out-of-process calls. For OLE automation
interfaces, Microsoft Transaction Server is able to use the Oleaut32.dll
proxy-stub provided with the operating system. However, if you compile
your own proxy-stub to be used instead of Oleaut32.dll, Microsoft
Transaction Server requires that it link in functions from Mtxih.lib.
NOTE: For custom interfaces that cannot be marshaled using standard automation support, you must build the proxy-stub DLL with MIDL version 3.00.44 or later (provided with the Microsoft Platform SDK for Windows NT, version 4.0).
Calls to your Microsoft Transaction Server object through a custom
interface will fail unless you perform the following steps:
midl /{Oi | Oic | Oif | Oicf}
where /Oif or /Oicf icf specifies the codeless proxy method of marshaling that includes all the features provided by /Oi and /Oic but uses a new interpreter ("fast format strings") that provides better performance than /Oi or /Oic.
Microsoft Transaction Server allows you to create an instance of the custom
interface component. However, the following problems may occur if you have
not correctly linked Mtxih.lib with your custom interface's proxy-stub or
if the proxy-stub is not correctly registered:
Interface is not supported by Microsoft Transaction Server. It does not have either a type library or a proxy stub. The object that implements it does not support IDispatch::GetTypeInfo, ITypeLib, or ItypeInfo.
atl9ps.dll: dlldata.obj atl9_p.obj atl9_i.obj
link /dll /out:atl9ps.dll /def:atl9ps.def /entry:DllMain
dlldata.obj atl9_p.obj atl9_i.obj mtxih.lib kernel32.lib rpcndr.lib
rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib ole32.lib advapi32.lib
.c.obj:
cl /c /Ox /MD /DWIN32 /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL
$<
clean:
@del atl9ps.dll
@del atl9ps.lib
@del atl9ps.exp
@del dlldata.obj
@del atl9_p.obj
@del atl9_i.obj
For more information, see the Web sites at:
http://msdn.microsoft.com/support
Additional query words: mts
Keywords : kberrmsg kbMTS kbMTS100 kbMTS200 kbVC kbDSupport
Issue type : kbinfo
Technology :
|
Last Reviewed: October 19, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |