J'essaye de faire un truc tout bête de passer un array<unsigned short> ^ en argument a une fonction qui prend un unsigned short *.
Le passage direct ne marche pas. J'ai essayé de faire une conversion entre les 2 et je n'y suis pas arrivés. Aidez moi svp!!!!
Code c++ : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 void zen(unsigned short * t){ } int main(array<System::String ^> ^args) { array<unsigned short> ^ titi = gcnew array<unsigned short>(800*600); for(int i = 0 ; i < 800*600;++i) titi[i]=i; /* unsigned short * toto; for(int i = 0 ; i < 800*600;++i) toto[i]=titi[i];*/ zen(titi); System::Threading::Thread::Sleep(10000); return 0; }
Merci d'avance!!!
Partager