Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / DLL Creating

Author
Message
Zero Blitzt
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 7th Sep 2004 11:51
Being the C++ n00b that I am, I need some more DLL-authoring resources. Post anything you have, please. I will post my stuffs after I wake up.


Come to #coding. We promise we wont kick you!
DISCLAIMER: Promises may not actually be upheld.
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 7th Sep 2004 17:17
Visual C (either V6 or .Net) is the main program to use really - anything can be be long winded.


Come to the UK Convention on the 23rd & 24th of October
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 7th Sep 2004 18:17
The 'Third Party DLL Technical Document' that comes with DBP is the easiest way to get started writing Plugins for DBP and covers most of the basics fairly well. Then you can look at things like IanM's Plugin Framework and when you're feeling fairly confident, finally take a look at IanM's Interface Library. There's a lot of cool things that can be done.


"Computers are useless they can only give you answers."
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Sep 2004 21:20
In addition, my utility plug-in comes with source code too so that you can see how easily a usable plug-in can be built.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Sep 2004 00:56
where do you get Visual C++ from? is it free? or does it have to be bought?
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Sep 2004 02:23
Quote: "where do you get Visual C++ from?"

Any good computer shop sells it.

Quote: "is it free? or does it have to be bought?"

I think the compiler part you can get free - the IDE and other bits need to be paid for.


Come to the UK Convention on the 23rd & 24th of October
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 8th Sep 2004 02:25 Edited at: 8th Sep 2004 03:33
You can use dev-c++ which is free.
I have a simple message box dll with dev-c++ source here.


it's cool to hate
Surreal Studio IanG
20
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Cyberspace...I think
Posted: 8th Sep 2004 02:42
the commnd line version of visual studio just contains the bare basics no extras are included - like the mfc lib


Used to be Phoenix Insane : PC Spec- AMD Athlon 2.0Ghz, GeForce FX5200 128mb, 512MB of ram, Win XP Home SP1
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Sep 2004 02:57
Cool..... How much does Visual C++ Cost? And how hard is it to use?
Surreal Studio IanG
20
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Cyberspace...I think
Posted: 8th Sep 2004 02:59
easy to use - costs alot, its made by microsoft


Used to be Phoenix Insane : PC Spec- AMD Athlon 2.0Ghz, GeForce FX5200 128mb, 512MB of ram, Win XP Home SP1
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Sep 2004 03:24
Actually i heard you get Visual C++ with XP proffesional... correct me if i'm wrong.............
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Sep 2004 03:36
Consider yourself corrected

You can get hold of beta copies of the next MS C++ compiler from their site, but I don't know how well they will work with DBPro.

If you decide to use Dev-C++, then make sure to grab a copy of my Interface library - that's pretty much the easiest way to get hold of the the Core pointer that's needed for memory allocation (and a few other things)

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Sep 2004 04:33
To add to that, creating and debugging DLLs is pretty straight forward now with Dev-C++. My CSM plugin uses IanM's interface library and Dev-C++. All free resources.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Sep 2004 05:13
I'm Getting C++! Hope i can Learn it
Zero Blitzt
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 8th Sep 2004 05:55
C++ is free

Well, uhh... All I know about DarkBasic DLL-creating is that you need to write __declspec( dllexport ) before all your functions. This topic is a good resource though, I think it's high time I downloaded your DLL-shell source, IanM.


Come to #coding. We promise we wont kick you!
DISCLAIMER: Promises may not actually be upheld.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Sep 2004 06:19
Please bear in mind that the Framework was written for VC++ - it won't work with Dev-C++.

After you've looked through the framework, I also suggest that you then go on and download the interface library. It doesn't just allow access to DBPro commands - I've added some helpful functions too, such as the CreateString/DeleteString functions and checklists.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Ilya
20
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 8th Sep 2004 06:58
Yay! Dev-C++ compiled something for once.
Many warnings but no errors.

BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 8th Sep 2004 08:20
i wish it were possible to make dll's in dark basic........ i know lets make a dll for that! ........ Its never ending....... If we could make them in DBpro.... we'd all be as happy as larry
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Sep 2004 08:24
I'm part way through a tutorial on writing TPCs nad interfacing with DBPro (thanks to IanM's great lib).

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Zero Blitzt
20
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 8th Sep 2004 11:30
BiggAdd, if we made DLLs in DarkBasic pro, it would defeat the purpose

C++ DLLs allow us to have features in DarkBasic that we wouldnt be able to use otherwise.


Come to #coding. We promise we wont kick you!
DISCLAIMER: Promises may not actually be upheld.
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 8th Sep 2004 18:57 Edited at: 8th Sep 2004 18:58
Quote: "writing TPCs nad interfacing with DBPro"


David, that sounds a bit dirty


http://www.jellystudios.tk
Current Project: Cube3 Arena (TGC Compo Entry)
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 8th Sep 2004 23:54
Grr I hate those typos My hand seem uncapable to type "and" without anticipating the "n".

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Surreal Studio IanG
20
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Cyberspace...I think
Posted: 9th Sep 2004 01:24
just a small thing i'm going to point out - the ms express c++ betas are only allowed for testing, you cannot make anything in them for comercial products (or any other roducts, freeware, donateware etc) - read the license, it says that you cannot use the betas for programming anything you want to release to the world


Used to be Phoenix Insane : PC Spec- AMD Athlon 2.0Ghz, GeForce FX5200 128mb, 512MB of ram, Win XP Home SP1

Login to post a reply

Server time is: 2024-04-20 13:14:51
Your offset time is: 2024-04-20 13:14:51