Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cannot print landscape with default printer Pin
tataxin15-Jul-08 1:10
tataxin15-Jul-08 1:10 
QuestionProcess priority Pin
locoone14-Jul-08 14:00
locoone14-Jul-08 14:00 
QuestionRe: Process priority Pin
Mark Salsbery14-Jul-08 14:04
Mark Salsbery14-Jul-08 14:04 
AnswerRe: Process priority Pin
locoone14-Jul-08 15:10
locoone14-Jul-08 15:10 
AnswerRe: Process priority Pin
tataxin14-Jul-08 15:21
tataxin14-Jul-08 15:21 
GeneralRe: Process priority Pin
locoone14-Jul-08 15:26
locoone14-Jul-08 15:26 
QuestionDesign Question: Only Bitmap or JPEG ? Pin
gabbana14-Jul-08 11:01
gabbana14-Jul-08 11:01 
AnswerRe: Design Question: Only Bitmap or JPEG ? Pin
Mark Salsbery14-Jul-08 13:40
Mark Salsbery14-Jul-08 13:40 
gabbana wrote:
i am wondering if vc++ also understands jpeg resources


GDI's LoadImage() function and GDI+'s Bitmap::FromResource() method both
load embedded JPEG BITMAP resources no problem. GIF too.

On VS2008:
(optional) copy JPEG and/or GIF file to the project's "res" folder
Right-click the project's resource (.rc) file in VS resource view
Choose "Add Resource"
Click "Import..."
Find the JPEG and/or GIF files, select them, and click "Open"
Save the project and reopen the project's .rc file in the text editor
Find the images you've embedded and change the types from "GIF"/"JPG" to "BITMAP"
The line(s) should look something like:
IDB_JPEG1     BITMAP          "res\\some.JPG"
IDB_GIF1      BITMAP          "res\\some.GIF"

Now you can use the above mentioned methods to work with the embedded bitmaps,
just like a bmp.

An alternative method using IStream/IPicture:
Load JPEG and (transparant) GIF picture files from a resource in 3 lines code[^]
Loading JPEG and GIF pictures[^]

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: Design Question: Only Bitmap or JPEG ? Pin
Nelek14-Jul-08 21:16
protectorNelek14-Jul-08 21:16 
GeneralRe: Design Question: Only Bitmap or JPEG ? Pin
gabbana16-Jul-08 4:37
gabbana16-Jul-08 4:37 
GeneralRe: Design Question: Only Bitmap or JPEG ? Pin
Nelek20-Jul-08 23:36
protectorNelek20-Jul-08 23:36 
QuestionCFrameWnd *without* a view [modified] Pin
[d3m0n]14-Jul-08 10:24
[d3m0n]14-Jul-08 10:24 
Questionunresolved external symbol Pin
AndreFratelli14-Jul-08 10:03
AndreFratelli14-Jul-08 10:03 
AnswerRe: unresolved external symbol Pin
led mike14-Jul-08 12:15
led mike14-Jul-08 12:15 
GeneralRe: unresolved external symbol Pin
AndreFratelli14-Jul-08 20:02
AndreFratelli14-Jul-08 20:02 
AnswerRe: unresolved external symbol Pin
Stephen Hewitt14-Jul-08 14:43
Stephen Hewitt14-Jul-08 14:43 
GeneralRe: unresolved external symbol Pin
AndreFratelli14-Jul-08 20:25
AndreFratelli14-Jul-08 20:25 
GeneralRe: unresolved external symbol Pin
Stephen Hewitt14-Jul-08 20:30
Stephen Hewitt14-Jul-08 20:30 
GeneralRe: unresolved external symbol Pin
AndreFratelli15-Jul-08 4:26
AndreFratelli15-Jul-08 4:26 
GeneralRe: unresolved external symbol Pin
Alan Balkany15-Jul-08 4:21
Alan Balkany15-Jul-08 4:21 
GeneralRe: unresolved external symbol Pin
AndreFratelli15-Jul-08 4:29
AndreFratelli15-Jul-08 4:29 
QuestionCfile write problem [modified] Pin
aei_totten14-Jul-08 8:24
aei_totten14-Jul-08 8:24 
QuestionRe: Cfile write problem Pin
David Crow14-Jul-08 8:30
David Crow14-Jul-08 8:30 
AnswerRe: Cfile write problem Pin
aei_totten14-Jul-08 8:34
aei_totten14-Jul-08 8:34 
GeneralRe: Cfile write problem Pin
Cedric Moonen14-Jul-08 8:36
Cedric Moonen14-Jul-08 8:36 

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.