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.

DLL Talk / WickedX Plug-In

Author
Message
WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 1st Mar 2015 23:55 Edited at: 25th Mar 2015 03:24
WickedX Functions Plug-In
with DirectX Device Recovery


This is one of a handful of projects I have been working on. Some functions are subject for deletion, particularly the memory functions as I really don’t see the need. I have a intensive list of additional functions in mind. But, to be honest if there’s no interest I see no point in continuing. If you are interested I welcome your input. If you have a function you would like to see added or have an issue with any function, I would like to hear from you. Included are several source demo's that demonstrate various functions.

List of functions from the WXFunc.ini file.
+ Code Snippet

Request: If anyone would like to write the HTML help document for this plug-in, please contact me. I would also appreciate if you can test the Device Lost demo. I have ran this in windowed, fullscreen windowed and exclusive fullscreen modes and also in a maximized window with flawless recovery on my Windows 7 system. Here is the include file for the Device Lost demo. I have made this specific to the demo but, it can easily be generalized and the functions added in the plug-in.

DXControl.dba
+ Code Snippet

Attachments

Login to view attachments
Manson_NS
13
Years of Service
User Offline
Joined: 4th May 2004
Location: Denmark
Posted: 7th Mar 2015 22:28
Can you put a word or two in as to what you want your Plug-In to be about?
It seems a little sporadic?
Anyway, I have a load of functions written up in DB Pro that would be nice to have converted into a plug-in. It's mostly calls to the windows user32, kernel32.dll, gdi32.dll - functions, etc.

An example of what would be nice is a new set of commands for working with the windows clipboard. The build in commands are flawed. (They crash if no input device is detected - ie touchscreen-tablet)

If this is up your alley, I have quite an assortment of wrapping calls mapped out, which should be fairly easy to adapt.
Duffer
14
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 8th Mar 2015 10:28
@ WickedX - great to see someone else still writing plugins for DBPro!

As Manson says, what were you aiming at with this?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Green Gandalf
12
Years of Service
User Offline
Joined: 3rd Jan 2005
Location: Cornwall UK
Posted: 11th Mar 2015 15:52
Several of the functions seem to be ones that are provided by DBPro anyway. What are the advantages of yours?

Have I misunderstood what you are trying to do?



Powered by Free Banners
WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 27th Mar 2015 01:43
This was intended just to be better optimized and random additional functions. It seems to me everyone is waiting on an update that will never happen. This mentality that something outdated is useless is something we need to change. To be honest I knew DBPro was over back in 2010 when TGC released the source code on Google. This is just my opinion but I have a feeling they’re not updating DBPro for GameGuru but hacking the hell out of it. I think I’ll pass.

There is an error in DBPro’s Circle and Ellipse functions. These functions do not check the internal flag to find out if the backbuffer or current bitmap is locked by using Lock Pixels and locks the surface every time these functions are called regardless. The DirectX function to lock a surface is notoriously slow in itself. Since to my knowledge this flag is not accessible to a Third Party Plug-In, I added Lock Pixel Data and Unlock Pixel Data to my plug-in to work with my Basic2D functions. Dot2 is really no different from the built-in Dot function. The Circle and Ellipse functions can now be optimized if drawing a lot of them by using my functions between Lock Pixel Data and Unlock Pixel Data. The Circle, Ellipse and Box functions have a filled or unfilled parameter. The built-in Line and Box functions use DirectX functions, mine draws directly to the surface thus making them faster and they can be optimized further using Lock Pixel Data and Unlock Pixel Data.

Load DBO Object and Save DBO Object saves and loads the DBO object with positional and rotational data. Any other identical functions were open for change.
WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 3rd Apr 2015 10:35
Well, I apologize for the rant.

@Manson_NS

I just purchased a Windows 8 tablet myself. I would be glad to wrap your functions in to a plug-in. I already found the need for a Mouse Exist function.
MrValentine
AGK Backer
6
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 19th May 2015 08:51
Yeah the No Device Input is a bit tricky... but can be alleviated by simply having a Bluetooth keyboard paired, but not active... I did not thoroughly test this, but it appeared to be the case... but you cannot expect users to have a Bluetooth keyboard lol let alone Bluetooth capable/enabled hardware...

That can be alleviated by having a hardware requirement of Mouse/Keyboard on your product listing however... You will find some apps on the Windows 8 store have these...

WickedX Mugs up to you and I hope I can join you in the DLL field for DBPro... alas nobody ever seams to share the process but I will endeavour to work it out eventually as I delve further into the C Like world of languages...

Quote: "Request: If anyone would like to write the HTML help document for this plug-in, please contact me. "


Willing, but Write or lay-out/design? message me here or PM, but inform me here lmao or email...

WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 19th May 2015 22:37
Thanks, MrValentine. I really appreciate the offer. But, I don’t think I’ll be continuing with this project. I have attached the complete Visual C++ 2008 project with a 144 page C++ tutorial for anyone interested in learning C++ and the DBPro Plug-In process. I’ll be happy to answer any questions you may have.

Attachments

Login to view attachments
MrValentine
AGK Backer
6
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 20th May 2015 19:01 Edited at: 20th May 2015 19:03
Thanks! I cannot run the project but might look at the source code and compare it to the small tutorial I have to see if I can work something out in future, I think I might add that post to a list of useful posts in my upcoming app

[if you are seeing this because you clicked the link to the post above in my app, Hello ]

EDIT

Hopefully I can have your permission to also host up that file as well?

WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 21st May 2015 03:25 Edited at: 21st May 2015 03:28
Permission granted. I used IanM’s Guide To Writing Plug-ins as a template for the design.
MrValentine
AGK Backer
6
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 21st May 2015 03:55


Good to know

I took a look at some of the cpp files in your pack, and some of it made sense... I guess that is a good thing, also Decorated names right?

WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 21st May 2015 04:40
Here is a link to the Visual Studio Express 2008 cd image directly from Microsoft.
http://download.microsoft.com/download/8/B/5/8B5804AD-4990-40D0-A6AA-CE894CBBB3DC/VS2008ExpressENUX1397868.iso

That's right, the exported function names in the created dll are decorated. Yes, if you can follow any of it, that's a good thing. Looks like you'll be programming DBPro Plug-Ins in no time.

Login to post a reply

Server time is: 2017-06-25 09:52:45
Your offset time is: 2017-06-25 09:52:45