Author Topic: Is it Possible to Create a Plain C DLL?  (Read 5542 times)

Offline ArtistandEngineer

  • Single posting newcomer
  • *
  • Posts: 2
Is it Possible to Create a Plain C DLL?
« on: March 25, 2014, 10:41:58 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is it Possible to Create a Plain C DLL?
« Reply #1 on: March 25, 2014, 11:12:14 pm »
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!]

Offline ArtistandEngineer

  • Single posting newcomer
  • *
  • Posts: 2
Re: Is it Possible to Create a Plain C DLL?
« Reply #2 on: March 26, 2014, 07:08:30 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is it Possible to Create a Plain C DLL?
« Reply #3 on: March 26, 2014, 08:15:51 pm »
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!]