Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My CAsyncSocket class doesn't receive data after some secondes. Pin
Randor 28-Nov-10 5:57
professional Randor 28-Nov-10 5:57 
GeneralRe: My CAsyncSocket class doesn't receive data after some secondes. Pin
stephen_young28-Nov-10 17:02
stephen_young28-Nov-10 17:02 
AnswerRe: [Solved]My CAsyncSocket class doesn't receive data after some secondes. Pin
stephen_young5-Dec-10 17:39
stephen_young5-Dec-10 17:39 
Questionfatal error LNK1104: can not open file .lib Pin
AmbiguousName26-Nov-10 6:26
AmbiguousName26-Nov-10 6:26 
AnswerRe: fatal error LNK1104: can not open file .lib Pin
Richard MacCutchan26-Nov-10 6:32
mveRichard MacCutchan26-Nov-10 6:32 
GeneralRe: fatal error LNK1104: can not open file .lib Pin
AmbiguousName26-Nov-10 6:47
AmbiguousName26-Nov-10 6:47 
GeneralRe: fatal error LNK1104: can not open file .lib Pin
Richard MacCutchan26-Nov-10 7:14
mveRichard MacCutchan26-Nov-10 7:14 
QuestionLoading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Ahmed Charfeddine26-Nov-10 5:04
Ahmed Charfeddine26-Nov-10 5:04 
Hi there,
I have to fill CImageList with bitmaps. Each bitmap represent a flag of a country.
To do this one normally adds the bitmap files as resource, then :
CImageList allFlagsList;

CBitmap flagUSA;
flagUSA.LoadBitmap(IDFlagUSA);

allFlagsList.Add(flagUSA);

CBitmap flagFrance;
flagFrance.LoadBitmap(IDFlagFrance);

allFlagsList.Add(flagFrance);

..etc


Of course it becomes tedious to do this for all flags ( actually I already did it but want to refactor it for sake of my code!).
However I can't find a way how to load a bmp image directly into a CBitmap object.
Anyone knows ?

Thanks in advance.
Push Framework - now released !
http://www.pushframework.com

AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Richard MacCutchan26-Nov-10 6:29
mveRichard MacCutchan26-Nov-10 6:29 
AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Ahmed Charfeddine26-Nov-10 6:45
Ahmed Charfeddine26-Nov-10 6:45 
Questionnot recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 4:40
ALLERSLIT26-Nov-10 4:40 
AnswerRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 5:37
Ahmed Charfeddine26-Nov-10 5:37 
GeneralRe: not recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 5:57
ALLERSLIT26-Nov-10 5:57 
GeneralRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 6:40
Ahmed Charfeddine26-Nov-10 6:40 
AnswerRe: not recv()'ing everything Pin
Richard MacCutchan26-Nov-10 6:20
mveRichard MacCutchan26-Nov-10 6:20 
QuestionHow to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 4:32
Code-o-mat26-Nov-10 4:32 
AnswerRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:22
Ahmed Charfeddine26-Nov-10 5:22 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 5:30
Code-o-mat26-Nov-10 5:30 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:47
Ahmed Charfeddine26-Nov-10 5:47 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 6:04
Code-o-mat26-Nov-10 6:04 
QuestionLPSTR or something like that Pin
Krauze26-Nov-10 3:49
Krauze26-Nov-10 3:49 
AnswerRe: LPSTR or something like that Pin
Ahmed Charfeddine26-Nov-10 5:14
Ahmed Charfeddine26-Nov-10 5:14 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:32
Krauze26-Nov-10 14:32 
AnswerRe: LPSTR or something like that Pin
Chris Losinger26-Nov-10 5:15
professionalChris Losinger26-Nov-10 5:15 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 

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.