compiling problem
compiling problem
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
[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
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
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:
Look at the project file in \exp19\source\dcres directory to see how to do this.
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 } )
The eXpress train is coming - and it has more cars.
Re: compiling problem
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
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
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
I don't have any idea. Can you give me a sample program that demonstrates the problem?
The eXpress train is coming - and it has more cars.
Re: compiling problem
Attached is sample. The resource file came from your toucsrc sample.
alaska 355 / express 254
thanks
alaska 355 / express 254
thanks
- Attachments
-
- touchscr.zip
- (319.21 KiB) Downloaded 877 times
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
Roger:
The same thing happens when I try the keypad.
thanks,
bruce
The same thing happens when I try the keypad.
thanks,
bruce
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
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
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
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
Here is the fix.
Updates to NUMPAD.PRG and KEYPAD.PRG.
Updates to NUMPAD.PRG and KEYPAD.PRG.
- Attachments
-
- touchscr.zip
- (4.45 KiB) Downloaded 956 times
The eXpress train is coming - and it has more cars.
Re: compiling problem
Thank you, thank you, thank you...
There are only 10 kinds of people - those who understand binary and those who don't 

Re: compiling problem
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,
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,
There are only 10 kinds of people - those who understand binary and those who don't 
