struct Teste {
    string nome = "Paul";
    int idade = 33;
}

extern(Windows):
BOOL DlgMain(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) nothrow
{
    // I want to be able to use the struct object here.
    // writeln(test.nome);
    return false;
}

void chamaJanela(){
    Test test; // How to send this object to the DlgMain function?
    DialogBox(null, MAKEINTRESOURCE(IDD_DIALOG1), null, &DlgMain);
}

Reply via email to