Win32api: How to send a Struct in DialogBox?

Marcone marcone at email.com
Wed Oct 14 00:07:10 UTC 2020


Solved:

Teste * params = cast(Teste*) lParam;

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


But here, how can send struct?

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


More information about the Digitalmars-d-learn mailing list