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 / This is how to make a DLL

Author
Message
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 24th Jun 2005 11:40 Edited at: 24th Jun 2005 11:40
Just Look in the help. That's what it's for.



Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!

Attachments

Login to view attachments
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jun 2005 21:49
LOL. I'm considering making this a sticky

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 24th Jun 2005 22:36 Edited at: 24th Jun 2005 22:37
It just seems to get asked even by experienced c++ coders. I don't know C++ and even I found it to be a useful resource.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 25th Jun 2005 00:50
this deserved to become a sticky with three red ! at either end

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 25th Jun 2005 00:57 Edited at: 25th Jun 2005 01:02
ARGH!! Why do people want to make dlls if they done even know C++ or anything like that , It anoys me !

And to add help the stuiped people who still havnt found it --



Eddie B and always will be

Attachments

Login to view attachments
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 25th Jun 2005 03:35 Edited at: 25th Jun 2005 03:35
I downloaded Dev C++ and tried entering that code and compiling it but i don't get anything...

I don't know anything about C++ but I'm planning on learning it...

Can someone plz give me some code or something or just tell me how to start and how to make a dll?...

I'm not understanding this at all..

Peace


"If I wasn't so poor... I'd be rich..." Me
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 04:00 Edited at: 25th Jun 2005 04:33
edit:
Never mind i fixed it, in db i typed
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 25th Jun 2005 04:05
Quote: "Can someone plz give me some code or something or just tell me how to start and how to make a dll?..."


GIVE MEH T3H CODEZZZ!!!11!

Learn C++ then post ffs!

Eddie B and always will be
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 04:13 Edited at: 25th Jun 2005 04:15
and you're wrong

Attachments

Login to view attachments
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 25th Jun 2005 04:56 Edited at: 25th Jun 2005 04:58
DBPro Help:
Quote: "For the more advanced Dark Basic Professional user, "

Which apperently the ones who ask are not. The code is there, just read it. If you don't understand it then get a "Book" on C++ first. There is nothing more anyone in this forum can do to help you, short of professional instruction. That's why you can get a computer science degree from most colleges. Making a DLL is an ADVANCED project. You need to have:
A. A mastery of DarkBasic
B. A solid understanding of C++ (Preferably Vis C++)

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 25th Jun 2005 05:11
Quote: "A. A mastery of DarkBasic"


Not realy but you do need B!

Eddie B and always will be
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 06:26
then explain why i know c and c++ but i didnt know how to make dll files. None of the books I bought ever covered it, thats why. I just quickyl read through the help file and now i got it

darkbasic rules! Im going to make a big dll for everyone!
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 25th Jun 2005 07:44
Quote: "then explain why i know c and c++ but i didnt know how to make dll files. None of the books I bought ever covered it, thats why. I just quickyl read through the help file and now i got it"


Yes , but you know C++ . Most people dont even know the basics!

Eddie B and always will be
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 25th Jun 2005 07:57 Edited at: 25th Jun 2005 07:59
No, you don't need to know C(++) in order to write a DBpro TPC.


Play Nice! Play Basic! Version 1.073
Eddie B
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location:
Posted: 25th Jun 2005 07:59
I do know lol, It was just that you need to know some sort of language that can write them

Eddie B and always will be
Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 25th Jun 2005 08:01 Edited at: 25th Jun 2005 08:03
It is possible in other languages like VB but that adds an extra layer of diffculty. The general question is. How do I write one? In order to write one you need to first figure out what you want it to do. It's like the how do I write a game? I general the number one thing you need besides programming knowledge is creativity.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 25th Jun 2005 08:03
You can use Delphi or Freepascal. No extra layers.


Play Nice! Play Basic! Version 1.073
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 25th Jun 2005 08:21
Can use PureBASIC too, only additional thing you need to do is add the string table; but that's hardly rocket science and the Newsletter had a 3 part tutorial on how to do it.

Keaz
20
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 25th Jun 2005 09:58
Yes, you can do it in other languages, but you have to understand whatever language your going to make the DLL in. Simply put, a DB DLL is for expanding the DB language with either new abilities, simplifying old ones or making them faster. No, matter what it's written in it's still a similar process. Decided what you want to do and then do it. The help files provide an example and general guidance beyond that point I was making is the forums can only provide specific answers not teach you a new language.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 11:06 Edited at: 25th Jun 2005 11:09
well here is a question.

How come when I type



into darkbasicpro

it executes the code that does not display the error message box



Formerly The Fixxer
http://www.xiemsoft.cjb.net
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 25th Jun 2005 15:56 Edited at: 25th Jun 2005 15:56


OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Jun 2005 22:37
Quote: "EXPORT void MESSAGEBOX_OK(LPSTR smessage, LPSTR stitle)
{

if((smessage) && strlen(smessage)>0)
{
MessageBox(NULL,smessage,stitle,MB_OK);
}
else
{
MessageBox(NULL, "Error: "LPSTR smessage" is invalid.", "Error", MB_OK | MB_ICONSTOP);
}

}"


Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 22:43
that has 3 errors.

--------------------Configuration: testing - Win32 Debug--------------------
Compiling...
testing.cpp
C:\Documents and Settings\Owner\Desktop\Comp Prog\testing\testing.cpp(21) : error C2146: syntax error : missing ';' before identifier 'LPSTR'
C:\Documents and Settings\Owner\Desktop\Comp Prog\testing\testing.cpp(21) : error C2501: 'typdef' : missing storage-class or type specifiers
C:\Documents and Settings\Owner\Desktop\Comp Prog\testing\testing.cpp(21) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
testing.dll - 3 error(s), 0 warning(s)

Formerly The Fixxer
http://www.xiemsoft.cjb.net
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 25th Jun 2005 23:48
this works:



Formerly The Fixxer
http://www.xiemsoft.cjb.net
TKF15H
20
Years of Service
User Offline
Joined: 20th Jul 2003
Location: Rio de Janeiro
Posted: 26th Jun 2005 00:16
Nathan, did you #include <windows.h> for LPSTR to work?

Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 26th Jun 2005 00:35 Edited at: 26th Jun 2005 00:36
no i did not, but i tested my entire dll, and everything works fine now.
I already have 5 message box commands!
I would post my DLL for you but I only have the Introductory lisence for VC++.

Formerly The Fixxer
http://www.xiemsoft.cjb.net
dj chainz
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 15th Jul 2005 05:34
This thread should be stickied

I am the lead programmer at red spark studios
http://www.redsparkstudios.co.uk
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 15th Jul 2005 06:07
yes but this does not cover making a dll in devc++ which IS possible even though most people dont know how and most people who think they know there problem just say "look in the help file"

err well yes that does work in devc++ but things to do with globstruct dont(strings)

yea this should be stickied

n00bs will be shot on spot...
It only gets more logical from here(sigh)
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Jul 2005 08:24 Edited at: 15th Jul 2005 08:37
Quote: "work in devc++ but things to do with globstruct dont(strings)"


Yes they do - you just have to go about it in the right way.

I posted a code method of doing it in this forum, and I know that someone else showed how to do it using a .def file.

.def file : http://forum.thegamecreators.com/?m=forum_view&t=55588&b=18
Code form : http://forum.thegamecreators.com/?m=forum_view&t=55014&b=20

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-04-26 17:35:07
Your offset time is: 2024-04-26 17:35:07