Using Ccontrols under the desktop version

Discuss PocketC for Palm OS (including Desktop Edition)

Postby Velvis on Fri Jan 19, 2001 10:05 pm

Can someone explain what I need to do to use the Ccontrols package under the desktop compiler? I have included Ccontrols but it fails to compile saying it can find Ccontrols1 & 2. Both are available. After tweaking with file names, I am now getting an error "define requires ident"

I think I may be approaching it wrong.

Any tips?
Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Postby stephane on Sat Jan 20, 2001 1:53 am

Assuming you didn't modify the ccontrols files, all you need at the top of your main program file is

include "Ccontrols.c"

Also make sure all three ccontrols include files are in the same directory as the source to be compiled.

Just thought of something else: I remember trying to keep the include files in another directory than my source, and I wrote this:

include "..\libs\ccontrols.c"

Which caused problems because the '\' is an escape char when in quotes! <img src=icon_smile_blush.gif border=0 align=middle> So then I replaced them with '\\', which is fine, but... then it can't find ccontrols1 and 2, because <i>they're</i> not in the current directory, which means you also need to specify the full path in the "Ccontrols.c" file. All this to say, I put everything I need in the same subdirectory, leaving the filenames as they are, and everything's fine.

Works for me.. If you still have problems, post the top lines of your code, maybe we can find something. Let us know how it turns out! <img src=icon_smile_wink.gif border=0 align=middle>

Posts: 71
Joined: Fri Jan 12, 2001 3:16 am
Location: Canada

Postby Velvis on Sat Jan 20, 2001 2:11 am

I figured it out, one of the CControls includes was an empty txt file....
Posts: 226
Joined: Mon Dec 11, 2000 2:32 am

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 6 guests