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 / Loading objects and memblocks from a DLL

Author
Message
MoomanFL
18
Years of Service
User Offline
Joined: 12th Nov 2005
Location:
Posted: 1st Dec 2007 05:04
I have been working with VB.NET and C# and one of the DLL converters for making plugins.

Was wondering if there is a way to load directly into the object array or memblock array from a DLL.

The idea I had was this:

You can send objects, images, and sound to memblocks... and memblocks can be read one byte at a time... so it should be relatively small work for someone with experience pak file type formats to make a custom format that can store these types of object in a custom pak file.

These could already be used in DBPro via plugin DLL that can read the format and send the file data to DBPro which you could then load into a memblock and then back into the appropriate type of file... all without having to unpack the file to disk. You can see the advantage to people that don't want to have their resources that they have worked hard on stolen by anyone.

The problem is, while it can be done this way, you would still need extra DBPro code simply to load it into the memblock. This is slow. It would be a lot faster if the plugin DLL could just output the memblock directly with a command like:



The first parameter would be the internal name of the resource in the pak file, the second is the filename of the pak file, and the third is the memblock to load it into.

Even easier would be:



I would be perfectly happy with the first way however.

The question is, how would I either create (best case) or access and already created (second choice) memblock from within my plugin DLL?

Design documents?!? What design documents??? I thought we were just going to wing it!!!

Login to post a reply

Server time is: 2024-05-04 01:21:46
Your offset time is: 2024-05-04 01:21:46