Click here to Skip to main content
15,906,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp with std::list Pin
FrankMookie25-Aug-08 18:29
FrankMookie25-Aug-08 18:29 
AnswerRe: Help with std::list Pin
Cedric Moonen25-Aug-08 20:32
Cedric Moonen25-Aug-08 20:32 
GeneralRe: Help with std::list Pin
FrankMookie26-Aug-08 3:58
FrankMookie26-Aug-08 3:58 
QuestionUpdating System Pin
monsieur_jj25-Aug-08 17:01
monsieur_jj25-Aug-08 17:01 
AnswerRe: Updating System Pin
_AnsHUMAN_ 25-Aug-08 20:05
_AnsHUMAN_ 25-Aug-08 20:05 
GeneralRe: Updating System Pin
monsieur_jj25-Aug-08 20:11
monsieur_jj25-Aug-08 20:11 
GeneralRe: Updating System Pin
_AnsHUMAN_ 25-Aug-08 20:40
_AnsHUMAN_ 25-Aug-08 20:40 
QuestionAbout CreateIconFromResource Pin
SenToMessage25-Aug-08 16:35
SenToMessage25-Aug-08 16:35 
When I use CreateIconFromResource to create cursor from rc file(.ani file),some .ani files succeeds,some fails.
the code like this:
HINSTANCE hInst=AfxGetInstanceHandle();
HRSRC hRes=FindResource(hInst,MAKEINTRESOURCE(nID),"ANICURSORS");
DWORD dwSize=SizeofResource(hInst,hRes);
HGLOBAL hGlob=LoadResource(hInst,hRes);
LPBYTE pBytes=(LPBYTE)LockResource(hGlob);
HCURSOR hCursor=(HCURSOR)CreateIconFromResource(pBytes,dwSize,FALSE,0x00030000);

Who can give me some advice,thank you!


当我用CreateIconFromResource函数从资源文件中提取ani文件来创建cursor时,有的ani文件能成功,有的会失败,GetLassErr返回为0,什么原因,该怎么解决,谢谢!
AnswerRe: About CreateIconFromResource Pin
Jijo.Raj25-Aug-08 18:31
Jijo.Raj25-Aug-08 18:31 
GeneralRe: About CreateIconFromResource Pin
SenToMessage25-Aug-08 20:34
SenToMessage25-Aug-08 20:34 
AnswerRe: About CreateIconFromResource Pin
santhoshv8425-Aug-08 18:35
santhoshv8425-Aug-08 18:35 
QuestionPlease check code update sqlserver with VC++6.0 Pin
aa_zz25-Aug-08 15:16
aa_zz25-Aug-08 15:16 
QuestionRe: Please check code update sqlserver with VC++6.0 Pin
Mark Salsbery26-Aug-08 5:54
Mark Salsbery26-Aug-08 5:54 
QuestionMutiple Comports Pin
sunny_vc25-Aug-08 15:13
sunny_vc25-Aug-08 15:13 
AnswerRe: Mutiple Comports Pin
SandipG 25-Aug-08 21:45
SandipG 25-Aug-08 21:45 
QuestionHandle desktop events Pin
Haim Nachum25-Aug-08 10:52
Haim Nachum25-Aug-08 10:52 
AnswerRe: Handle desktop events Pin
Perspx25-Aug-08 11:38
Perspx25-Aug-08 11:38 
GeneralRe: Handle desktop events Pin
Haim Nachum25-Aug-08 11:51
Haim Nachum25-Aug-08 11:51 
AnswerRe: Handle desktop events Pin
Perspx25-Aug-08 12:48
Perspx25-Aug-08 12:48 
GeneralThanks man! Pin
Haim Nachum25-Aug-08 12:54
Haim Nachum25-Aug-08 12:54 
QuestionMSXML error Pin
Lance Hudson25-Aug-08 10:39
Lance Hudson25-Aug-08 10:39 
QuestionPredefined license numbers Pin
robotz25-Aug-08 9:20
robotz25-Aug-08 9:20 
AnswerRe: Predefined license numbers Pin
Expert Coming25-Aug-08 12:36
Expert Coming25-Aug-08 12:36 
AnswerRe: Predefined license numbers [modified] Pin
enhzflep25-Aug-08 15:29
enhzflep25-Aug-08 15:29 
GeneralRe: Predefined license numbers Pin
robotz26-Aug-08 5:02
robotz26-Aug-08 5:02 

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.