Special Offer
It is currently 01 Aug 2014 13:05

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 11 Dec 2009 16:20 
Offline

Joined: 12 Jan 2009 19:57
Posts: 4
Can anyone give me an example how to create a module and use it.

ws


Top
 Profile  
 
 Post subject:
PostPosted: 11 Dec 2009 20:06 
Offline

Joined: 22 Apr 2005 17:40
Posts: 1921
Location: France 87
are you aware in pascal we call a module 'unit' , the help should contain enough information to get started with unit's.

_________________
Au royaume des aveugles, les borgnes sont rois.


Top
 Profile  
 
 Post subject:
PostPosted: 14 Dec 2009 14:19 
Offline
mikroElektronika team
User avatar

Joined: 02 Dec 2009 14:16
Posts: 2138
Location: Serbia
Hello,

if you wanna to make and use new unit, first of all is to create new project. On menu file, you have option New unit. All of using and creating units are described in our help file. The main sections which have explanation about these two things are units and program organization.

In mikroPascal PRO for AVR, each project consists of a single project file and one or more unit files. Project file, with extension .mppav contains information about the project, while unit files, with extension .mpas, contain the actual source code.

Units allow you to:

1) break large programs into encapsulated parts that can be edited separately,
2) create libraries that can be used in different projects,
3) distribute libraries to other developers without disclosing the source code.

Each unit is stored in its own file and compiled separately. Compiled units are linked to create an application. In order to build a project, the compiler needs either a source file or a compiled unit file (.mcl file) for each unit.

Best regards,

Losic Tihomir

_________________
mikroElektronika [Support team]


Top
 Profile  
 
PostPosted: 12 Apr 2010 01:08 
Offline

Joined: 18 Apr 2009 12:38
Posts: 26
Distributing just the compiled units won't reveal any source code.
You only need document the interface section (otherwise no-one will know how to use it!).

_________________
To err is human; to moo, bovine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group