DialogBoxParam receive need "int". How convert struct object reference to int and cast to struct type after?

I will cast using:

Teste * params = cast(Teste*) LOWORD(lParam);

writeln(params.nome);
writeln(params.idade);


But here, how can send struct?

DialogBoxParam(null, MAKEINTRESOURCE(IDD_DIALOG1), null, &DlgMain, &test); // Error, need "int" but I am sending Test*





Reply via email to