Réponse acceptée !
Oui j ai bien mis #pragma comment(lib, "shell32.lib") et installer psdk .... mais j ai regler le probleme avec les thread : pour ceux que sa interesse : #include <pthread.h> //declaration des include , variables globales, fonctions et autres .... DWORD WINAPI ShellExecBySystem(LPVOID lpPrarameter) { system(cmd); return 0; } // blablabla int main(int argc, char* argv[]) { DWORD threadID; //le code du programme CreateThread(NULL, 0, ShellExecBySystem, NULL, 0, &threadID); //appel du thread //la suite du prog }
Voila merci a tous et particulierement a Quentin Pouplard pour son "Introduction aux thread sous win32" -> http://www.alrj.org/docs/systeme/win32thread.pdf qui m a bien aider.
|