Hi,
I am new to Pelles C.
I am having linking problem when trying to use ShellExecute. Appreciate if someone can help.
POLINK: error: Unresolved external symbol 'ShellExecute'.
POLINK: fatal error: 1 unresolved external(s).
ShellExecute is in shell32.lib which is in <C:\Program Files\>PellesC\Include\Win.
I have tried all the following
1) added shell32.lib under Project->Project Option->Linker->Library and object files. Path is in Folders tab.
2) in the C file, use
a) #include <shellapi.h>
b) #pragma comment(lib, "shell32.lib")
c) #pragma lib "shell32.lib"
d) #pragma intrinsic(ShellExecute)
e) #pragma function(ShellExecute)
f) #pragma ShellExecute()
Same thing when I am trying to use a Load Image API from comctl32.lib.
When have I done wrong or have not done properly.
Please help.
thanks,
Hong