Click here to Skip to main content
14,455,121 members

C / C++ / MFC

 
GeneralRe: Do "setw(offset) " BEFORE cout ? Pin
Vaclav_19-Dec-19 18:14
MemberVaclav_19-Dec-19 18:14 
QuestionLoadString Pin
Member 1450258317-Dec-19 0:36
MemberMember 1450258317-Dec-19 0:36 
AnswerRe: LoadString Pin
Daniel Pfeffer17-Dec-19 0:44
professionalDaniel Pfeffer17-Dec-19 0:44 
AnswerRe: LoadString Pin
Richard MacCutchan17-Dec-19 0:47
communityengineerRichard MacCutchan17-Dec-19 0:47 
QuestionLoadImage Failure Pin
ForNow15-Dec-19 15:17
MemberForNow15-Dec-19 15:17 
AnswerRe: LoadImage Failure Pin
leon de boer15-Dec-19 21:30
Memberleon de boer15-Dec-19 21:30 
GeneralRe: LoadImage Failure Pin
ForNow16-Dec-19 2:25
MemberForNow16-Dec-19 2:25 
GeneralRe: LoadImage Failure Pin
leon de boer16-Dec-19 5:07
Memberleon de boer16-Dec-19 5:07 
So much confusion and misunderstandings to know where to start.

Lets start with SetSel misunderstanding which starts at 0 NOT 1 it is a zero-based index.

Very important is the file type you didn't say what the file was look at the last 3 letters of the filename is it BMP, GIF, JPG or PNG?

Yes if you have a white border the white border will be on the image UNLESS it is a transparent image which needs a special header and depends on file format (so again we need the file format).

You said you change the code over to LoadImage and I warned you that you can only load files that are of BMP and PCX type. That is files that end with those 3 letters and have a proper matching header. If you try to load a wrong type it does pretty much what you describe returns NULL with a GetLastError of 0 because it can find the file but it's just junk it can't understand.

So can we at least get a filetype to start with so we know what we are dealing with, so 3 letter filename extension please. If you can't see them on windows go up to view settings and tick the box that says file name extensions.
In vino veritas

GeneralRe: LoadImage Failure Pin
ForNow16-Dec-19 5:36
MemberForNow16-Dec-19 5:36 
GeneralRe: LoadImage Failure Pin
leon de boer16-Dec-19 23:35
Memberleon de boer16-Dec-19 23:35 
GeneralRe: LoadImage Failure Pin
Richard MacCutchan15-Dec-19 22:36
communityengineerRichard MacCutchan15-Dec-19 22:36 
Questionproblem when run the application using cntrl+F5. Wintech OPC DLL Pin
Member 1467670615-Dec-19 1:52
MemberMember 1467670615-Dec-19 1:52 
SuggestionRe: problem when run the application using cntrl+F5. Wintech OPC DLL Pin
Richard MacCutchan15-Dec-19 3:54
communityengineerRichard MacCutchan15-Dec-19 3:54 
GeneralRe: problem when run the application using cntrl+F5. Wintech OPC DLL Pin
ForNow16-Dec-19 2:03
MemberForNow16-Dec-19 2:03 
AnswerRe: problem when run the application using cntrl+F5. Wintech OPC DLL Pin
leon de boer15-Dec-19 21:39
Memberleon de boer15-Dec-19 21:39 
GeneralRe: problem when run the application using cntrl+F5. Wintech OPC DLL Pin
Stefan_Lang16-Dec-19 5:35
mveStefan_Lang16-Dec-19 5:35 
GeneralRe: problem when run the application using cntrl+F5. Wintech OPC DLL Pin
leon de boer17-Dec-19 3:45
Memberleon de boer17-Dec-19 3:45 
QuestionDIrectX9 error shows up only in debugger Pin
Member 953078713-Dec-19 6:50
MemberMember 953078713-Dec-19 6:50 
SuggestionRe: DIrectX9 error shows up only in debugger Pin
Richard MacCutchan14-Dec-19 0:42
communityengineerRichard MacCutchan14-Dec-19 0:42 
QuestionCan Bullet numbering in Pin
ForNow9-Dec-19 2:27
MemberForNow9-Dec-19 2:27 
QuestionRe: Can Bullet numbering in Pin
Richard MacCutchan9-Dec-19 4:37
communityengineerRichard MacCutchan9-Dec-19 4:37 
AnswerRe: Can Bullet numbering in Pin
ForNow9-Dec-19 4:55
MemberForNow9-Dec-19 4:55 
QuestionV2008: All my breakpoints disable. Mouseover shows "The breakpoint will not currently be hit. No executable code is associated with this line." Pin
charlieg8-Dec-19 10:42
Membercharlieg8-Dec-19 10:42 
AnswerRe: V2008: All my breakpoints disable. Mouseover shows "The breakpoint will not currently be hit. No executable code is associated with this line." Pin
charlieg8-Dec-19 10:48
Membercharlieg8-Dec-19 10:48 
GeneralRe: V2008: All my breakpoints disable. Mouseover shows "The breakpoint will not currently be hit. No executable code is associated with this line." Pin
leon de boer8-Dec-19 14:10
Memberleon de boer8-Dec-19 14:10 

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.