Page 1 of 2
compiling problem
Posted: Thu Mar 17, 2011 11:00 am
by BruceN
I'm trying to integrate your touchscreen functions into our program. I can get the touchscreen program (number pad) to work standalone. However, when I try to add it into our program I either get a blank screen for the number pad (with the dcget, but no number buttons) or compiler errors:
[Hint] : Pbuild.exe PROJECT.XPJ
[Error] : error: could not start preprocessor , OS error: 2
[Hint] : 'arc -v "C:\ALASKA\TOUCH\TOUCHSCR.ARC" "C:\ALASKA\TOUCH\TOUCHSCR.ARC" "C:\EXP19\LIB\NOVATEK.ARC"' returned error 3
[Hint] : Processing time: 0.07 secs.
[Hint] : DONE
Heres the relevent part of the xpj file:
XPRCHECK.obj
XPRINTPO.obj
numpad.obj
// $STOP-AUTODEPEND
C:\EXP19\LIB\NOVATEK.ARC
C:\EXP19\LIB\NOVATEK.RES
c:\alaska\touch\touchscr.arc
c:\alaska\touch\touchscr.arc
DBF2XL.OBJ
XBTBASE1.LIB
is there a problem with using more than one .res and/or .arc file?
thanks
Re: compiling problem
Posted: Thu Mar 17, 2011 11:35 am
by rdonnay
Unfortunately, you cannot use more than one .RES or .ARC file with ALINK.EXE.
You need to merge TOUCHSRC.ARC with your own .ARC, or you can put all the resources in a TOUCHSRC.DLL and then load the resource dll in your source code like this:
Code: Select all
LOCAL nResDll1, nResDll2
nResDll1 := DllLoad('DCRES.DLL') // load eXpress++ custom bitmaps
nResDll2 := DllLoad('TOUCHSCR.DLL') // load Touchsreen custom bitmaps
DC_BitmapResourceFile( { nResDll1, nResDll2 } )
Look at the project file in \exp19\source\dcres directory to see how to do this.
Re: compiling problem
Posted: Thu Mar 17, 2011 12:13 pm
by BruceN
WE'RE ALMOST THERE !!!
Worked great. I could compile and the number pad shows. Only problem is if I click on a number (don't have touchscreen monitor yet - but my understanding is that a touch is the same as a mouse click) the image goes away. In the stand alone (from your samples) when I click on a number. it flashes and redisplays.
Any thoughts???
as always - thanks
Re: compiling problem
Posted: Thu Mar 17, 2011 12:26 pm
by rdonnay
I don't have any idea. Can you give me a sample program that demonstrates the problem?
Re: compiling problem
Posted: Fri Mar 18, 2011 6:50 am
by BruceN
Attached is sample. The resource file came from your toucsrc sample.
alaska 355 / express 254
thanks
Re: compiling problem
Posted: Fri Mar 18, 2011 7:01 am
by BruceN
Roger:
The same thing happens when I try the keypad.
thanks,
bruce
Re: compiling problem
Posted: Mon Mar 21, 2011 7:28 am
by BruceN
Roger:
Any luck with this? i'm kind of in a holding pattern on this project until I can get it resolved (or find another numpad/keypad I can use).
thanks,
bruce
Re: compiling problem
Posted: Mon Mar 21, 2011 9:21 am
by rdonnay
Here is the fix.
Updates to NUMPAD.PRG and KEYPAD.PRG.
Re: compiling problem
Posted: Mon Mar 21, 2011 9:48 am
by BruceN
Thank you, thank you, thank you...
Re: compiling problem
Posted: Mon Mar 21, 2011 12:07 pm
by BruceN
OK.. now another small issue (this is my stupidity):
I want the numpad to popup automatically when the dcget receives focus, accept the value entered, then move focus to another dcget. I've tried varialtions on this, but don't get what I want:
@ 1,1 DCSAY 'Enter a Number' GET nNum GETFONT '18.Courier' ;
PICTURE '999999.99' GOTFOCUS {|n|PopNumPad(n),DC_GetRefresh(GetList), SetAppFocus(DC_GetObject(Getlist,'NEXT_GET)) }
what idiotic thing am I overlooking?
thanks,