Click here to Skip to main content
15,905,593 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialogBar in CView Pin
Erik5-Sep-00 6:07
Erik5-Sep-00 6:07 
GeneralRe: CDialogBar in CView Pin
jschacker5-Sep-00 7:07
jschacker5-Sep-00 7:07 
GeneralLoadImage not loading animated cursor from resources when statically linking to MFC Pin
Paolo Messina2-Sep-00 23:48
professionalPaolo Messina2-Sep-00 23:48 
GeneralRe: LoadImage not loading animated cursor from resources when statically linking to MFC Pin
Michael Dunn3-Sep-00 8:28
sitebuilderMichael Dunn3-Sep-00 8:28 
GeneralRe: LoadImage not loading animated cursor from ... Pin
Paolo Messina3-Sep-00 21:34
professionalPaolo Messina3-Sep-00 21:34 
GeneralRe: Display raw data images Pin
Feng Yuan4-Sep-00 19:30
Feng Yuan4-Sep-00 19:30 
GeneralRe: LoadImage, LoadCursor *BUG* Pin
Paolo Messina4-Sep-00 0:12
professionalPaolo Messina4-Sep-00 0:12 
GeneralI'm near to become crazy... Pin
Paolo Messina4-Sep-00 7:41
professionalPaolo Messina4-Sep-00 7:41 
To solve the problem, I thought to load the animated cursor resource and then create the cursor handle with the following code:HRSRC hResInfo = FindResource(NULL, MAKEINTRESOURCE(IDR_HOURGLASS), RT_ANICURSOR);
DWORD dwResSize = SizeofResource(NULL, hResInfo);
HGLOBAL hRes = LoadResource(NULL, hResInfo);
PBYTE pResData = (PBYTE)LockResource(hRes);
HCURSOR hAniCur = CreateIconFromResourceEx(pResData, dwResSize,
FALSE, 0x00030000, 32, 32, LR_DEFAULTCOLOR);
The problem remains Frown | :(
All the instruction are successful with both types of linkage, but the last returns a valid handle only when dynamically linking to MFC. When I specify to use static MFC libraries, CreateIconFromResourceEx() cease to work and returns NULL.
Can anyone tell me why?

I tried to debug USER32 code, but it's a suicide without debug symbols.
Where can I get debug symbols for Windows 2000?

Please help!!
GeneralProblem while using windows hook and open file handle Pin
Chris Utz2-Sep-00 6:02
sussChris Utz2-Sep-00 6:02 
QuestionMDI app without MFC? Pin
B2-Sep-00 3:52
B2-Sep-00 3:52 
AnswerRe: MDI app without MFC? Pin
jschacker5-Sep-00 5:17
jschacker5-Sep-00 5:17 
AnswerRe: MDI app without MFC? Pin
Sam Hobbs7-Sep-00 18:49
Sam Hobbs7-Sep-00 18:49 
AnswerRe: MDI app without MFC? Pin
Scott Leonard8-Sep-00 5:00
Scott Leonard8-Sep-00 5:00 
QuestionFunction for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 9:56
sitebuilderUwe Keim1-Sep-00 9:56 
AnswerRe: Function for Converting a CString/char* to UTF-8? Pin
Michael Dunn1-Sep-00 20:10
sitebuilderMichael Dunn1-Sep-00 20:10 
GeneralRe: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 23:32
sitebuilderUwe Keim1-Sep-00 23:32 
GeneralSolution FOUND: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim2-Sep-00 1:24
sitebuilderUwe Keim2-Sep-00 1:24 
GeneralCComboBoxEx and LimitText Pin
David Saulnier1-Sep-00 8:49
David Saulnier1-Sep-00 8:49 
GeneralIDE and Windows 2000 Problems Pin
arf1-Sep-00 5:52
arf1-Sep-00 5:52 
GeneralRe: IDE and Windows 2000 Problems Pin
Paolo Messina1-Sep-00 10:01
professionalPaolo Messina1-Sep-00 10:01 
GeneralRe: IDE and Windows 2000 Problems Pin
David Wulff1-Sep-00 14:36
David Wulff1-Sep-00 14:36 
GeneralSorry for my spelling Pin
David Wulff1-Sep-00 14:38
David Wulff1-Sep-00 14:38 
GeneralRe: IDE and Windows 2000 Problems Pin
arf2-Sep-00 9:55
arf2-Sep-00 9:55 
GeneralRe: IDE and Windows 2000 Problems Pin
David Wulff2-Sep-00 11:11
David Wulff2-Sep-00 11:11 
GeneralRe: IDE and Windows 2000 Problems Pin
Ronald L. Russell Jr. (Ron)5-Sep-00 3:28
sussRonald L. Russell Jr. (Ron)5-Sep-00 3:28 

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.