Component C Files in flowcode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1104
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 453 times
Been thanked: 505 times
Contact:

Component C Files in flowcode

Postby Steve001 » Mon Dec 12, 2011 8:30 pm

Not sure if i have posted this in the correct place ,

Is it possable to put a remark stament or title at the start of the c file ?

I have a modified LCD Dispaly file that Ben did for me and have on several occaisions got the files mixed up

is it somthing like this ? (SORRY IF THIS IS WRONG AS IT IS A COMPLETE GUESS) i am looking about for some examples

\\ 2 wire lcd display
or

\\ original lcd display

ben modified files here


viewtopic.php?f=2&t=8808

Steve
Success always occurs in private and failure in full view.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 381 times
Been thanked: 716 times
Contact:

Re: Component C Files in flowcode

Postby JohnCrow » Mon Dec 12, 2011 8:34 pm

Hi Steve

Normal way to comment in a C file is

/* This is a comment */
Not tried it in a C box in FC though

It can be spread over more than 1 line

/* This is a comment
So is this
And this
*/
1 in 10 people understand binary, the other one doesn't !

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8541
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2456 times
Been thanked: 3526 times
Contact:

Re: Component C Files in flowcode

Postby medelec35 » Mon Dec 12, 2011 9:25 pm

Hi Johns correct.

But your Nearly correct ...You have got the wrong slash its not > \\
but it's forward slash > //
You can tell if commented if using a C code box as text goes from Black to Green.
You can also use // place commen here
In a calculation box, but text stays black.
But your know if it's correct as you will not get an error when you click OK

Martin
These users thanked the author medelec35 for the post:
Steve001 (Tue Dec 13, 2011 11:03 am)
Rating: 5.26%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1104
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 453 times
Been thanked: 505 times
Contact:

Re: Component C Files in flowcode

Postby Steve001 » Mon Dec 12, 2011 10:19 pm

Cheers guys ,

So this is correct ?

/ original LCD
/*********************************************************************
* Flowcode LCD Display Component Code
*
* File: PIC_LCD.c
*
* (c) 2009 Matrix Multimedia Ltd.
* http://www.matrixmultimedia.com
*
* Software License Agreement

Not got chance to try tonight maybe this weekend
Flowcode not going to get upset with additional extra line. / original LCD

Steve
Success always occurs in private and failure in full view.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8541
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2456 times
Been thanked: 3526 times
Contact:

Re: Component C Files in flowcode

Postby medelec35 » Tue Dec 13, 2011 12:02 am

No its as John stated.
So it will be:

Code: Select all

/*********************************************************************
 * Flowcode LCD Display Component Code
 *
 * File: PIC_LCD.c
 *
 * (c) 2009 Matrix Multimedia Ltd.
 * http://www.matrixmultimedia.com
 *
 * Software License Agreement

******************************/

Etc.

You can't start with just / without * following

Here is the PIC_LCD.c file so you can have a look


Martin
Attachments
PIC_LCD.c
(14.84 KiB) Downloaded 100 times
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1104
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 453 times
Been thanked: 505 times
Contact:

Re: Component C Files in flowcode

Postby Steve001 » Tue Dec 13, 2011 11:04 am

doh . . thats with rushing thanks guys

steve
Success always occurs in private and failure in full view.