CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

can i load dll file in ccs code?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
khalid ezz



Joined: 31 Aug 2014
Posts: 6

View user's profile Send private message Send e-mail

can i load dll file in ccs code?
PostPosted: Sun Aug 31, 2014 7:31 am     Reply with quote

hello
i want to know if i can load a .dll file in my ccs code as we load .h files
thanks
temtronic



Joined: 01 Jul 2010
Posts: 9241
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 31, 2014 9:02 am     Reply with quote

yes, but it won't do anything.....

.dll files are for 'PC' based systems...
Ttelmah



Joined: 11 Mar 2010
Posts: 19537

View user's profile Send private message

PostPosted: Sun Aug 31, 2014 12:48 pm     Reply with quote

Key point is that DLL's are to provide a linkage back to an OS, or other functions provided to be used by multiple programs. Neither an OS, or multiple programs are going to happen inside a PIC, unless you write it yourself....
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Sep 01, 2014 12:00 am     Reply with quote

When posting a question you will get better answers when you provide more details about what you want to do and why you want to do this.

The generic name for the technique is: Dynamic Library Loading where your library is loaded at ´run time´, i.e. when the program starts. This requires an OS and a File System to load from. Both are not present in the CCS toolset. So DLL is not possible.

Perhaps what you want to do is to give your code to other people, but prevent them from reading the code?
If that is what you want, then you can create ´object files´. These can be used at link time to link your pre-compiled code to the code of your users.
More info on creating these files: https://www.ccsinfo.com/content.php?page=linker
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group