Re: Resource in a dll
From: Fireangel (Fireangel_at_discussions.microsoft.com)
Date: 07/02/04
- Next message: Fireangel: "Re: Resource in a dll"
- Previous message: sorpor: "Lnk2019 error"
- In reply to: mphanke: "Re: Resource in a dll"
- Next in thread: Fireangel: "Re: Resource in a dll"
- Messages sorted by: [ date ] [ thread ]
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.
> > --------------------
> >
>
- Next message: Fireangel: "Re: Resource in a dll"
- Previous message: sorpor: "Lnk2019 error"
- In reply to: mphanke: "Re: Resource in a dll"
- Next in thread: Fireangel: "Re: Resource in a dll"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|