robinbloke: (Default)
robinbloke ([personal profile] robinbloke) wrote2001-12-13 03:43 pm

Grrrrr

Full reinstall
Clean new project, and still get...

D:\msdev\projects\active x\test\test.odl(1) : error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ ]

Bloomin' M$... right, off to the MSDN helpdesk again...

[identity profile] puddingcat.livejournal.com 2001-12-13 08:08 am (UTC)(link)
"mktyplib"? Marketyplib? Sounds like the sales department are ganging up on you again :)

Apparently...

[identity profile] borusa.livejournal.com 2001-12-13 08:11 am (UTC)(link)
To fix the problem do the following.
Go to project settings. Select the idl file. Check off the mktyplib check box. The idl file is not compatible with the mktyplib format.

Re: Apparently...

[identity profile] robinbloke.livejournal.com 2001-12-13 08:38 am (UTC)(link)
Cheers,

already tried that unfortunately; and a couple of other things suggested by the MSDN, when I unchecked the mktyplib compatibility box it gives me a whole load of other errors.

Eventually I uninstalled the platform SDK, my win CE SDK, the MSDN and VC++6, and put VC6 back on, and now the blighter works, I think the SDK was somehow screwing it all up... my machine is a pig

Anyway, I now have my first working Active X control, awwwww :)

Thanks for the suggestion!