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.

Author
Message
Akira Tsunami
22
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Oct 2003 07:30
I was wondering if it was posible to use MASM32 dlls in DarkBASIC Pro?? Im better at assembly than C...unfortunatly...Oh well.
So what you think,I could Use .Model Medium,C?

Be All You Can Be,Be Evil(TM),Hate Microsoft And Support Linux
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Oct 2003 08:01
depends... probably are but never tried.

DrakeX
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 10th Oct 2003 09:14
i don't see why not. as long as you use whatever calling conventions DBP likes and you don't use any COM... psh, probably should.

stop looking at me!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Oct 2003 09:59
You should be able to get MASM to work if you use the flat memory model
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th Oct 2003 11:20
Or create your DLL within Visual C++ and instead of writing the code in C, write it in assembler? (good luck).

Cheers,

Rich

The sky above the port was the colour of television, tuned to a dead channel.
Your brain's just like any other appliance: it works better if you plug it in...
Akira Tsunami
22
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 10th Oct 2003 19:50
Ok,Its working,ive got a MSGBOX & A splash sceen going!
I Used A Flat Model,With a C Model,It was kool
I have Bloodshed Dev C++,that seems to work equally as well :0
also,PowerBASIC,its my favorite,I can do assembly in it

Be All You Can Be,Be Evil(TM),Hate Microsoft And Support Linux
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 10th Oct 2003 21:43
Assembler is SO over-rated

The sky above the port was the colour of television, tuned to a dead channel.
Your brain's just like any other appliance: it works better if you plug it in...
Akira Tsunami
22
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 11th Oct 2003 07:27
Indeed,I Really see the same Speed in C++,So Im droping Assembly to code some C++....(GF is away,so i have time to do some real work,lol)
anyways,If ur using an assembly optimized high level language,you get thet same effect,the code just may be a little bigger,buti dont care

Be All You Can Be,Be Evil(TM),Hate Microsoft And Support Linux
MushroomHead
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Oct 2003 16:43 Edited at: 11th Oct 2003 23:37
If you code in asm / powerbasic, you will notice not much difference in speed between the PB / ASM code. In one instance, I managed to shave off 1 sec off a routine using ASM, made me wonder what was the point in putting all that effort just for that piece of code ... powerbasic is programmed in hand optimised assembler and fast enough anyways, ASM is not even necessary unless you're planning to run your code on old 486's
Akira Tsunami
22
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 13th Oct 2003 05:56
exactly :p ill stick with powerBASIC

Be All You Can Be,Be Evil(TM),Hate Microsoft And Support Linux

Login to post a reply

Server time is: 2026-07-26 04:25:02
Your offset time is: 2026-07-26 04:25:02