Jump to content


Photo

Dll Programming Resources


  • Please log in to reply
294 replies to this topic

#41 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 19 August 2005 - 02:44 PM

Tutorials [C++]

-----------------------------------------------

C++ Language Tutorial
  • Name: C++ Language Tutorial
  • URL: http://www.cplusplus.com/doc/tutorial/
  • Other Information: These tutorials explain the C++ language from its basics up to the newest features of ANSI-C++, including basic concepts such as arrays or classes and advanced concepts such as polymorphism or templates. The tutorial is oriented in a practical way, with working example programs in all sections to start practicing each lesson right away.
  • Submitted By: Unknown
C++ Programming Language TutorialsC++ TutorialsC++ Tutorial

Edited by Roach, 05 July 2009 - 09:59 PM.

  • 0

#42 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 19 August 2005 - 02:46 PM

Tutorials [PASCAL]

-----------------------------------------------

Learn Pascal
  • Name: Learn Pascal
  • URL: http://www.taoyue.co...torials/pascal/
  • Other Information: An introduction to the Pascal programming language. It covers all of the syntax of standard Pascal, including pointers.
  • Submitted By: Unknown
Roby's Pascal TutorialPascal TutorialsPascal Programming

Edited by Roach, 05 July 2009 - 10:01 PM.

  • 0

#43 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 19 August 2005 - 02:47 PM

Tutorials [BASIC]

-----------------------------------------------

None

Edited by Roach, 05 July 2009 - 10:02 PM.

  • 0

#44 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 19 August 2005 - 02:49 PM

Tutorials [ASM]

-----------------------------------------------

Assembly Tutorial

Edited by Roach, 05 July 2009 - 10:03 PM.

  • 0

#45 hrishikesh

hrishikesh

    bloo guy

  • New Member
  • 158 posts

Posted 20 August 2005 - 04:03 AM

Can liberty basic create dlls?
are u sure?

-hrishikesh :D
  • 0

#46 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 03 September 2005 - 03:39 AM

I've tried creating a dll in Pascal, using the instructions listed above, as well as by visiting the VitalDragon's website in which the post was excerpted from.

I am moderately fluent in Pascal, and I generally know what to change if something isn't working right. Compiling goes fine, however, when I try to run it from GM, it says "Error defining an external function." for both dll's.

I'm writing up the dll's in Dev Pascal 1.9.2. I've even tried changing Result to the function name (as this is normally a way to make a function return a value) but neither of those ways works. I've also tried going through the New Project DLL thing, and that just gives the same error.

Can anyone point me in the right direction, or at least point out where I've gone wrong? GM and Pascal are my 2 favorite languages, and to be able to combine them would just be amazing.

Thanks.
-IsmAvatar

Edited by IsmAvatar, 03 September 2005 - 03:40 AM.

  • 0

#47 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 03 September 2005 - 12:08 PM

Try not making 'addition' capitalized, I never do when I create DLLs with Pascal, and it works fine for me ::lmao::
  • 0

#48 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 03 September 2005 - 02:04 PM

thanks a bunch. That was it. I suggest modifying your post to note that.
  • 0

#49 Ado

Ado

    GMC Member

  • New Member
  • 22 posts

Posted 12 September 2005 - 12:15 PM

How can i make a dll with VB6? :)
  • 0

#50 tsg1zzn

tsg1zzn

    GMC Member

  • New Member
  • 1163 posts

Posted 12 September 2005 - 06:43 PM

How can i make a dll with VB6?  :)

<{POST_SNAPBACK}>

It won't work with Game Maker.
  • 0

#51 kamen

kamen

    GMC Member

  • New Member
  • 226 posts

Posted 16 September 2005 - 12:58 PM

wow thanks for the tutoial!
I took the c++ one and it seemed to work (I'm just barely learning c++)
-Kamen
  • 0

#52 Dox

Dox

    GMC Member

  • New Member
  • 2 posts

Posted 11 October 2005 - 12:16 PM

Hey roach of death man, thanks for this topic. About a year ago I stopped suing gamemaker and started down the lines of VB and C++ and languages like that but after I have a had trouble finding good working compilers or tutorials I thought back to gamemaker and how easy it was to use a learn so I came to the forum to see how things was and I look under a random section and here is this great topic :D

I am still going to stick with gamemaker but now that you showed me this I will be able to do some cooler stuff too.

Thanks
  • 0

#53 gamemaker intermediate

gamemaker intermediate

    GMC Member

  • New Member
  • 123 posts

Posted 18 October 2005 - 09:30 AM

when i compile it with dev-c++ i keep getting cpp files insted of a dll do you know what im doing wrong?
  • 0

#54 rpgfreak2004

rpgfreak2004

    GMC Member

  • New Member
  • 282 posts

Posted 30 October 2005 - 01:04 AM

I can't get it to work with dev-pascal..
I first get a windows message saying it's not a good Windows copy or something and then a GM error message saying "Error defining an external function.".
Does anyone know how I can do this correctly with dev-pascal?

EDIT
here is the dll and a sample gm6 file I've made to show u what I mean:
HERE

Edited by rpgfreak2004, 30 October 2005 - 01:13 AM.

  • 0

#55 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 30 October 2005 - 01:39 AM

rpgfreak2004, you apparently did not compile it, and I can tell without even looking at your test file. :P
  • 0

#56 pythonpoole

pythonpoole

    Scorpion Software

  • New Member
  • 1894 posts

Posted 30 October 2005 - 01:56 AM

Indeed it wasn't compiled..

A DLL is in machine code, I shouldn't be able to get this our of it:
library additionDLL;
uses Windows;
function addition(arg1,arg2:Real):Real;  stdcall;
begin
 Result := arg1+arg2;
end;
exports addition;
begin
end.

  • 0

#57 rpgfreak2004

rpgfreak2004

    GMC Member

  • New Member
  • 282 posts

Posted 30 October 2005 - 09:31 AM

how do I compile a dll in dev-pascal then?
EDIT
nvm, I worked it out, it works great thanks :P

Edited by rpgfreak2004, 30 October 2005 - 09:45 AM.

  • 0

#58 rpgfreak2004

rpgfreak2004

    GMC Member

  • New Member
  • 282 posts

Posted 30 October 2005 - 10:54 PM

nvm *cough*

Edited by rpgfreak2004, 30 October 2005 - 11:14 PM.

  • 0

#59 Eletron

Eletron

    789 Programmer

  • New Member
  • 282 posts

Posted 07 November 2005 - 11:41 PM

What are some Dev-C++ functions? All I have heard of is:

MessageBox(NULL,text,title,MB_OK)

I NEED THIS!!!!
  • 0

#60 tangibleLime

tangibleLime

    Lunatic

  • Global Moderators
  • 2520 posts
  • Version:GM:HTML5

Posted 08 November 2005 - 01:14 AM

DevC++ is just an IDE, it doesn't really have funtions like GameMaker.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users