Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcopy to clipboard Pin
Safder18-Sep-02 23:30
Safder18-Sep-02 23:30 
GeneralPlatform question Pin
Anonymous18-Sep-02 23:24
Anonymous18-Sep-02 23:24 
GeneralRe: Platform question Pin
Lakitu18-Sep-02 23:36
Lakitu18-Sep-02 23:36 
GeneralRe: Platform question Pin
Anonymous18-Sep-02 23:49
Anonymous18-Sep-02 23:49 
GeneralRe: Platform question Pin
Stephane Rodriguez.18-Sep-02 23:59
Stephane Rodriguez.18-Sep-02 23:59 
GeneralRe: Platform question Pin
Anonymous19-Sep-02 0:04
Anonymous19-Sep-02 0:04 
GeneralRe: Platform question Pin
Stephane Rodriguez.19-Sep-02 0:22
Stephane Rodriguez.19-Sep-02 0:22 
GeneralRe: Platform question Pin
Steve S19-Sep-02 6:31
Steve S19-Sep-02 6:31 
The alternative is to write a wrapper function for the one you're trying to use, which detects the OS version and if it's Win2000/XP or later, gets the address of the function from USER32 and calls it, otherwise does nothing.


Your problem is two things;

You don't have the function declaration unless you have _WIN32_WINNT set to 0x0500, and with that in place, you have a reference to the function in your EXE.

When the EXE runs on an earlier (NT,9x) system, the function cannot be located by the import lib code you pulled in when you built.

You can either do what Stephane suggests, what I suggest, or not use the function Smile | :)



Steve S
[This signature space available for rent]
GeneralRe: Platform question Pin
Atlantys19-Sep-02 10:31
Atlantys19-Sep-02 10:31 
GeneralApplication path Pin
Anonymous18-Sep-02 23:04
Anonymous18-Sep-02 23:04 
GeneralRe: Application path Pin
Tinky Winky18-Sep-02 23:16
Tinky Winky18-Sep-02 23:16 
GeneralRe: Application path Pin
Eugene Pustovoyt18-Sep-02 23:55
Eugene Pustovoyt18-Sep-02 23:55 
GeneralRe: Application path Pin
super19-Sep-02 1:06
professionalsuper19-Sep-02 1:06 
Questioncombo box from a resource id ??? Pin
Daniel Strigl18-Sep-02 22:56
Daniel Strigl18-Sep-02 22:56 
AnswerRe: combo box from a resource id ??? Pin
jhwurmbach18-Sep-02 23:05
jhwurmbach18-Sep-02 23:05 
GeneralRe: combo box from a resource id ??? Pin
Daniel Strigl18-Sep-02 23:22
Daniel Strigl18-Sep-02 23:22 
GeneralRe: combo box from a resource id ??? Pin
Tinky Winky18-Sep-02 23:28
Tinky Winky18-Sep-02 23:28 
GeneralRe: combo box from a resource id ??? Pin
Daniel Strigl19-Sep-02 0:23
Daniel Strigl19-Sep-02 0:23 
GeneralRe: combo box from a resource id ??? Pin
jhwurmbach18-Sep-02 23:33
jhwurmbach18-Sep-02 23:33 
GeneralRun Dll Pin
Zizilamoroso18-Sep-02 22:55
Zizilamoroso18-Sep-02 22:55 
GeneralRe: Run Dll Pin
Jawache18-Sep-02 23:27
Jawache18-Sep-02 23:27 
GeneralRe: Run Dll Pin
Zizilamoroso18-Sep-02 23:43
Zizilamoroso18-Sep-02 23:43 
GeneralRe: Run Dll Pin
Jawache19-Sep-02 0:03
Jawache19-Sep-02 0:03 
GeneralRe: Run Dll Pin
Stephane Rodriguez.18-Sep-02 23:45
Stephane Rodriguez.18-Sep-02 23:45 
GeneralRe: Run Dll Pin
Zizilamoroso19-Sep-02 0:14
Zizilamoroso19-Sep-02 0:14 

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.