How to include a .DLL?


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    ditto the last post. Why would you want to include pre-compiled code when its so much easier to include the source and compile the whole thing.

    DLL's are commonly used to implement third party functions. The operating system controls initialization and there is a mutually understood way of defining and passing parameters. Non of these thing apply in this case.

    I'm sure it's possible but the real question is why?
    George

  2. #2
    Join Date
    May 2016
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    The purpose is to have an open source code that part of it is encrypted. So I don't want to release part of it.Either using an object file,DLL, or code in bootloader and then call it from main code.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    If you don't want to provide the source, how can it be open source?
    George

  4. #4
    Join Date
    May 2016
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    Quote Originally Posted by towlerg View Post
    If you don't want to provide the source, how can it be open source?
    Most of it will be open source but I don't want to open source small part of it dealing with USB.So basically I want to release the source code but not one of include files.

  5. #5
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    Forget about that...
    First you can easily dissemble hex file, and get that ASM code. Second, how PIC will execute commands if they are encrypted. Any way you must write original source code to FLASH if you want to execute it.
    So even if code is loaded in flash encrypted, and then decrypt in pic and wrote to FLASH again, just run your code in some simulator, and look FLASH content...
    I don't want to be rude, but open source with hidden source is plain stupid...

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    I don't want to be rude either but pedja089 realy does have a point. It's either open sorce or its not (like being a little bit dead)
    George

  7. #7
    Join Date
    May 2016
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    I don't mind if they dissemble the hex.I just don't want it to be too easy to simply read the code.As far as I can call a function in Bootloader then I am fine.I am a bit new to bootloader but can I upload two hex files to MCU? or second hex should be done through bootloader?

  8. #8
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: How to include a .DLL?

    There is some programmers that would you probably allow you to load two hex...
    I always put precompiled bootloader at end of main app and every thing i need for production is in one HEX.

Similar Threads

  1. SSD1306 Include example
    By timc in forum Code Examples
    Replies: 11
    Last Post: - 28th November 2017, 08:53
  2. Use of INCLUDE
    By Alexey in forum mel PIC BASIC
    Replies: 8
    Last Post: - 25th December 2013, 13:51
  3. where to put include files
    By queenidog in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st February 2013, 19:10
  4. Where are all the INCLUDE files??
    By Heckler in forum General
    Replies: 3
    Last Post: - 13th September 2011, 08:27
  5. Need to download Include files
    By laflam_p in forum Off Topic
    Replies: 2
    Last Post: - 2nd September 2009, 13:39

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts