Re: Resource in a dll
From: Fireangel (Fireangel_at_discussions.microsoft.com)
Date: 07/02/04
- Next message: Fireangel: "Re: using Forms in a DLL"
- Previous message: Fireangel: "Re: Resource in a dll"
- In reply to: mphanke: "Re: Resource in a dll"
- Next in thread: Gary Chang: "Re: Resource in a dll"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 17:44:01 -0700
SOrry if this posts 3 times. I kept getting an error trying to post (Not in IE, but as a reply from microsoft).
I finally got mine to work (After amonth of fiddle with is). My project name was MAP, and the root namespace I was using was ROFMap (Important). So the form in question was ROFMap::frmViewMap. The second EXE (Which was inheriting from frmViewMap) was actually looking for RootNamespace.FormName.resources (ROFMAP.frmViewMap.resources). It couldn't find this, because the rootnamespace is taken from the projectname (MAP). So my second project was looking for MAP.frmViewMap.resources.
I went back and renamed my initial DLL project to ROFMap, and recompiled. Everything came up the first time (Well, after the thunderstorm messed with my puters).
For your project to work, your project name has to be TESTNS. I would change this to your project name and try again.
GE
PS> If you look in the dll, the manifest will not show exactly what resources are in 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: using Forms in a DLL"
- Previous message: Fireangel: "Re: Resource in a dll"
- In reply to: mphanke: "Re: Resource in a dll"
- Next in thread: Gary Chang: "Re: Resource in a dll"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|