Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVector mapping issue Pin
itkid25-Oct-05 5:13
itkid25-Oct-05 5:13 
Questionstrange behavior ... anybody knows ? Pin
FreeClimber25-Oct-05 4:42
FreeClimber25-Oct-05 4:42 
QuestionThanks for all your help + new help Pin
Tom Moore25-Oct-05 4:32
Tom Moore25-Oct-05 4:32 
AnswerRe: Thanks for all your help + new help Pin
FarPointer25-Oct-05 6:38
FarPointer25-Oct-05 6:38 
GeneralRe: Thanks for all your help + new help Pin
Tom Moore25-Oct-05 7:50
Tom Moore25-Oct-05 7:50 
AnswerRe: Thanks for all your help + new help Pin
ThatsAlok25-Oct-05 22:06
ThatsAlok25-Oct-05 22:06 
QuestionAutosave for SDI Pin
mark gooding25-Oct-05 4:16
mark gooding25-Oct-05 4:16 
QuestionSHGetIconOverlayIndex & GetProcAddress Pin
yarp25-Oct-05 3:44
yarp25-Oct-05 3:44 
I've already used the GetProcAddress function for half a dozen functions but it seems I've got a problem with that one. Might be a problem with the prototyping but there are few pages about it on the web and it is the first SH* function I try to get the address for.
I tried all the prototypes I could imagine WINAPI, STDAPI, STDAPICALLTYPE with extern "C", dllimport and other __cdecl, __stdcall gave nothing.

So here's the code, any idea welcome:

typedef int (__stdcall *LPFNSHGETICONOVERLAYINDEX)(LPCSTR, int);<br />
HMODULE hMod = ::GetModuleHandle(_T("Shell32.dll"));<br />
if (hMod) {<br />
  LPFNSHGETICONOVERLAYINDEX lpfnSHGetIconOverlayIndex;<br />
  lpfnSHGetIconOverlayIndex = (LPFNSHGETICONOVERLAYINDEX)GetProcAddress(hMod,_T("SHGetIconOverlayIndex"));<br />
  if (lpfnSHGetIconOverlayIndex) {<br />
    // There it fails<br />
    m_nIndexOverlay = lpfnSHGetIconOverlayIndex("C:\\", IDO_SHGIOI_LINK);<br />
    }<br />
  }<br />


Yarp
http://www.senosoft.com/
AnswerRe: SHGetIconOverlayIndex &amp; GetProcAddress Pin
kakan25-Oct-05 3:58
professionalkakan25-Oct-05 3:58 
QuestionCFileDialog Customization - Date Order Pin
Dave S25-Oct-05 3:20
Dave S25-Oct-05 3:20 
AnswerRe: CFileDialog Customization - Date Order Pin
Dave S25-Oct-05 5:56
Dave S25-Oct-05 5:56 
QuestionBilinear interpolation Pin
Arrun25-Oct-05 2:19
Arrun25-Oct-05 2:19 
AnswerRe: Bilinear interpolation Pin
Anonymous25-Oct-05 4:10
Anonymous25-Oct-05 4:10 
GeneralRe: Bilinear interpolation Pin
Arrun25-Oct-05 18:48
Arrun25-Oct-05 18:48 
QuestionHow to add more documents in existing MDI Pin
shivditya25-Oct-05 1:55
shivditya25-Oct-05 1:55 
QuestionRe: How to add more documents in existing MDI Pin
Anonymous25-Oct-05 2:56
Anonymous25-Oct-05 2:56 
AnswerRe: How to add more documents in existing MDI Pin
shivditya25-Oct-05 3:05
shivditya25-Oct-05 3:05 
QuestionRe: How to add more documents in existing MDI Pin
shivditya25-Oct-05 3:24
shivditya25-Oct-05 3:24 
GeneralRe: How to add more documents in existing MDI Pin
kakan25-Oct-05 3:33
professionalkakan25-Oct-05 3:33 
QuestionRe: How to add more documents in existing MDI Pin
shivditya25-Oct-05 16:39
shivditya25-Oct-05 16:39 
AnswerRe: How to add more documents in existing MDI Pin
Anonymous25-Oct-05 19:31
Anonymous25-Oct-05 19:31 
AnswerRe: How to add more documents in existing MDI Pin
kakan25-Oct-05 20:11
professionalkakan25-Oct-05 20:11 
QuestionenHelp: std::wstring &amp; std::string Pin
chenxiujie24-Oct-05 23:22
chenxiujie24-Oct-05 23:22 
AnswerRe: enHelp: std::wstring &amp; std::string Pin
Achim Klein25-Oct-05 0:18
Achim Klein25-Oct-05 0:18 
GeneralRe: enHelp: std::wstring &amp; std::string Pin
chenxiujie25-Oct-05 15:01
chenxiujie25-Oct-05 15:01 

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.