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.

Program Announcements / DBP_NETLIB - Plugin for Dark Basic - UPDATE

Author
Message
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th May 2004 04:46
thanks



* DBP_NETLIB_v1.1 - VB.NET PLUGIN FOR DBP * Click Logo
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th May 2004 19:58
Nice work CR

lol, just looking at your date functionc, they're almost identical to my DBPTime plugin I wrote a few months ago.

Two strings walk into a bar. I'll have a pint says the first$%ASLDJ09920D"$"$D. Excuse my friend says the second, he isn't null terminated.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th May 2004 21:00
thanks DT.
Yeah, I assume there will be some overlap in our plugin with other plugins as I don't have or use any plugins with dbp. I just kinda started writing ours from the "what I would like to see" point of view. The stuff we are currently working on, or should I say, the stuff we are currently trying to get working () should be pretty cool and original - hopefully


* DBP_NETLIB_v1.1 - VB.NET PLUGIN FOR DBP * Click Logo
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 26th May 2004 16:35
I keep running into that bloody 'global declaration' issue though. Grrr!


"Computers are useless they can only give you answers."
TheOneRing
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 26th May 2004 18:32
You mean like I mentioned above?
Quote: " You cannot, however, decalare a .NET managed type as a global variable in VC++... major let-down."


If so, then you are nearing the feeling of the utter disappointment I felt when I discovered that managed types cannot be declared as global variables. Uggg....

Visit http://www.mighty-atom.com/d-zone for the Transform-i scripting engine project.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 26th May 2004 18:53



* DBP_NETLIB_v1.1 - VB.NET PLUGIN FOR DBP * Click Logo
harggood
21
Years of Service
User Offline
Joined: 9th Apr 2003
Location: the forest
Posted: 26th May 2004 22:42
We believe in you.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 27th May 2004 09:35
Quote: "If so, then you are nearing the feeling of the utter disappointment I felt when I discovered that managed types cannot be declared as global variables. Uggg...."


That's the one. Managed __GC types (and classes) force any instances to be __GC pointers which cannot be declared as global as we all know. It's a total pain in the ass if you ask me. Formerly I was just creating a totally new instance of the DLL in each function but now I need a global one (both for speed and other reasons). Gah!


"Computers are useless they can only give you answers."
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 28th May 2004 13:03 Edited at: 28th May 2004 13:04
TheOneRing, in case you were wondering, the solution to the problem just mentioned is to use Gcroot to wrap the pointer and use it as an unmanaged type. This is quite easy to do. Just:

#include <vcclr.h>

And

gcroot<ClassOrType*> pName;

Then you can use it as any ordinary pointer:

pName->CallFunction();

It can also be declared globally or inside classes so it should work (it does for me). Hope you can get it working for you too.


"Computers are useless they can only give you answers."
TheOneRing
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 28th May 2004 18:16
Awesome! I'm still a little new with .NET as you might have guessed. I looked for a way to do what you described, but I couldn't find it... I'll have to give that a go in a little while. If that works, it means I can use the .NET classes for my newest plugin. Slick!

Visit http://www.mighty-atom.com/d-zone for the Transform-i scripting engine project.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 28th May 2004 22:32
Indeed



* DBP_NETLIB_v1.1 - VB.NET PLUGIN FOR DBP * Click Logo
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th May 2004 02:57
NEW, OFFICIAL THREAD, IN THIS FORUM...

thanks


* DBP_NETLIB_v1.2 - NOW WITH VARIABLE WATCHER! * Click Logo
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 29th May 2004 03:02
TheOneRing, I also forgot to mention after defining your class with:

gcroot<ClassOrType*> pName;

You then have to create a new instance of it, this cannot be done globally so is much better done in DBP's DLL constructor code. All you have to do is:

pName = new ClassOrType();


"Computers are useless they can only give you answers."
TheOneRing
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 29th May 2004 04:02
Is there something I'm missing? Check these messages out...

Quote: "
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(48): warning C4935: assembly access specifier modified from 'public'
"


Quote: "
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(93): error C2872: 'IServiceProvider' : ambiguous symbol
"


Never heard of them...

Visit http://www.mighty-atom.com/d-zone for the Transform-i scripting engine project.
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 29th May 2004 07:13 Edited at: 29th May 2004 07:17
I had a lot of trouble with that as well, I've emailed you a new version of ServProv.h and Urlmon.h, they're used internally by VC++ but there is ambiguity causing the error so I've fixed both files so they should work. Simply place them in your poject directory with all your other includes and add them to your project.

After doing that you'll probably get a couple new errors that I'll have to see and tell you how to fix. A lot of project settings have to be changed to get the DLL to work right, it's a bloody pain but once you know what to change it's easy.

Oh yes, and in Visual Studio open up the 'Tools > Options' menu and go to the 'Projects > VC++ Directories' screen. Change the drop down box in the top right corner of this screen to 'Include files' and make sure the list has a entry that says "$(ProjectDir)" at the very top of the list, if there's no entry then add it in. If it's down the bottom then just keep pressing the up arrow so it's at the top. This means it will use the header files I gave you before the ones in the Visual Studio directory.


"Computers are useless they can only give you answers."
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 23rd Jun 2004 01:00
I'm curious, how's work going on this plugin currently? What're the future plans for it?
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 23rd Jun 2004 02:10
this is the current thread:

http://darkbasicpro.thegamecreators.com/?m=forum_view&t=32361&b=5&p=1


* DBP_NETLIB_v1.4 - w/VARIABLE WATCHER & CONSOLE! * Click Logo

Login to post a reply

Server time is: 2024-11-24 15:05:21
Your offset time is: 2024-11-24 15:05:21