User forums > Using Code::Blocks

Is it Possible to Create a Plain C DLL?

(1/1)

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...

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).

Navigation

[0] Message Index

Go to full version