Author Topic: creating dynamic link lib help [nm, solved]  (Read 3950 times)

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
creating dynamic link lib help [nm, solved]
« on: January 30, 2008, 03:34:29 pm »
Hi. I'm pretty new to cb, well actually Im a returner but i am new to this dll stuff and I need some help to get started (probably some simple thing I missed). Is there like a tutorial or an article describing how to write and work with dynamic libs?

I used the wizzard and got some funky example code, don't I need an .h file to get the host app working?
Speaking off the host app, thats something im supposed to write right? Can I place it anywhere or must it bee in the same folder or something? Do I use the normal Build Options to link the host to the lib?

Sorry for the stupid questions.
« Last Edit: January 30, 2008, 05:16:54 pm by Calexus »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: creating dynamic link lib help
« Reply #1 on: January 30, 2008, 03:44:24 pm »
I suggest researching using Google for Windows C and C++ sites.
http://en.wikipedia.org/wiki/Dynamic-link_library has what looks like good info and links at the bottom to help you more.

This is not a Beginner programing site, so most of the people will not answer these basic, unrelated to Code::Blocks, questions.

I have not written an DLL in years would have to look it all up again.

Tim S
« Last Edit: January 30, 2008, 03:49:09 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: creating dynamic link lib help
« Reply #2 on: January 30, 2008, 04:22:16 pm »
I know, I not a noob to programming, but I do understand if my post make you believe that. Sorry :? . I just don’t know how to get this working in CB and MinGW.
It’s been like 6 years since I did any dll stuff and I’ve never done it outside visual studio so I’m feeling a bit... eh… rusty and lost.
Actually I’m having problems just finding the right dialogs and settings so it’s probably just me doing something stupid.

Nonetheless some kind of article would have been nice.
I hoped there would be something about this in the wiki but it seems to be pretty much deserted.

Well if no one know or want to tell me ill just keep trying until I get it right.
« Last Edit: January 30, 2008, 04:24:52 pm by Calexus »

Offline Calexus

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: creating dynamic link lib help
« Reply #3 on: January 30, 2008, 05:15:31 pm »
Finally got it working, a simple error as suspected. Set programs' argument didn’t save the path to de host app it just took the name of the exe. So I had to manually write it.