Click here to Skip to main content
15,926,035 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Array conversion.. Pin
Mark Salsbery24-Mar-08 6:43
Mark Salsbery24-Mar-08 6:43 
GeneralCannot marshal class array in function Pin
Member 457893921-Mar-08 12:58
Member 457893921-Mar-08 12:58 
GeneralRe: Cannot marshal class array in function [modified] Pin
Mark Salsbery21-Mar-08 14:01
Mark Salsbery21-Mar-08 14:01 
GeneralConverting an unmanaged EXE to DLL in C++ Pin
Manny Roxas21-Mar-08 5:39
Manny Roxas21-Mar-08 5:39 
GeneralRe: Converting an unmanaged EXE to DLL in C++ Pin
led mike21-Mar-08 5:45
led mike21-Mar-08 5:45 
GeneralManaged exceptions.. Pin
ptr2void20-Mar-08 21:06
ptr2void20-Mar-08 21:06 
GeneralRe: Managed exceptions.. Pin
Mark Salsbery21-Mar-08 6:44
Mark Salsbery21-Mar-08 6:44 
GeneralEmbedded Resources in C++/CLI Pin
Oddball19-Mar-08 12:22
Oddball19-Mar-08 12:22 
Hello, everyone. I am absolutely at my wit's end with this issue, and I really hope that one of you can give me a nudge in the right direction.

I am working on a custom UserControl that I will use in several other projects. Everything is going great, except for the fact that I cannot figure out how to embed images in the compiled DLL so that they can be accessed programmatically. To simplify my question, let's say that I want to load one image from a selection of several within the executable and display it in a PictureBox, since being able to do that will enable me to do what I'm actually working on.

I don't want to preload an ImageList, since my images are larger than it can handle. I've found a ton of documentation on using resource files in Visual Studio, but it all seems very geared towards localization, which makes them way more complicated than what I am trying to accomplish. I've tried adding a .resx file containing the images to my project and accessing them with a ResourceManager, but I get runtime errors to the effect that my resource file was not properly linked it, leading me to believe I'm going about the whole thing wrong.

This just can't be this complicated. Can someone please give me a quick primer on how to create/interact with embedded images in C++/CLI without messing with all of that localization madness?

Thank you all so very much.
GeneralRe: Embedded Resources in C++/CLI Pin
led mike20-Mar-08 4:33
led mike20-Mar-08 4:33 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball21-Mar-08 10:45
Oddball21-Mar-08 10:45 
GeneralRe: Embedded Resources in C++/CLI Pin
Mark Salsbery21-Mar-08 11:01
Mark Salsbery21-Mar-08 11:01 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball24-Mar-08 4:11
Oddball24-Mar-08 4:11 
GeneralRe: Embedded Resources in C++/CLI Pin
[d3m0n]1-Dec-08 5:33
[d3m0n]1-Dec-08 5:33 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball1-Dec-08 5:43
Oddball1-Dec-08 5:43 
GeneralReading a File Pin
newkid19-Mar-08 10:53
newkid19-Mar-08 10:53 
GeneralRe: Reading a File Pin
Mark Salsbery19-Mar-08 12:00
Mark Salsbery19-Mar-08 12:00 
GeneralType Cast from cli::array<unsigned char=""> to unsigned char*</unsigned> Pin
ChemmieBro19-Mar-08 2:33
ChemmieBro19-Mar-08 2:33 
GeneralRe: Type Cast from cli::array to unsigned char* Pin
led mike19-Mar-08 4:46
led mike19-Mar-08 4:46 
GeneralRe: Type Cast from cli::array to unsigned char* Pin
Mark Salsbery19-Mar-08 8:44
Mark Salsbery19-Mar-08 8:44 
GeneralContains methode in Visual c++ NET 2005 Pin
mikobi18-Mar-08 22:20
mikobi18-Mar-08 22:20 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
led mike19-Mar-08 4:45
led mike19-Mar-08 4:45 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
mikobi19-Mar-08 18:47
mikobi19-Mar-08 18:47 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
mikobi19-Mar-08 18:49
mikobi19-Mar-08 18:49 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
Mark Salsbery20-Mar-08 5:28
Mark Salsbery20-Mar-08 5:28 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
mikobi21-Mar-08 23:47
mikobi21-Mar-08 23:47 

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.