1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
// STR_Project.cpp*: fichier projet principal.
#include "stdafx.h"
#include "Form1.h"
using namespace STR_Project;
static void* showForm(void* param)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Application::Run(gcnew Form1());
return NULL;
}
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
BaseTerre terre;
Sonde sonde;
pthread_t thread_terre;
pthread_t thread_sonde;
pthread_t thread_form;
int a = pthread_create(&thread_terre, NULL, BaseTerre::run, &terre);
int b = pthread_create(&thread_sonde, NULL, Sonde::run, &sonde);
int x = pthread_create(&thread_form, NULL, showForm, NULL);
return 0;
} |
Partager