hi all
I wanna use the ShellExecute API function but i can't fint the right header file

any help??
Posted on 2004-04-05 15:04:49 by tunc
It's shell32.lib

You can find the lib in the Masm32\libs folder.

For the header file, you have to either translate the Masm32 version or use Osyssey's program msm2hla (which you'll find somewhere on this forum) to convert the masm includes to HLA header files.
Posted on 2004-04-05 15:46:50 by Kain
i used the program to produce shell32.hhf

my program is assembled
but when it comes to linking it gives this error

unresolved external symbol __imp__ShellExecuteA@24

i tried to copy lib file to hlalib didn't do anything

Any thoughts?
Posted on 2004-04-05 17:52:55 by tunc
I don't know how HLA works, but you might have to add shell32.lib "somehow" - whether this means HLA commandline option, a statement in your HLA source file, or taking manual control of the linking process, I do not know :)
:stupid:
Posted on 2004-04-05 17:59:59 by f0dder
you have to supply the shell32.lib on your command line (or in your link target file).

hla -w YourProgram.hla shell32.lib

Omit the -w switch if your program is for the console.
Posted on 2004-04-05 18:00:00 by Kain
yes that solved my problem

thanks
Posted on 2004-04-06 10:56:22 by tunc

hi all
I wanna use the ShellExecute API function but i can't fint the right header file

any help??


Also note that a "system" function was added to the HLA stdlib recently that lets you execute cmd.exe style commands. Note, however, that calls via "system" are synchronous, that is, system doesn't return until the program finish execution.

e.g.,



os.system( "cmd /c dir" );


displays a directory listing on the standard output.
Cheers,
Randy Hyde
Posted on 2004-04-07 14:07:34 by rhyde