Search found 354 matches

by TheMG
Mar 01, 2006 13:42
Forum: General
Topic: Could FreeBASIC replace C
Replies: 92
Views: 23184

Erm would you kindly explain you insanity? lol ASM is a language, it has words, syntax and ways of expressing values. Its fastest, smallest, portablest etc. Its even easy to understand (but not to write). Java is not a contentder to replace VBScript. LOL. It is one of the most unportable languages e...
by TheMG
Mar 01, 2006 13:21
Forum: General
Topic: Could FreeBASIC replace C
Replies: 92
Views: 23184

The most powerful language doesnt have to be popular.
by TheMG
Mar 01, 2006 12:58
Forum: General
Topic: Could FreeBASIC replace C
Replies: 92
Views: 23184

C was never the top language, and neither was C++. The top language is ASM. FreeBASIC could quite easily replace them both (C/++).
by TheMG
Mar 01, 2006 9:28
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

So do I just set the function as ZString Pointer Export, ye? And then I use it as normal? EDIT I have this: Function SayHello Cdecl Alias "SayHello" () As ZString Pointer Export Dim RV as ZString*5 = "Hello" Return @RV End Function But it says my assignment of "Hello" t...
by TheMG
Mar 01, 2006 9:21
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

Ahh yes that is a problem I am having. I have to use ZSTRING, but then it says it cant export fixed length strings. How can we fix this?
by TheMG
Feb 28, 2006 17:07
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

Well first I just left it out, but what do I call it as? Becuase I can call as stdcall or cdecl. When i replace both with stdcall it dont work.
by TheMG
Feb 28, 2006 17:01
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

Well it works, but numbers/strings it returns are all scrambled.

Code: Select all

Function HelloWorld Cdecl Alias "HelloWorld" () As String Export
    
    Return "Hello World"
    
End Function
But the return is all scrambled when run?!
by TheMG
Feb 28, 2006 11:47
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

Are you sure? Ill show you my code: Add.bas #Include once "Add.bi" Function AddIt(N1 as double, N2 as double) as double export Return N1+N2 End Function Add.bi Declare Function AddIt Alias "AddIt" (N1 as double, N2 as double) as double Is that all right? EDIT It compiles fine, bu...
by TheMG
Feb 27, 2006 17:08
Forum: General
Topic: Making a DLL
Replies: 29
Views: 4565

Making a DLL

Is there anything special I have to do to a code for it to work as a DLL? (Other than the -dll command line). If you specifically know how to make it work for a thing called Gamemaker then thatd help!