Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Incorporating a jpg image in .exe file

Incorporating a jpg image in .exe file

Scheduled Pinned Locked Moved Managed C++/CLI
c++graphicshelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Invinci
    wrote on last edited by
    #1

    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 :)

    A 1 Reply Last reply
    0
    • I Invinci

      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 :)

      A Offline
      A Offline
      Andreoli Carlo
      wrote on last edited by
      #2

      this is msdn link[^] what are you looknig for, you can also google for "visual studio resource resx" ...if you are using "visual c++" or "visual c#" this is made so easy by using the designer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups