Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
Generalproblem Pin
bora3ee3-Nov-03 12:54
bora3ee3-Nov-03 12:54 
GeneralRe: problem Pin
Divyesh Virani3-Nov-03 19:39
Divyesh Virani3-Nov-03 19:39 
GeneralZ Buffer question in D3d 9 Pin
Arturo Mayorga3-Nov-03 12:09
Arturo Mayorga3-Nov-03 12:09 
GeneralRe: Z Buffer question in D3d 9 Pin
Kentamanos3-Nov-03 12:25
Kentamanos3-Nov-03 12:25 
GeneralRe: Z Buffer question in D3d 9 Pin
Heath Stewart4-Nov-03 3:09
protectorHeath Stewart4-Nov-03 3:09 
Generalusing variable declared in another class [NEWBIE] Pin
Paolo Ponzano3-Nov-03 8:57
Paolo Ponzano3-Nov-03 8:57 
GeneralRe: using variable declared in another class [NEWBIE] Pin
Alvaro Mendez3-Nov-03 9:04
Alvaro Mendez3-Nov-03 9:04 
GeneralConfused about Resources Pin
Alvaro Mendez3-Nov-03 8:28
Alvaro Mendez3-Nov-03 8:28 
I'm now just starting to deal with resources in .NET and I have a few important questions:

1. Say I just created a new C# Windows project inside VS.NET (called Test). I switch to Windows Explorer and manually copy a bitmap file (Foo.bmp) into the folder where the project files are located. I switch back to VS.NET and add Foo.bmp to the project. I change its BuildAction to EmbedAsResource. How do I access the file in the program? Is there a hidden .resources file somehow added to the assembly where files like Foo.bmp are embedded into?

2. What's the benefit of a .resources file? From working with SharpDevelop, I've noticed that they can contain strings, images, and just about anything, and that each resource is referenced by name. When would you add an image file (Foo.bmp) to a .resources file instead of directly as another project file?

3. Please explain the BuildActions. What's the difference between EmbedAsResource and Compile? When would I want to compile a resource?

4. What's the difference between a .resources and .resx file?

As you can see, I'm pretty confused with all this resource stuff. In VC6, you always had a .rc file which would compile to a .res that had all the resources embedded. Now in VS.NET it seems like .resources are only necessary for strings. Image files can be added directly into the project. But how are those accessed?...

I need to have all these issues cleared up. If anyone can also point me to a good site that clears it all up, I'd really appreciate it.

Thanks!
Alvaro


Can I ask you a question?
GeneralRe: Confused about Resources Pin
scott373-Nov-03 12:44
scott373-Nov-03 12:44 
GeneralRe: Confused about Resources Pin
Alvaro Mendez3-Nov-03 17:03
Alvaro Mendez3-Nov-03 17:03 
GeneralEmbedding window in window Pin
CBoland3-Nov-03 8:21
CBoland3-Nov-03 8:21 
GeneralRe: Embedding window in window Pin
Douglas Troy4-Nov-03 6:37
Douglas Troy4-Nov-03 6:37 
GeneralObject Array in CompactFramework Pin
marcoscres3-Nov-03 6:40
marcoscres3-Nov-03 6:40 
GeneralHashtable as datasource Pin
Rob STS3-Nov-03 5:38
Rob STS3-Nov-03 5:38 
Generalcustomizing file open dialog... Pin
waleed riaz3-Nov-03 4:48
waleed riaz3-Nov-03 4:48 
GeneralRe: customizing file open dialog... Pin
Judah Gabriel Himango3-Nov-03 8:09
sponsorJudah Gabriel Himango3-Nov-03 8:09 
GeneralRe: customizing file open dialog... Pin
Alvaro Mendez3-Nov-03 9:07
Alvaro Mendez3-Nov-03 9:07 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 18:15
waleed riaz3-Nov-03 18:15 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 18:50
J. Dunlap3-Nov-03 18:50 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 19:03
waleed riaz3-Nov-03 19:03 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 19:44
J. Dunlap3-Nov-03 19:44 
GeneralCleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:29
Paul Evans3-Nov-03 3:29 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 3:47
protectorNick Parker3-Nov-03 3:47 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:50
Paul Evans3-Nov-03 3:50 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 5:42
professionalJeff Varszegi3-Nov-03 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.