Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Calexus 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.
-
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
-
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.
-
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.