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

Just starting out? Need help? Post your questions and find answers here.
y3an
User
User
Posts: 56
Joined: Sun Mar 09, 2008 6:06 am

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

Post 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
Last edited by y3an on Wed Aug 06, 2008 4:45 pm, edited 1 time in total.
y3an
User
User
Posts: 56
Joined: Sun Mar 09, 2008 6:06 am

Post by y3an »

Okeey... It's just because i can't deal as that with displaySprite or drawing() in a Dll..

Hum... Not cool !
Post Reply