I do somthing like this in the Vst~ plugin - either download the source code (http://www.junklight.com/pd) or I'll send an email tomorrow when I get back to work and have a look myself.
cheers
mark
-----Original Message----- From: Bert Schiettecatte [mailto:bschiett@stanford.edu] Sent: 30 April 2002 01:59 To: pd-list@iem.kug.ac.at Subject: [PD] window handle in pd external?
hi,
I'm writing a directinput external for PD (does this already exist???), and I need to pass one of the api functions a handle to the window that owns the input device I'm creating... what window handle should I pass and how do I get that handle? previously, my code was running in an mfc dialog box as a stand-alone application and I could just do GetSafeHWnd() to get the dialog's handle. What should I do now?
Thanks,
bert