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 / help c++

Author
Message
Vai mamar na pila
19
Years of Service
User Offline
Joined: 10th Nov 2004
Location: Behind Your Behind
Posted: 9th Mar 2005 20:51
hi, i have a specific c++ lybrary that has soem functions over sound stuff, for importing and playing a specific sound format, my problem is, how do i convert this functions to a dll that works with darkbasic pro, im using vc++, any code example would be of great help, i would higly apreciate your help, and if u need help on any 3d or texturing stuff for your projects i can help if you teach me how to do this, than you

sig removed due to obscene content
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 10th Mar 2005 01:46
first of all if you email it me i would try and do it for you

second is that it might be difficult, ie you might have to re-write everything in functions to work

anyways here is an example

exe code


dll code


Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2
Vai mamar na pila
19
Years of Service
User Offline
Joined: 10th Nov 2004
Location: Behind Your Behind
Posted: 10th Mar 2005 02:21
hmmmm, where can i find info on this subject ?

sig removed due to obscene content
Vai mamar na pila
19
Years of Service
User Offline
Joined: 10th Nov 2004
Location: Behind Your Behind
Posted: 10th Mar 2005 03:00
hmmm, i know a bit more about dlls now,

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)

this part inst coded by you, its generic on a dll,

this is your function defenition:
__declspec(dllexport) void mymessage()
this is your function:
{
messagebox(...)
}


hmmm, nice, but what type of dll is this one ? dynamic link right ?

ive seen soem other types, mfc, win32, static ll, wich ones does darkbasic supports ?

also, is it possible to do a dll to import my own 3d model file? but then how would i display it ?, loading is easy, just have to a specific structure that contains vertex coordinates , texture data, normals,etc

but then how to display it ?

and if possible, is it hard, to i to add functions from dirctx9 sdk ? like yfog ? that would be great to have control on fog from the y axis.

sig removed due to obscene content
IanG
19
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 11th Mar 2005 02:19
dbpro usese dynamic linked librariers(dll), static are(lib) and are supported by c++/c and mfc means that you can use the mfc wrapper for the win api

Used to be Phoenix_insane registered in september 2003 despite what the date says to the left <--
PC - amd athlon 2.0ghz, 512mb, GeForce FX 5200 128mb, 200gb, xp pro sp2

Login to post a reply

Server time is: 2024-04-19 23:56:42
Your offset time is: 2024-04-19 23:56:42