Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want the simple solution how t create/implement the Plugin form DLL and how to load it dynamically in our program. using pure c programing.

What I have tried:

i have create the DLL file .i have to create a simple plugin from that DLL in c program and run it using the GCC.
Posted
Updated 28-Mar-19 8:33am
Comments
Richard MacCutchan 28-Mar-19 12:48pm    
Sorry but your question is not clear. What do you want to plug this into?
k5054 28-Mar-19 14:13pm    
Also, are you doing this on Window or Linux? GCC isn't usual for Windows, but the term DLL is not normally used in Linux to refer to shared libraries.
Afzaal Ahmad Zeeshan 28-Mar-19 22:13pm    
Most probably then this plugin would be only accessible to other C modules, or programs—like lib files.

In other methods, you can use the COM components to do this and extend the services to other .NET based components—assuming Windows is a part of this process, because DLL files are mostly used on Windows.

1 solution

You need to call two functions : LoadLibrary to load the DLL into your process' address space and GetProcAddress to get the address of a function in the library. They are both well-documented and there are plenty of samples around to see exactly how they are used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900