marcomagdy / isolated_com

Isolated COM - Sample for registration free COM
GNU General Public License v2.0
1 stars 2 forks source link

Does not work as expected #1

Open somanuell opened 2 years ago

somanuell commented 2 years ago

Hi,

I cloned the repos and then created a console project for the client. Then I built it successfully by #importing the decoder.tlb I have a client.exe with no embed manifest (verified that with mt.exe) I copied your "client.exe.manifest" alongside the client.exe

Then I built the Decoder.dll and used: mt -managedassemblyname:decoder.dll -out:decoder.manifest -nodependency I got a warning: mt : genman warning G81010014: Explicit guid not defined for type Decoder.StringDecoder.

Now I have the 4 files in the same place: the exe, the dll, and the two "manifest" But CreateInstance fails with 0x80040154...

Then, I added the client.exe.manifest as resource inside the exe with: mt -manifest client.exe.manifest -outputresource:client.exe;#1

Then IT Worked!

aABlAGwAbABvAA==
hello

That's cool BUT I can't change the EXE I use (that is: adding a manifest resource)

Why can't I have the client.exe manifest as a stand alone file?

somanuell commented 2 years ago

Side note: you have to put -nodependency before -out: