Page 1 of 1

Drawframe c++

Posted: Mon Feb 09, 2009 12:20 pm
by DAMACA
Hello,

I am using C++.

I need to know how to get the long Hwnd in order to use it in the DrawFrame, i use your sample as a guide but i allways get errors.

this is what i am doing:

[size:8pt]camera->DrawFrame(frame,(LONG) GetDlgItem(IDC_STATIC_FRAME_IMAGE)->GetSafeHwnd());[/size]


This are the errors:


[size:8pt]...GetDlgItem: Fuction does not take 1 arguments[/size]


[size:8pt]...left of ->GetSafeHwnd must point to class...[/size]


I tried to correct bouth errors adding stdafx.h but when i do it i have this new error:


[size:8pt]...building MFC aplication with/MD[d] (CRT dll Version) requires MFC shared version.Please #define_AFXDLL or do not use /MD[d][/size]


and this time i really dont know what to do, i dont even know what this error means...when i run your aplication i never get any one of this problems.

What can i do?

Thanks

Re: Drawframe c++

Posted: Tue Feb 10, 2009 6:59 pm
by Birch
Hello,

You might try sending your application source to us at support@naturalpoint.com. It might be easier to give you advice if we can take a look at it.