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 Professional Discussion / DarkBasic DLL Development

Author
Message
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 13:05
its kinda hard coding when you can't test things to know if they work

Windows Version Checker
this is something for KG, which i've sent to him but i dont' want to be waiting all day for and answer - and i certainly just wanna get this out of the was asap cause it something simple.

just lemme know it it works properly cause i've not written a DLL for DB in like a year.
and even then it didn't like it

so a bunch of people just like download it and lemme know
a) if it works
b) if its actually giving the right feedback

hope KG doesn't mind but i figured cause this is the most remote thing from his project it's oki
Anata aru kowagaru no watashi! http://members.lycos.co.uk/timesaga/darkbasic/gir.gif[/img]
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jan 2003 14:11
If it's a TPC DLL, then it won't work. You haven't set up the string resource. Beyond that I can't tell.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 14:18
did you actually test it?
seems stupid to give an SDK for something that currently isn't in place to test

i'm not sure how to pass the data arguments, so i was hoping if i could atleast get this simple setup working then i can go on to setup the whole version checker.

but seems kinda pointless if i can't test for some reason

Anata aru kowagaru no watashi!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Jan 2003 14:46
Tested and failed with the following compiler message:

#100001: Could not determine parameter type of 'get windows version()' at line 1.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 15:11
I hate to point this out, but I've already done a plug-in for Windows version...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 24th Jan 2003 15:22
Toady has already done a plugin for everything, from Window handles to my breadmaker

NOBODY has a forum name as stupid as Darth Shader. I do.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 15:33
And hows your breakmaker ?!

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 15:35
With VS, you have to remember to include resources (especially string ones). Oh, and its very easy to overwrite the wrong string tables...

Raven - have you ready the SDK documentation ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 15:36
I meant have you read the SDK documentation...

I'll be glad when you can edit posts...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 16:44
yup... i read it all and included everything i needed to
this is why i absolutly hatenot being able to test on my own system, i've been sitting about waiting for an answer for like 4hours
feel like i'm wasting my bloody day.

i've not seen your windows version checker,
i'm basically exporting into DarkBasicPro the entire build information e.g. mine should return 5.10.2660.SP2 once i'm finished.
however i might rewrite several of these in smaller functions just to return each component individually.

i've got a few things KG asked me for - i'm simply running down the list, if you have it then i'm sure he'd be happy to use it.
Next on the list isn't as much fun, and number 6 is gonna be a nightmare cause obviously Raven loves playing with assembly
I think what i'm gonna do for 6 is give him software hardware access to it ... because it does really bug me it isn't in rasterisation right now - i hardly see a difference between simple setups in software mode.

but perhaps thats comming in patch5
now if i could be any more cryptic about it then i'm sure i can try hehee.
I'm sure KG understand what i'm on about - and i know for a fact no one here has got the hang of them yet, and avoid them like the plauge would be a fair assesment

Anata aru kowagaru no watashi!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 24th Jan 2003 16:53
lol No offense Toad I wasn't ignoring your famous plugins, I was asking Raven a batch of questions all at once. I actually tried your program first but got an error about calloc and plus I don't like using 'include' - just a preferance, nothing against your plugin, which I am sure I could get to work if I fiddled for a while, I'm just unfortunately under serious pressure to finish this project quickly.

Raven I'm afraid it doesn't work, I used the line

'winver = get windows version()'

but get a "#100001: Could not determine parameter type of 'get windows version' at line 1" Error - am I using it wrong? Sorry I've emailed this to you too

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 17:28
Thats okay Kangy - what error did you get with calloc by the way ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 24th Jan 2003 18:12
"And hows your breakmaker ?!"

Working perfectly thank-you. The MAKE BREAD FROM DOUGH command produces perfect results.

NOBODY has a forum name as stupid as Darth Shader. I do.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 19:02
yup solved the problem with that now (i hope)
and all new problems arrise ... don't we all LOVE C++

actually my current problem is that it keeps bitchin' at the way i'm storing the strings.
this is actually quite ridiculous, theres me and Mofux both trying to get the code to work and yet it refuses.

anyone god any ideas how i can basically add 4 dword values into a single string with .?
i mean i tried using the << for it and the sprintf - both came up with declaration errors ...
the << with a missing ; before it
and sprintf wasn't valid

its annoying... i mean i suppose i could return each as seperate values but would be kinda wasteful no?

Anata aru kowagaru no watashi!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 19:17
oki i've tried something unique and i have every confidence its going to fail

but it was worth a try... and if it works, then... erm i ment to do that

1.0.3.alpha

Anata aru kowagaru no watashi!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 19:31
The good news is the DLL compiles.
The bad news is nothing is displayed.



Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 24th Jan 2003 19:32
Toad - just using "screenres=GET SYSTEM VERSION (ptr)" crashes on compile, bringup no error, just the standard xp crash box - If I use your example code it brings up 100006 and says 'variable calloc does not exist in program' - Maybe I need another of your plug-ins? Anyway to make you feel more loved, there are 2 dll questions posted by me under a new thread, you can come and stun me with your knowledge

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 19:33
Any chance of letting us see the code ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 19:46
Kangaroo - Have you download the latest version of Memory (in order to read the string properly) ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 24th Jan 2003 19:47
I'll amend my site to make sure your informed about what else is needed to run the examples.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 20:02
... firstly ... YAY
... secondly ... thats kinda what i figured

but was worth a shot
atleast its now working so i know the template for it which is cool - i can't believe i've spent all bloody day on just a version grabber DLL ... but as you can see from the test versions why i don't simply relase the first viable software i make

i'll work on this some more once i've had a nap - should freshen my mind as its just blank ... and someone post up a site with Basic C++ stuff cause i have a feelin i need it.

oh delcaring a whole structure for vertex shader'd particles, that simple - combining bloody numbers into a DB style sting, thats what has me stumped.
Somedays i wish my brain worked more logically

Anata aru kowagaru no watashi!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 24th Jan 2003 20:17
lol thanks for your efforts Vegeta, its appreciated

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 25th Jan 2003 19:55
its amazing how much time i'm wasting here ... i know that Toads function probably works and you'll probably end up using that over mine, but now its personal

i'm gonna get this bastard to word i swear!!
for some reason this code ->


has too many initilisers
(^_^) msn is playing up so i can't ask mofux again ... and i asked in a C++ forum, but the answers they gave me confused me,
then my computer cryed,
then i cryed,
then Mike laughed ... he's so cruel (hehee)

Anata aru kowagaru no watashi!
ShockFire
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: United Kingdom
Posted: 25th Jan 2003 20:05
lol, did your computer physically cry? kewl, im guessing thats a new feature in the new Pentium 4 3.04ghz (*drool*).
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Jan 2003 20:17
Close. Try this.

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 25th Jan 2003 20:58
C:\Development Source\DarkBasic Professional\WinOSVer\WinOSVer.cpp(37) : error C2440: 'return' : cannot convert from 'int (__cdecl *)(char *,const char *,...)' to 'unsigned long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.

this is exactly why i didn't use sprintf yesterday
maybe Visual C++ 6.0 is just being bitchy

Anata aru kowagaru no watashi!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 25th Jan 2003 21:13
Thanks for your work Vegeta If it does prove to much of a head ache just concentrate on the other questions I asked and I'll use Toads... BUT if you can get it working I'll use yours cos I appreciate all the hard work Thanks a lot man

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 25th Jan 2003 21:19
i'm an idiot

anyways a new dll to test

1.0.8.beta

Anata aru kowagaru no watashi!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 25th Jan 2003 23:12
That doesn't work either but Vegeta and I are going over testing in Yahoo 4 the minute

Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Jan 2003 00:23
oh oh oh ... a WORKING VERSION!!!
1.1.5.Retail
different setup but still cool

Anata aru kowagaru no watashi!
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 26th Jan 2003 00:44
ah - its the version of a program your doing - something I havent done (yet). OSVersion is for getting the, well, OS Version.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 26th Jan 2003 00:54
... somehow i feel insulted but i'm not sure how ...
hehee - i told you i was gonna make this work
was a personal vendetta i had again C++ to get it working

Anata aru kowagaru no watashi!
Kangaroo2
22
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 26th Jan 2003 01:18
Yep thanks Raven this works really well. Thanks for your input too Toad

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 26th Jan 2003 02:11
Thats okay...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-19 06:51:36
Your offset time is: 2025-05-19 06:51:36