> I hope this example of yours will be a help.
From: "William DePalo [MVP VC++]" <willd.no.spam@mvps.org>
Newsgroups: microsoft.public.dotnet.languages.vc
Sent: Thursday, March 03, 2005 10:45 PM
Subject: Re: System.Xml.Schema in VC++ 6.0
> > Kept getting a class not registered inspite of using regasm
> > and checking the registry.
>
> Did you put the managed assembly in the same directory as your unmanaged
> executable?
No I have created a Lib folder and kept both libraries to be imported over
there
that is
mscorlib.tlb and MyXSDWriter.tlb and then compiled. I still get a class not
registered error.
Some of the archives mention that you need to give the assembly a string
name.
Looking into the sn.exe tools right now.
Regards,
Maansi
William DePalo [MVP VC++] - 07 Mar 2005 04:49 GMT
>> Did you put the managed assembly in the same directory as your unmanaged
>> executable?
>
> No I have created a Lib folder and kept both libraries to be imported over
> there that is mscorlib.tlb and MyXSDWriter.tlb and then compiled.
If you put the managed assembly in the same directory as the unmanaged
executable then you will be pleased with the results. :-)
> I still get a class not registered error.
Yup.
> Some of the archives mention that you need to give the assembly a string
> name.
Well, it doesn't hurt but it is _not_ required. I didn't do that in my
little test.
Regards,
Will
Maansi Sanghi - 07 Mar 2005 14:09 GMT
> > Some of the archives mention that you need to give the assembly a string
> > name.
[quoted text clipped - 4 lines]
> Regards,
> Will
Thanks Will! I have been able to create the prototype. :)
Will go ahead with my application now. For that i will have to be able
to use the assembly from anywhere.
Its a big relief! :)
Thanks n Regards,
Maansi