Re: Resource in a dll

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


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.
> > --------------------
> >
>



Relevant Pages

  • Re: Resource in a dll
    ... If this is EXACTLY your problem, I'll upload them so they can look at it.. ... >> Hi Martin, ... >> Best regards, ... >> Gary Chang ...
    (microsoft.public.dotnet.languages.vc)
  • 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: Logoff / Slow Bootups / Outlook attachements / Outlook Not res
    ... With regards to trying the administrator log on this problem only actually ... click to check the "Hide All Microsoft Services" ... Click OK to close the MSConfig window. ... attach. ...
    (microsoft.public.windows.server.sbs)
  • Re: Send email on behalf of
    ... Please understand since the abc@xxxxxxxxxxxx mailbox is hosting on the ... Best regards, ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)

Loading