Timex M851 Design Manual page 8

Wristapp gui plug-in
Hide thumbs Also See for M851:
Table of Contents

Advertisement

M851 WristApp GUI Plug-in Design Guide
Step 4: The project will have the basic files present for you to have a DLL. At this point, you need to
define the entry functions.
Step 5: Open the class associated with the application. After CTestAPP theApp definition shown above,
place the definitions from the two entry points above. Here is the example code for the WorldTime
WristApp:
extern "C" BOOL FAR PASCAL EXPORT Show(LPCTSTR lpszDataPath, LPVOID pData)
{
//Need to use this macro whenever we access resources from MFC DLL
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CString sINIFile = lpszDataPath;
sINIFile += "App\\TestApp.ini";
CTestApp dlg;
dlg.m_sIniFileName = lpszDataPath;
dlg.m_sIniFileName += "App\\TestApp.ini";
return dlg.DoModal();
Timex Corporation
Rev 1.0
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents