Hi
Im hosting CLR in an vc6 project via:
- CorBindToRuntimeEx
- Start
- GetDefaultDomain
- Load_3 (load assambly from mem)
- get_EntryPoint
- Invoke_3(vTarget, pSAParams, &vRetVal); (execute main)
In this way I am able to load most of the pure manged files.
I even figured what to put inside LPSAFEARAY pSAParams to support Main( with
params) because if pSAParams is NULL it will fail on these type of entry
points;
The problem is that I have an image wich won't run; The HRESULT from
Invoke_3 is COR_E_TARGETINVOCATION; I suspect that VARIANT vTarget is the
problem; I don't know what/how to pass there; it must be the object which
created the instance, but I can't figure out what's that :P
The exception looks like this: System.NullReferenceException: Object
reference not set to an instance of an object
at BusyBarDemo.Form1..ctor()
at BusyBarDemo.Form1Main()
Please help, I'm not familiar with .net platform.
ChristiG - 22 Apr 2007 11:04 GMT
Ok, no answer.
Then where I should ask to receive an answer about this undocumented COM
stuff?
> Hi
>
[quoted text clipped - 21 lines]
>
> Please help, I'm not familiar with .net platform.