Click here to Skip to main content
16,012,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size difference between dialog and view Pin
Phil J Pearson29-Nov-02 6:49
Phil J Pearson29-Nov-02 6:49 
GeneralRe: size difference between dialog and view Pin
Hel2-Dec-02 0:18
Hel2-Dec-02 0:18 
Generalproblem with variant Pin
Chanda.com29-Nov-02 0:10
Chanda.com29-Nov-02 0:10 
GeneralRe: problem with variant Pin
dabs29-Nov-02 1:13
dabs29-Nov-02 1:13 
GeneralRe: problem with variant Pin
Chanda.com29-Nov-02 1:34
Chanda.com29-Nov-02 1:34 
GeneralRe: problem with variant Pin
dabs29-Nov-02 2:03
dabs29-Nov-02 2:03 
GeneralRe: problem with variant Pin
Chanda.com29-Nov-02 2:27
Chanda.com29-Nov-02 2:27 
GeneralRe: problem with variant Pin
dabs29-Nov-02 5:28
dabs29-Nov-02 5:28 
In that case I think your problem stems from the fact that you are creating a new variable. Where is the picture you want to save? Is it visible on the screen? If so I suppose you already have a control somewhere that contains the image you want to save and you need to ask that control to save itself instead of creating a new (empty) instance and ask it to save itself.

What I would do if I were you:

- locate the control that displays the image you want to save. Use that instead of this new instance (m_edit).

- Instead of using 1024, 6 and 2 directly I would use an enumeration. The function signature suggests that this enumeration already exists - check if you can find it. This will not make the code work but it will be more readable (I for instance have no idea what 6 represents as CompressionInfo but a named enumeration constant would definitely give me a better hint about what the constants represents).



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralClick button on dialog box to open window. Pin
ooosawaddee328-Nov-02 23:18
ooosawaddee328-Nov-02 23:18 
GeneralRe: Click button on dialog box to open window. Pin
RicoH29-Nov-02 1:08
RicoH29-Nov-02 1:08 
GeneralEventViewer MMC Snap-in Pin
draman28-Nov-02 23:13
draman28-Nov-02 23:13 
GeneralAdding user-defined keywords Pin
RicoH28-Nov-02 22:32
RicoH28-Nov-02 22:32 
GeneralRe: Adding user-defined keywords Pin
Iain Clarke, Warrior Programmer28-Nov-02 22:52
Iain Clarke, Warrior Programmer28-Nov-02 22:52 
GeneralRe: Adding user-defined keywords Pin
RicoH29-Nov-02 0:58
RicoH29-Nov-02 0:58 
GeneralOwner draw controls and CDialogBars Pin
Mirko M.28-Nov-02 20:48
sussMirko M.28-Nov-02 20:48 
Questionwhat's the equivalent of LoadIcon for text file? Pin
devvvy28-Nov-02 18:51
devvvy28-Nov-02 18:51 
AnswerRe: what's the equivalent of LoadIcon for text file? Pin
berndg28-Nov-02 19:53
berndg28-Nov-02 19:53 
GeneralRe: what's the equivalent of LoadIcon for text file? Pin
devvvy29-Nov-02 17:16
devvvy29-Nov-02 17:16 
QuestionWhere can I find guides on VSS? Pin
George228-Nov-02 18:50
George228-Nov-02 18:50 
AnswerRe: Where can I find guides on VSS? Pin
Ravi Bhavnani29-Nov-02 12:10
professionalRavi Bhavnani29-Nov-02 12:10 
GeneralRe: Where can I find guides on VSS? Pin
George229-Nov-02 18:36
George229-Nov-02 18:36 
GeneralRe: Where can I find guides on VSS? Pin
Ravi Bhavnani30-Nov-02 4:39
professionalRavi Bhavnani30-Nov-02 4:39 
GeneralRe: Where can I find guides on VSS? Pin
George230-Nov-02 16:28
George230-Nov-02 16:28 
GeneralWinsock gethostbyaddr problem Pin
Shamoon28-Nov-02 18:26
Shamoon28-Nov-02 18:26 
GeneralRe: Winsock gethostbyaddr problem Pin
Rickard Andersson2029-Nov-02 3:09
Rickard Andersson2029-Nov-02 3:09 

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.