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

Post Reply
User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Component C Files in flowcode

Post by Steve001 »

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


http://www.matrixmultimedia.com/mmforum ... 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: 364 times
Been thanked: 716 times
Contact:

Re: Component C Files in flowcode

Post by JohnCrow »

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 !

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Component C Files in flowcode

Post by medelec35 »

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
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: Component C Files in flowcode

Post by Steve001 »

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.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Component C Files in flowcode

Post by medelec35 »

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 KiB) Downloaded 242 times
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: Component C Files in flowcode

Post by Steve001 »

doh . . thats with rushing thanks guys

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

Post Reply