Incorporating a jpg image in .exe file
-
Hi all, could any one help me out of this:doh: I just want to include a logo.jpg file in my .exe file. I have tried using Image Class (System.Drawing) in Visual C++, but after opening the .exe, and when tried to print, an error is popping up indicating the logo.jpg is missing, it is successful only after including the logo.jpg in the folder.
private: System::Void printDocument_PrintPage(System::Object^ sender, System::Drawing::Printing::PrintPageEventArgs^ e) { Image^ newImage = Image::FromFile( "logo.jpg" ); //int x = 605; int y = 70; int width = 150; int height = 100; e->Graphics->DrawImage( newImage, 605, 70, 150, 100 ); }
I want to know, is there any other method of including the logo to my print page, which doesn't need a logo.jpg file to be included in the respective folder Any help is appreciated...Thanks :) -
Hi all, could any one help me out of this:doh: I just want to include a logo.jpg file in my .exe file. I have tried using Image Class (System.Drawing) in Visual C++, but after opening the .exe, and when tried to print, an error is popping up indicating the logo.jpg is missing, it is successful only after including the logo.jpg in the folder.
private: System::Void printDocument_PrintPage(System::Object^ sender, System::Drawing::Printing::PrintPageEventArgs^ e) { Image^ newImage = Image::FromFile( "logo.jpg" ); //int x = 605; int y = 70; int width = 150; int height = 100; e->Graphics->DrawImage( newImage, 605, 70, 150, 100 ); }
I want to know, is there any other method of including the logo to my print page, which doesn't need a logo.jpg file to be included in the respective folder Any help is appreciated...Thanks :)