Board index » delphi » Fixed problem with my resource dll thanks all (including the fix fyi)
David S.
![]() Delphi Developer |
Fri, 25 Nov 2005 08:01:15 GMT
|
David S.
![]() Delphi Developer |
Fri, 25 Nov 2005 08:01:15 GMT
Fixed problem with my resource dll thanks all (including the fix fyi)
I discovered my problem. When creating resources outside of Borland Image
Editor you must surround the resource name with quotations ("MYIMAGE" BITMAP "BLAH.BMP") .. Really strange huh? Were getting as literal as c/c++ here what the heck? |
Rob Kenned
![]() Delphi Developer |
Fri, 25 Nov 2005 10:25:32 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)QuoteDavid S. wrote: should come as no surprise that strings need to be quoted. To specify an integer, you can either use a literal or you can use an -- |
David S
![]() Delphi Developer |
Fri, 25 Nov 2005 11:01:04 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)Yeah your right , I don't know why it took me so long to figure that out .. what I'm wondering is would c/c++ or any other languages have problems calling the resources from my dll with the quotations? I'd assume not.. But just curious Quote"Rob Kennedy" <rkenn...@example.com> wrote in message Quote> David S. wrote: |
Nicholas Sherloc
![]() Delphi Developer |
Fri, 25 Nov 2005 11:50:44 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)Quote"David S." <big_d...@comcast.net> wrote in message Quote> I discovered my problem. When creating resources outside of Borland Image something? Cheers, |
Rob Kenned
![]() Delphi Developer |
Fri, 25 Nov 2005 12:12:16 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)QuoteDavid S. wrote: they're part of the syntax of resource scripts, just like single quotation marks are part of the string syntax in Delphi but they don't actually appear in the compiled executable. When you load a resource, you can specify either a name or a numeric When you load a resource by name in Delphi, you'll wrap the name in -- |
David S
![]() Delphi Developer |
Fri, 25 Nov 2005 12:34:51 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)No no spaces.. When you use borland image editor or resource workshop it does it automaticly ... I only found it by opening the .res in an old copy of visual studio.. I don't quite understand it myself but I know when you generate a res with image editor and open it in visual studio the resource names have quotes around them .. And when I put the quotes around them I no longer get a resource not found error Quote"Nicholas Sherlock" <n_sherl...@hotmail.com> wrote in message Quote> "David S." <big_d...@comcast.net> wrote in message |
Nicholas Sherloc
![]() Delphi Developer |
Fri, 25 Nov 2005 13:25:57 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)Quote"David S." <big_d...@comcast.net> wrote in message Quote> No no spaces.. When you use borland image editor or resource workshop it *never* put quotes.......... uhhh wait actually... :). Yeah, you need quotes around the filename. I don't know why I've never noticed that before :). Good luck with your project! Cheers, |
David S
![]() Delphi Developer |
Fri, 25 Nov 2005 15:01:09 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)no i put quotes around the RESOURCE NAME ie "MYIMAGE" bitmap "blah.bmp" I don't know why this is they don't end up compiled into the dll like that but it has to have them for some reason or it doesnt find them.. Maybe this is d7 specific i don't maybe I'll ask borland whats up with this someday Quote"Nicholas Sherlock" <n_sherl...@hotmail.com> wrote in message Quote> "David S." <big_d...@comcast.net> wrote in message |
AlanGLLo
![]() Delphi Developer |
Fri, 25 Nov 2005 16:38:12 GMT
Re:Fixed problem with my resource dll thanks all (including the fix fyi)In article <Ob6cnQPS15O-Un6jXTW...@comcast.com>, "David S." Quote<big_d...@comcast.net> writes: around the resource name gets an "Expecting resource name or resource type" error from the compiler. OTOH it _will_ take double quotes around the filename (required if containing spaces), and also dotted directories. Alan Lloyd |
1. FYI - D3 to D4 OLE server Typelib migration issue and fix
2. QuickReport 2.0g Fixed (Aug 05 1997) (not all fixed)
3. Delphi 6 tells me things need fixing, and then quits before I can fix them
4. FIX: Re: MDI Minimize Bug not fixed since 1998
5. INSTALL SHIELD & BDE - FIX or NO FIX
8. My DLL problem fixed in D2 update...