ShellExecute

Serj Makaroff serj-makaroff at yandex.ru
Mon Feb 11 10:18:27 PST 2008


Hello!

I try to use WinAPI function ShellExecute() to start web browser in new
process. I wrote such definition
export {
HINSTANCE ShellExecute(HWND hwnd,LPCTSTR lpOperation,LPCTSTR lpFile,LPCTSTR
lpParameters,LPCTSTR lpDirectory,INT nShowCmd);
}

and called function in such way:

HINSTANCE i = ShellExecute(null, mode, url, null, null, SW_SHOW);

Also I found in MSDN, that this function is in shell32.dll. I added

pragma(lib, "shell32.lib");

I obtain linker error "Symbol Undefined..." Help, pls


More information about the Digitalmars-d-learn mailing list