MzCom Modul

86 views
Skip to first unread message

amore.s...@gmail.com

unread,
May 26, 2017, 11:28:47 AM5/26/17
to Racket Developers
Dear friends,

I have startet using DrRacket again. I try to use this
::MZCOMLib::IMzObj* pIMzObj;
CLSID clsid;
CLSIDFromProgID(L"MzCOM.MzObj.6.9.0.4",&clsid);
const IID IID_IMzObj = {0xA604CBA8,0x2AB5,0x11D4,{0xB6,0xD3,0x00,0x60,0x08,0x90,0x02,0xFE}};
HRESULT hRet  = CoCreateInstance(clsid,NULL,CLSCTX_SERVER,IID_IMzObj, (void **)&pIMzObj);

So MzCom.exe starts, I can see it in taskmanager but I get an

0x80004002("No such Interface supported" error when calling CoCreateInstance() in a COM wrapper


So I read :
KB229770 from Microsoft. PRB: CoGetClassObject for IClassFactory2 Returns E_NOINTERFACE for Configured Components SYMPTOMS When you call the CoGetClassObject function for the IClassFactory2 interface on components that are hosted in a COM+ application, the function fails with error 0x80004002 ("No such interface supported" or E_NOINTERFACE). CAUSE This error occurs because the class factory wrapper for configured components only supports the IClassFactory interface, not the IClassFactory2 interface.  

As far as I can see right now the project/Component does not implement  IClassFactory2

So I am right on the end of my alphabet ;o)

Any suggestions...

Paul A. Steckler

unread,
May 26, 2017, 12:09:06 PM5/26/17
to amore.s...@gmail.com, Racket Developers
Did this example used to work for you? Maybe something has changed in
recent versions of Windows?

-- Paul
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-dev+...@googlegroups.com.
> To post to this group, send email to racke...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-dev/c1741fa3-60ba-4818-8e2c-601b1e236127%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

amore.s...@gmail.com

unread,
May 27, 2017, 11:05:53 AM5/27/17
to Racket Developers, amore.s...@gmail.com
No, it doesn´t create an instance. Thatswhy I write here....
I am on a windows 10 machine x64 so I dont have any clue

amore.s...@gmail.com

unread,
May 27, 2017, 11:06:09 AM5/27/17
to Racket Developers, amore.s...@gmail.com
No, it doesn´t create an instance. Thatswhy I write here....
I am on a windows 10 machine x64 so I dont have any clue

Am Freitag, 26. Mai 2017 18:09:06 UTC+2 schrieb steck:
Message has been deleted

amore.s...@gmail.com

unread,
May 30, 2017, 4:47:48 AM5/30/17
to Racket Developers, amore.s...@gmail.com
Even in the DrRacket IDE instantiation of the modul does not seems to work?!
I try this
#lang racket
(require ffi/com)

(define mz (com-create-instance "MzCOM.MzObj"))
(com-invoke mz "About")

Then I get this:
GetTypeInfo: failed (8002801d; Bibliothek nicht registriert.)

Paul A. Steckler

unread,
May 30, 2017, 7:49:06 AM5/30/17
to amore.s...@gmail.com, Racket Developers
The IClassFactory2 interface has to do with licensing, and apparently,
there's something about your setup that's requiring that COM instances
be licensed.

-- Paul
> https://groups.google.com/d/msgid/racket-dev/69f5508e-52a2-4479-8d32-646ec6a87a57%40googlegroups.com.

amore.s...@gmail.com

unread,
May 30, 2017, 10:51:29 AM5/30/17
to Racket Developers, amore.s...@gmail.com
Hmm, I dont know. The setup is the legal setup that I download from drracket downloadside.
There is no my setup at all. Nevertheless thank you very much... 

Paul A. Steckler

unread,
May 30, 2017, 10:56:39 AM5/30/17
to amore.s...@gmail.com, Racket Developers
Others have had the IClassFactory2 issue with COM classes:

https://forums.asp.net/t/692053.aspx?0x80004002+No+such+Interface+supported+error+when+calling+CoCreateInstance+in+a+COM+wrapper+

My suggestion would be to search and, if needed, post on
StackOverflow. I think the underlying issue is with something in your
Windows environment, and not something with MzCOM.
> https://groups.google.com/d/msgid/racket-dev/92be4321-9cd2-4c8d-aeec-f683232c0c16%40googlegroups.com.

amore.s...@gmail.com

unread,
Jun 1, 2017, 9:45:20 AM6/1/17
to Racket Developers, amore.s...@gmail.com
Thank you very much
Reply all
Reply to author
Forward
0 new messages