Skip to main content

I want to build a dll and become following error:

Creating library DEBUG\\adm-anb.lib and object DEBUG\\adm-anb.exp
adm0097.OBJ : error LNK2001: unresolved external symbol _ShellExecuteA@24
DEBUG\\adm-anb.dll : fatal error LNK1120: 1 unresolved externals

The program with shellexecute command will compile correctly as *.int, *.gnt or *.obj.

With the same modules i can build a lbr, but not a dll.

Who can help?

Sorry: have forget to indicate that netexpress5.1 is installed on the new windows 11 22H2

I want to build a dll and become following error:

Creating library DEBUG\\adm-anb.lib and object DEBUG\\adm-anb.exp
adm0097.OBJ : error LNK2001: unresolved external symbol _ShellExecuteA@24
DEBUG\\adm-anb.dll : fatal error LNK1120: 1 unresolved externals

The program with shellexecute command will compile correctly as *.int, *.gnt or *.obj.

With the same modules i can build a lbr, but not a dll.

Who can help?

Sorry: have forget to indicate that netexpress5.1 is installed on the new windows 11 22H2

If you lookup the api @ https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea at the bottom of the page, it tells you the name of the .lib you will need to use in order to use.

eg:

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shellapi.h
Library Shell32.lib
DLL Shell32.dll (version 3.51 or later)