Re: Resource in a dll

From: Fireangel (Fireangel_at_discussions.microsoft.com)
Date: 07/02/04


Date: Thu, 1 Jul 2004 17:36:02 -0700

Got mine to work. Really friggin weird.

The name of the project MUST MATCH the name of your root namespace. In my case, my project name was MAP, and the root namespace I was using was ROFMap. The form was ROFMap::frmViewMap. The manifest root (looking in the dll) was MAP. The second exe (that was inheriting from the first) was looking for MAP.frmViewMap.resource. I ended up changing the name of the project from MAP to ROFMap and recompiled. Everything works fine now....

I guess the moral of the story is don't change what MS puts in the form at all ;)
Ok, really. The project name and the namespace root must match inorder for everything to work well. Give it a try.

GE

PS> I created two little test programs to try this. If this is EXACTLY your problem, I'll upload them so they can look at it..

"mphanke" wrote:

> Hi Gary,
>
> Sorry, I forgot to post a final reply.
>
> I created a new project and inserted everything manually - afterwards it
> worked fine. I don't really understand what the difference is since all
> the settings are the same...
>
> Thanks alot for your support. Have a look at the "using Forms in a DLL"
> thread, I posted couple things in there.
>
> It seems like the resource file was included in the manifest, but the
> images where empty. One of the problems might have been the
> $(SafeInputName)-Macro, but I'm not sure at all. If I experience this
> type of behaviour again, I will email it to you. Further I will check
> whether I can extract a copy from the nightly backup, if I can do so I
> will email the whole project to you.
>
> Regards,
>
> Martin
>
> Gary Chang wrote:
> > Hi Martin,
> >
> > In order to isolate your problem effectively, would you please upload a
> > small self-alone project(zipped) to us if possible?(you can send it as an
> > attchment with reply this message or just email to me, juse remove the
> > "online" phase of my emaill address)
> >
> >
> > Thanks!
> >
> > Best regards,
> >
> > Gary Chang
> > Microsoft Online Partner Support
> >
> > Get Secure! - www.microsoft.com/security
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> > --------------------
> >
>



Relevant Pages

  • Re: Resource in a dll
    ... Gary Chang wrote: ... > Hi Martin, ... > Best regards, ... > Microsoft Online Partner Support ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Resource in a dll
    ... I went back and renamed my initial DLL project to ROFMap, ... >> Hi Martin, ... >> Best regards, ... >> Gary Chang ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Resource in a dll
    ... I kept getting an error trying to post (Not in IE, but as a reply from microsoft). ... >> Hi Martin, ... >> Best regards, ... >> Gary Chang ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Hidden Files cant be shown
    ... Best regards ... You may zip the file and upload it to a free web hosting service. ... The Winhelponline Blog: http://www.winhelponline.com/blog ... hidden file settings. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Visa? Visa? Balt... [Was: Visa? Visa? Russkie....]
    ... the same as they see on Yankee TV... ... they want the Bel-air/Beverly Hills experience they can visit Monoco. ... Regards ... Martin ...
    (soc.culture.baltics)