Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246

    What do i need to create a simple DLL for AMS?

    Hello guys
    i would like to be able to learn how to create a simple dll and since i dont have Vb i would like to know what i could use to create a simple dll and how a simple dll would be created,
    the reson i would like some help with this is so that i can start to make my own dlls for AMS,

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    VB would be a bad choice in that it requires runtime files. If you want to be serious about developing for AMS, C++ is the #1 way to do it. The SDK on the forums is geared toward MS Visual C++.

    However, I've been creating DLLs for AMS since version 4, and I've used different platforms to do so: PowerBasic (very VB like), and PureBasic are my favorite "fun" platforms. You didn't ask, but I'd stear you toward PureBasic. It's relatively inexpensive, a little quirky in syntax, but fairly powerful. The only thing I would suggest you do is read the license agreement carefully especially when it comes to wrapping PureBasic commands for a DLL.

  3. #3
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Hi worm, do u mind sending me a simple PureBasic (*.pb/*pbi/*.pbv) Project ?
    TIA

    Mina

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Not at all. I'll dig one up when I get home and post it here.

  5. #5
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Thanks Worm, ive tried out some of your plugins and that is really the reason i got inspired to create my own dlls , i am checking out the suggestions that you provided me with, and PureBasic sounds interesting, fairly good priced,
    i allso understand now that Vb dont use standar dlls and but active X dll, so that would make it pretty difficult to create a dll for use with AMS if i understand it correctly,
    thanks again! Worm il check and read more about these choices and see what fits me best

  6. #6
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    I am dowloading the demo for Purebasic at the moment, great idea to post the sample here Worm,
    thanks

  7. #7
    Join Date
    Jan 2000
    Posts
    2,002
    I wrote an article here:

    Making a Lua 5.0 Extension DLL with lcc-win32

    That shows how to make a Lua extension DLL using the free lcc-win32 C/C++ compiler. If you know your C, this is a free and relatively easy way to do it.

    I also wrote an article a while back about how to make a simple DLL using Visual C++ 6.0:

    How to Create a Simple Win32 DLL

  8. #8
    Join Date
    Apr 2005
    Location
    In Wonderworld
    Posts
    246
    Thanks for these Brett, Il have a look at them

  9. #9
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Worm turned me onto PureBasic and now they about to release (beat 6 is going on now, or it was as of last night) PB 4.0. The syntax is a bit different, so if you are looking to work with PB seriously I would delve right into PB 4.x. Plus, you get free lifetime updates when you buy from their Website.

    There are lots of librarys, plugins for such as well. Some are more reliable than others, remember, most are free.

    Check out not only PB's Website but http://purearea.net/pb/english/index.htm (amongst others).

    I do wish their forums were easy to search. It seems to be a bit tricky to get the right search you need, even if using boolean operatives,etc.

    But, there is a good crew there as well of diehards that are willing to share some code.



    ps. I still use AMS for my primary application design environment. When I think R.A.D. (Rapid Application Design), I have always for two years now thought first of AMS!
    Last edited by Intrigued; 03-10-2006 at 03:24 PM.
    Intrigued

  10. #10
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    PureBasic is cool .
    I made a winamp dll with it one time.

  11. #11
    Join Date
    May 2005
    Posts
    1,115
    Quote Originally Posted by Intrigued
    ps. I still use AMS for my primary application design environment. When I think R.A.D. (Rapid Application Design), I have always for two years now thought first of AMS!
    I heard Clarion 6 is also good at this.. not as nice as APMS, but it
    very good for database related applications, such as accounting...
    Never know what life is gonna throw at you.
    (Based on a true story.)

  12. #12
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Okay, better late than never right? I lost a lot of code in a HD crash a while back and I can't find a thing anymore.

    Anyhow. This is as simple as it gets. This DLL accepts 3 parameters: 2 numbers, and a string. This should show you how to pass the variable types that you can pass from AMS.

    PureBasic Code
    Code:
    ProcedureDLL.s AddNumbers(Number1.l, Number2.l, UserPrompt.s)
      sOut.s = UserPrompt
      Sum.l = Number1 + Number2
      ProcedureReturn UserPrompt + " " + Str(Sum)
    EndProcedure
    Attached Files

  13. #13
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    I lost a lot of code in a HD crash a while back and I can't find a thing anymore.
    YOWCH!

  14. #14
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    yeah, plumbers faucet drips scenario

  15. #15
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Man I feel for you. I got lucky. I was playing fast and loose with my data for a few years and got away with it. Now I back up though. This Iomega external firewire drive is the best investment I ever made. Cheap, reliable, and surprisingly fast. Handy too, you can unplug it and take it with you.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Official Release Of SetMask DLL
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 23
    Last Post: 01-24-2005, 09:00 PM
  2. DLL to create GUIDS
    By Stefan_M in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 08-31-2004, 01:11 PM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. HOWTO: Create Nested Shortcuts in the Start Menu
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-24-2002, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts