Using DLLs

Post your coding questions such as 'how to' here.
Post Reply
Mr. O
Newcomer
Posts: 32
Joined: Thu Nov 15, 2007 4:10 am
Location: United States

Using DLLs

Post by Mr. O »

I dont know how to write dlls in c++ for CoolBasic. Can anyone help me write them and teach me how to use them?

Thanks in advance!
Mr. O
Mr. O
Newcomer
Posts: 32
Joined: Thu Nov 15, 2007 4:10 am
Location: United States

Re: Using DLLs

Post by Mr. O »

I will rephrase the question. I have some c++ experence. Can I use a regular dll written in c++ for a c++ program in a coolbasic program?

Hope this clarifies what I am asking!

Thanks in advance!

Mr. O
User avatar
Ilmuri
Developer
Developer
Posts: 277
Joined: Sun Aug 26, 2007 2:46 pm
Location: \o

Re: Using DLLs

Post by Ilmuri »

CB calls the dll's functions with these fixed parameters: (pointer to in-memblock, size of in-memblock, pointer to out-memblock, size of out-memblock). Return value of the function seems to be discarded.
CoolBasic henkilökuntaa
Kehittäjä
CoolBasic Classic
Mr. O
Newcomer
Posts: 32
Joined: Thu Nov 15, 2007 4:10 am
Location: United States

Re: Using DLLs

Post by Mr. O »

So you are saying I cant pass ANY vars from a dll? None whatsoever?
User avatar
Ilmuri
Developer
Developer
Posts: 277
Joined: Sun Aug 26, 2007 2:46 pm
Location: \o

Re: Using DLLs

Post by Ilmuri »

You do get the pointers to the in- and out-memblocks..
CoolBasic henkilökuntaa
Kehittäjä
CoolBasic Classic
Post Reply