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 / Creating ActiveX controls

Author
Message
eddie5659
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 27th Nov 2004 21:49
Hiya

Me and a mate are thinking of creating a website, well my mate mostly, but he wants me to check that everying is secure.

Anyway, he's creating an ActiveX control in Dark Basic, to enable the 'games' to work. How secure is DBasic on the web, ease of use programming the controls, and will I be able to enter the activeX into his compiler (if he uses one), so that I can check for faults or holes?

I've had a brief look at this main site, and I can hardly see anything that mentions creating games online. The site he's wishing to create is a sort of gambling site, with a horserace to start off with.

He's building a client, and then he says he'ss creat an ActiveX control, that will talk to the client and the user. As I searched last night, the majority of ActiveX controls that are embedded in the web, are created using Visual Basic.

Anyway, as I say, its him thats doing it, but if it can't be done, I'd like to let him down gently

But, if it can, then I'll have to start to learn to program, so I can spot any flaws on it.

Thanks in advance for any replies

eddie
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 3rd Dec 2004 04:40
Indeed, the majority of ActiveX controls are created in Visual Basic, but C and C++ are useful also.

As for creating an ActiveX control in DarkBasic... well... umm... how do i put this?...

DarkBasic is a language for creating GAMES in. Not internet-based (e.g., JavaScript, whatever), but stuff that sits as an EXE and runs on Win32. More games that are intended for CDs, or downloading locally first.

The only type of library that DarkBasic can create is a Statically Linked Library.

For example, say you had the following code in a file called my_function.dba (DBA is the file format that DarkBasic uses):

function Make_A_Cube()
make object cube 1, 100.0
endfunction

If you wanted to make a game as an EXE that consisted of hitting the key once (just slightly simplified examples here (note sarcasm )), you could have this in a file called main.dba or something:

#include "my_function.dba"

Make_A_Cube()
wait key
end

I think that about sums it up.

eddie5659
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 5th Dec 2004 23:04 Edited at: 8th Dec 2004 04:29
Thanks for explaining the process of DBasic, Blanky

I've spoken to him, and he's 95% certain you can do this. Of course, you've probably been doing it longer than he has, but he's pretty certain.
Anyway, I showed him this link, and he says nope, still can be done. He's creating a client program, and then the ActiveX which will be installed as a plugin.

I mentioned to him that it'll only allow exe's (is that what you meant?), and he said that they'll download that. With all the problems associated with downloading exe's from unknown sites (I'm a moderator in tech support sites online), many aren't going to download it to their pc's.

Still, we're getting together on Friday, so will let you know the outcome

Many thanks

eddie

Login to post a reply

Server time is: 2025-05-24 16:53:12
Your offset time is: 2025-05-24 16:53:12