c# - Java call of .NET -
i try use .net library in java. therefore, use jni calls of c++ project refers / uses dll of .net.
to use .net library have several steps in-between. first use c# project ‘wrapper’ instance between library , c++ project. c# project creates dll.
the main wrapper c# class (csharpwrappersession) [comvisible(true)] , has fixed guid [guid("xxx")] out of ‘c#’-dll create tlb file. tlb file imported c++ project.
#import ".\csharpwrapper.net.tlb" no_namespace, named_guids
when create exe out of c++ project can use wrapper , call needed .net library.
now try make connection between c++ project java. therefore, use jni , created dll out of c++. leads error 0x80040154 – class not registered.
this error happens, when try call cocreateinstance(clsid_csharpwrappersession)
i have registered used libraries regasm , done gacutil on it. doing wrong? ideas or suggestions?
Comments
Post a Comment