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 / DLL to read from ini file?

Author
Message
Hayer
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 21st May 2007 15:11
Hi
Anyone got a DLL for DBPro that can read from .ini files,
and i can sell things where the DLL is included

So any?

Need webspace for your game?
Contact me at cpu1400@msn.com or msn (peder.husom@broadpark.no)!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st May 2007 20:01
Yep, have a search around my website and look for the Matrix1Data plug-in.

Hayer
18
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 22nd May 2007 13:13
Thanks found it

Possible you could share the source with the community to?

Need webspace for your game?
Contact me at cpu1400@msn.com or msn (peder.husom@broadpark.no)!
John Y
Synergy Editor Developer
21
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 22nd May 2007 13:54
I imagine all it is doing is converting DBP strings to LPSTR types, and then calling the GetProfileString etc API's. So, the source for that particular command is already freely available.

Get the new DarkBasic Professional IDE for only $19.99/~£9.85
Http://synergyide.thegamecreators.com
Http://www.digitalzenith.net
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd May 2007 15:35
Only at one level. It turns out that the Kernel based INI files are dead slow, so I also wrote a very basic interpreter that would read the INI file on opening and only write on closing.

I might consider releasing the source code - I'd need to make sure that it doesn't use my interface library though.

Xolatron
18
Years of Service
User Offline
Joined: 12th Mar 2006
Location: The Star Forge Language: DBpro
Posted: 9th Jun 2007 03:15
Looks nice IanM. I might switch to those in the future if the kernel32 calls get too slow (right now they just happen on startup and exit, so there's not much of a noticeable time drag).

I generally use the following functions to call kernel32.dll. Note that these require the loading of kernel32.dll as follows.

Enable (load kernel32.dll)


Functions:


Login to post a reply

Server time is: 2024-05-01 23:57:47
Your offset time is: 2024-05-01 23:57:47