compiling problem

This forum is for general support of Xbase++
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

compiling problem

#1 Post 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
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: compiling problem

#2 Post 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.
The eXpress train is coming - and it has more cars.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

#3 Post 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
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: compiling problem

#4 Post by rdonnay »

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.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

#5 Post by BruceN »

Attached is sample. The resource file came from your toucsrc sample.
alaska 355 / express 254

thanks
Attachments
touchscr.zip
(319.21 KiB) Downloaded 762 times
There are only 10 kinds of people - those who understand binary and those who don't :)

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

#6 Post by BruceN »

Roger:

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 :)

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

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

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: compiling problem

#8 Post by rdonnay »

Here is the fix.

Updates to NUMPAD.PRG and KEYPAD.PRG.
Attachments
touchscr.zip
(4.45 KiB) Downloaded 800 times
The eXpress train is coming - and it has more cars.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

#9 Post by BruceN »

Thank you, thank you, thank you...
There are only 10 kinds of people - those who understand binary and those who don't :)

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: compiling problem

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

Post Reply