Ouvrir une page web a partir d'un programme
Bonjour amis programmeurs,
Je me demandais s'il y avait moyen d'ouvrir une page internet via un programme.
Il y a ce code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
Code : C++#include <windows.h>
#include <shellapi.h>
#include <stdio.h>
int WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
char mess[5];
HWND hwnd;
int rc = (int);
ShellExecute(hwnd,"open","http://www.google.fr",NULL,NULL,SW_SHOWDEFAULT);
return 0;
} |
(Merci a Yruama pour le code)
Hélas, ce code ne fonctionne que pour windows.
Je voudrait un code qui soi portable, et surtout utilisable après une application SDL
Merci pour vos réponses
acieroid