MetalSpongebob Posted April 11, 2008 Share Posted April 11, 2008 Hi,I have an other question about autoit funcs and the functions "father"^^... The function "shellexecute" how is coded in c++? ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) And how are managed the filename,parameters,dir,verb and flags? Noob but ethical Link to comment Share on other sites More sharing options...
Valik Posted April 11, 2008 Share Posted April 11, 2008 Unimaginatively enough, ShellExecute() uses the ShellExecute() function. Link to comment Share on other sites More sharing options...
MetalSpongebob Posted April 12, 2008 Author Share Posted April 12, 2008 Even VisualC++? Noob but ethical Link to comment Share on other sites More sharing options...
ProgAndy Posted April 12, 2008 Share Posted April 12, 2008 Yes. it uses the Function described in http://msdn2.microsoft.com/en-us/library/b...153(VS.85).aspx *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
monoceres Posted April 12, 2008 Share Posted April 12, 2008 (edited) Even VisualC++? Yes, it's a very simple function, here's an example (compiled in VS2008) #include <windows.h> #include <iostream> int main () { HINSTANCE result; result=ShellExecute(NULL,NULL,L"C:\\test.mp3",NULL,NULL,SW_SHOWDEFAULT); if ((int)result<=32) std::cout << "Error!\nReturn value: " << (int)result << "\n"; return 0; } Edited April 12, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
GHOSTSKIKDA Posted April 26, 2008 Share Posted April 26, 2008 Thank youuuuuuuuuuuuuuu .... ;-) [center]I LOVE ALGERIA .... ;-)[/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now