All Forums
 Microsoft Windows CE
 General CE
 touch screen driver
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

gokan

20 Posts

Posted - 19 Oct 2004 :  14:47:02  Show Profile  Email Poster
I need to detect a touch screen active(touched)for the entire screen area even over a control.(the requirement is to detect a stuck touch screen if the screen is touched for more than 30 seconds) I get a OnLButtonDown event for areas of the screen that are not controls but do not get this event if the area is over a control. We would like to use the DdsiTouchPannelGetPoint function but we need the Tchmdd.lib. Can you provide it?

gokan

20 Posts

Posted - 19 Oct 2004 :  17:51:02  Show Profile  Email Poster
We installed the libary file and we are still getting a error on linking.
Do you have any ideal about the cause. Can you also send the header file for this libary? The eror message is below.


--------------------Configuration: NewClassTest - Win32 (WCE ARMV4I) Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
Button1.cpp
Button_New.cpp
NewClassTest.cpp
NewClassTestDlg.cpp
Generating Code...
Linking...
NewClassTestDlg.obj : error LNK2019: unresolved external symbol DdsiTouchPanelPowerHandler referenced in function "protected: void __cdecl CNewClassTestDlg::OnTimer(unsigned int)" (?OnTimer@CNewClassTestDlg@@IAAXI@Z)
NewClassTestDlg.obj : error LNK2019: unresolved external symbol DdsiTouchPanelGetPoint referenced in function "protected: void __cdecl CNewClassTestDlg::OnTimer(unsigned int)" (?OnTimer@CNewClassTestDlg@@IAAXI@Z)
ARMV4IRel/NewClassTest.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

NewClassTest.exe - 3 error(s), 0 warning(s)
Go to Top of Page

gokan

20 Posts

Posted - 20 Oct 2004 :  14:43:44  Show Profile  Email Poster

In order to monitor the touch screen's status we want to call the touch screen driver's function here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/_wceddk_ddsitouchpanelgetpoint.asp

To call this function we need the lib file "Tchmdd.lib" and the header file "Tchddsi.h". Now the problem is we included the file in our project we still got link error message:
*******************
NewClassTestDlg.obj : error LNK2019: unresolved external symbol DdsiTouchPanelGetPoint referenced in function "protected: void __cdecl CNewClassTestDlg::OnTimer(unsigned int)" (?OnTimer@CNewClassTestDlg@@IAAXI@Z)
ARMV4IRel/NewClassTest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

*******************

Do you have any idea about this? or any other way to check the status of touch screen. Is it possible the "Tchmdd.lib" we got does not match the SDK we have?

We are using the ADS SDK for the bity X card for CE 4.2.
Go to Top of Page

akidder

1519 Posts

Posted - 22 Oct 2004 :  13:28:20  Show Profile  Email Poster
There's a chance that your compiler is having trouble accessing the C function library from a C++ application. Can you try telling the compiler that the signature is not C++ but instead C? I don't know how to do this, but maybe you do?!
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000