The MS Access examples hadn't been updated for the change to \Program Files that occurred in the 1.78 release, and also didn't mesh with existing MTSDLL that the Access examples used (changes not addressed from previous versions/examples/builds). Here are the changes to make it work:
Modifications to Access DLL
In \Program Files\MYTTOUCH\MSACCESS\MYTTOUCH
Copied "Sample usage of DLL in Access (WINDOWS).MDB"
To "Sample usage of DLL in Access (Program Files).MDB"
In Module "DLL Declares" changed (Global replace)
"\WINDOWS\" to "\Program Files\" (40 replacements)
Then do a find for ".CFG", select Current Database
In "Form_Example3" class module:
Change "NUM.CFG" to "C:\Program Files\MYTTOUCH\NUM.CFG" in
Change "KYBD.CFG" to "C:\Program Files\MYTTOUCH\KYBD.CFG"
Save
Update MTSDLL.DLL to updated version
Download updated MTSDLL MTSDLL.DLL 56k 9/28/2012 MD5: A6699B979C972C0AB0A370A14E0BB934
Replace \Program Files\MYTTOUCH\MTSDLL\MTSDLL.DLL with update
For reference, these are the updates to the MTSDLL.C to build the updated DLL
Update to MTSDLL.C very limited to match Access function call.
Change parameter of LaunchMTS to void:
from: long WINAPI LaunchMTS(LPSTR lpCmd)
to: long WINAPI LaunchMTS(void)
from:
LPSTR lps;
hWork = FindMyTSoft();
to:
LPSTR lps;
//add this so code compiles with no other changes
LPSTR lpCmd = "PlaceHolder";
hWork = FindMyTSoft();
Category: Integrating(Developing) | Type: Problem/Resolution | Product: Developers Kit | Version: 1.78 |
Notes:
As seen in ...