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.

DarkBASIC Discussion / Visual C++ 6.0 Standard Dlls.....Not Working!!!

Author
Message
Akira Tsunami
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 9th Nov 2003 19:18
Why Isnt This working? I get "failed to execute Dll command" or something like that.
#include <stdio.h>
#include <windows.h>
#define MYCOMMAND __declspec ( dllexport )


int modify(int ptr){
unsigned char far* buffer = (unsigned char far*)ptr;
buffer[1]=255;
return 0;
}


Lead Programer & Project Leader Of TsunamiSoft
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Nov 2003 19:24
Change this line:

int modify(int ptr){

to this:

MYCOMMAND int modify(int ptr){
Akira Tsunami
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location:
Posted: 9th Nov 2003 21:20 Edited at: 9th Nov 2003 21:21
it still wont work
[quote]Dll Call Failed To Execute......
Btw,its DarkBASIC 1.13 Enhanced


Lead Programer & Project Leader Of TsunamiSoft

Login to post a reply

Server time is: 2025-05-21 16:52:24
Your offset time is: 2025-05-21 16:52:24