bjr
je voudrais rajouter une fonction dans ma classe mais je n'arrive pas à trouver la bonne syntaxe
le compilateur me dit que j'ai deux erreurs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 AnsiString __fastcall Get(); void __fastcall Put(System::AnsiString NewValue); __property System::AnsiString Strings[int Index] = {read=Get, write=Put};
[C++ Error] U_ThreadRecherche.h(32): E2347 Parameter mismatch in read access specifier of property Strings
[C++ Error] U_ThreadRecherche.h(32): E2347 Parameter mismatch in write access specifier of property Strings
le problème vient du "[int Index]" et je sais pas comment l'écrire pour les fonctions Get et Puts
merci d'avance
Partager