LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I apportion project main C file?

The project I'm working on consists various separated parts, so I'd like to have a C file for each one, all dependant on a main C which would contain definitions, constants, globals, main function, etc...
Is it appropiate to do this? And if so, how should I locate the includes?
Thanks in advance.
Image Hosted by ImageShack.us
0 Kudos
Message 1 of 4
(2,678 Views)
Hello Xavi,

yes, of course this is appropiate and extensively used (specially in big projects).
I suggest you to check some of the example projects CVI has (samples folder) which make use of multiple c files (i.e. samples\toolbox\menudemo.prj).

A final suggestion is to post these kind of questions into another Discussion Forum, as they relate to general C programming and are not related to CVI. I appreciate your understanding of this point.

Regards,
Message 2 of 4
(2,678 Views)
Thank you Jorge, I'll take it into account the next time.
Image Hosted by ImageShack.us
0 Kudos
Message 3 of 4
(2,678 Views)
OK Xavi, thanks for understanding. I've searched a little bit and found this link that might be helpful.

http://cplus.about.com/library/weekly/aa060402e.htm

As you can imagine, there are hundreds of C programming tutorials on the web.
Regards,
0 Kudos
Message 4 of 4
(2,678 Views)