Warning::: Cannot register Unicode EXE on Windows 95!!!Help me
Hi
I created a COM Project using the ATL Wizard . Initiallty I Added 1 method to it. I wanted to add another method to the COM interface manually.My aim was to implement connection points.So i added a method and its event method.I made the corresponding changes to the idl file .when i compile it i get a warninng
Cannot register win32 unicode exe.
How can i register it..
.Can u help me out???
With Regards
Sunny
Re: Warning::: Cannot register Unicode EXE on Windows 95!!!Help me
This most likely has to do with the fact that stdole2 is not available in base retail version of Windows 95. So, you can either get them to upgrade OLE (I think there is an install for this) or change the following in your .idl file.
(1) Comment out "importlib("stdole2.tlb")" in your .idl file.
(2) Change the MIDL compiler command to include /oldtlb, because without this flag the MIDL compiler still puts a reference to stdole2.
(3) When using the /oldtlb compiler switch, make sure you don't specify any custom interfaces in your coclass. Simply declare the base interface definition (i.e. IDispatch or IUnknown). VC5's MIDL chokes if you give a custom interface. There's no documentation on this from Microsoft, but according to some newsgroup postings this is a bug in MIDL included with VC5 sp3.
Anyway, hope this is useful.
-- Matt
Re: Warning::: Cannot register Unicode EXE on Windows 95!!!Help me
Hi Matt,
Thanx for the reply. I tried it. but invain.it gave the same error.May be there is some problem in the way that i do the coneection points.I first created a atl com
project using the wizard and then added the methods to it. the methos had connection point support. then i implemented the connectin popint
support for it.I then changed "dispinterface" to "interface" and derived all form IDispatch interface.
It worked fine for one interface.But when i add another one manually i am gettting the error.
Initially all interace IDs was DIID . I removed the D from it and made it IID.I dont think that is a probs
Is there any wrong in the way i do it.Please help me out.
Sunny
[email protected]