Please help me understand how to properly include resource items in a
DLL. I have followed Petzold Form example code that uses folder and
drive icon resource files (i.e. 35FLOPPY.ICO) where these have their
"Build Action" property set to "Embedded Resource". This works great
in a Form type project. Now I am trying without success to place the
Form logic into a DLL. The code compiles without problem ... but the
DLL is unable to locate the resource. I have only the simplest of DLL
example code to reference and these few examples do not utilize
resources. :(
Getting a better understanding of how to create DLL's in C# is very
important to me.
Perhaps all resources that a DLL uses need to be included and
referenced in the calling application? (I hope this is not the case.)
Or can a DLL's resources be packaged somehow where only a reference to
the DLL itself will enable the DLL to find the resources it needs? I
am confused!!
Thanks for all suggestions. If anyone has even the simplest example
DLL code that uses resources ... I'd be thrilled to have a working
example to study.
Thanks again.
-- Tom
DLL. I have followed Petzold Form example code that uses folder and
drive icon resource files (i.e. 35FLOPPY.ICO) where these have their
"Build Action" property set to "Embedded Resource". This works great
in a Form type project. Now I am trying without success to place the
Form logic into a DLL. The code compiles without problem ... but the
DLL is unable to locate the resource. I have only the simplest of DLL
example code to reference and these few examples do not utilize
resources. :(
Getting a better understanding of how to create DLL's in C# is very
important to me.
Perhaps all resources that a DLL uses need to be included and
referenced in the calling application? (I hope this is not the case.)
Or can a DLL's resources be packaged somehow where only a reference to
the DLL itself will enable the DLL to find the resources it needs? I
am confused!!
Thanks for all suggestions. If anyone has even the simplest example
DLL code that uses resources ... I'd be thrilled to have a working
example to study.
Thanks again.
-- Tom