Cannot work reg Free com Dll (created in VC ++) in java

when I use the free COM version of Reg to load in Java, it does not work. But if its registered COM DLL is loading ... I do not want to use it on an empty system as a registered com dll ..

I added a manifest for the COM component. But when I tried to create a CoClass object, it fails with the error "Could not create object." CreateInstance returns "0x80040154". script 1.Loaded C ++ dll from java. 2.cll dll uses my dll COM.

Please give me a solution

+4
source share
1 answer

Since the manifest file (for example, MyApp.exe.manifest) only works on processes of a specific executable file in the same folder as the manifest (the MyApp.exe file in the same folder), I would suggest you try using a wrapper such as Lauch4J and use the generated exe file name as the prefix of your manifest. Mostly I guess.

0
source

Source: https://habr.com/ru/post/1416365/


All Articles