Page 1 of 1

"Solved" ( tried to displaysprite in a dll.. )

Posted: Wed Aug 06, 2008 3:47 am
by y3an
Hi,

My prog is getting hugest to manage it easly in one simple sheet...

My first choice, was to just use includes, but..

Maybe mostly for totaly childish reasons, I would like to deal with Dlls.
It should pleased me well to have my differents tools in it.. :?

But erf... My first little tryies have been steriles..

Here, the first Dll test :

Code: Select all

ProcedureDLL Socle( Y )
 DisplayTransparentSprite(1,0, Y ) 
EndProcedure
So, i compile it in dll... And add this in the main prog :

Code: Select all

If OpenLibrary( #Lib, "Libs\Interface.dll" )
 Prototype.l Interfaces(Y) : Socle.Interfaces = GetFunction( #Lib , "Socle")
EndIf

Latter in the prog, i try to call this function .. Juste like that

Code: Select all

Socle( Var_Y )

And i get an
"Invalid memory access. (Read error at address 0)"

I would like to understand how deal with prototypes :s, I have no any idea of "where, why, how" i can resolve this kind of issues.

So.. I am here ... 8) ...

But I have no slave under the hand .. :( Maybe.. A cat ?? A beer ?? My sister ?

Thx

Posted: Wed Aug 06, 2008 10:42 am
by y3an
Okeey... It's just because i can't deal as that with displaySprite or drawing() in a Dll..

Hum... Not cool !