extern "C" _declspec(dllexport) bool _stdcall SeleccionarValores(char *buffer);
bool _stdcall SeleccionarValores(char *buffer){
bool resultado = FALSE;
Application->CreateForm(__classid(TFVentana), &FVentana);
try{
FVentana->ListBox1->Items->Add("PRIMAVERA");
FVentana->ListBox1->Items->Add("VERANO");
FVentana->ListBox1->Items->Add("OTOÑO);
FVentana->ListBox1->Items->Add("INVIERNO");
resultado = (FVentana->ShowModal == mrOk);
if (resultado){
int x;
x = SendMessage(FVentana->ListBox1->Handle, WM_GETTEXTLENGTH, 0, 0);
x++;
buffer = StrAlloc(x);
buffer = FVentana->ListBox1->Items->GetText();
}
}
__finally{
delete FVentana;
}
return resultado;
}