News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Is it Possible to Create a Plain C DLL?

Started by ArtistandEngineer, March 25, 2014, 10:41:58 PM

Previous topic - Next topic

ArtistandEngineer

I have searched online and here in Code::Blocks in the forum for examples of creating plain vanilla C DLLs. I found ways to create C++ and C# DLLs, but not C.
Is it possible to create a plain C DLL here in Code::Blocks?
If so, do you have suggestions for places to look for examples? I am looking for a place to start. :-)

Thanks!
Colleen

oBFusCATed

Create a shared library project and rename main.cpp to main.c and you have C DLL project, simple as that...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ArtistandEngineer

Thank you, oBFusCATed!  :-)

I have a degree in Computer Science from 1985. Professionally, my path never met up with programming in Windows until now (I worked in embedded avionics). Can you recommend a good beginner's "Programming in Windows" book?

Because now I see that I need to know how to compile the DLL file correctly and how to "tell" the programs invoking the DLL functions where to look to find the DLL functions, etc.  I do not want to waste your time online here asking you.

Thanks!
Colleen

oBFusCATed

For DLL, the best info you can find is on msdn.com (Microsoft's help site).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]