Jump to content
Mypass2007

Ajutor cu fiserele tip .exe facute in Dev-C++

Recommended Posts

Dupa mari eforturi atat din partea mea cat si a unor baieti de treaba de pe site am ajuns la acest programel facut in Dev-C++:

#include <windows.h>
int main()
{
HWND Handle;
ShellExecute(Handle,"open","http://www.google.com/",NULL,NULL,SW_SHOWDEFAULT);
return 0;
}

Ar trebui sa deschida google.com. Cand il deschid pe PC-ul meu asta si face, DAR cand incerc sa il trimit unui preten ii deschide folderul D:\. DE CE nu-i deschide pagina de web? :?:

Link to comment
Share on other sites


#include <windows.h>
int main()
{
HWND Handle=GetDesktopWindow();
ShellExecute(Handle,"open","http://www.google.com/",NULL,NULL,SW_SHOWDEFAULT);
return 0;
}

sau


#include <windows.h>
int main()
{
ShellExecute(NULL,"open","http://www.google.com/",NULL,NULL,SW_SHOWDEFAULT);
return 0;
}

sau


#include <windows.h>
int main()
{
ShellExecute(HWND_DESKTOP,"open","http://www.google.com/",NULL,NULL,SW_SHOWDEFAULT);
return 0;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...