Drawframe c++

Post Reply
DAMACA
Posts: 8
Joined: Wed Jan 28, 2009 9:29 am

Drawframe c++

Post 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
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: Drawframe c++

Post 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.
Post Reply