I am attempting to use the cards.dll (as in solitare). I have it working just fine except this one small exception... When I attempt to use the declared API function cdtDraw it will only work if I pass it literal values... For Example

This works great

call cdtDraw(form1.hdc,1,1,1,1,1)

However this next example raises an illegal operation error. It won't even jump to my error handler. Just kills the app and pops the application error window.

dim nVariable As Integer
nVariable = 1
call cdtDraw(form1.hdc,1,1,nVariable,1,1)

Im new to API, is there some kind of notation that I need to pass with the variable to get it not choke? The other wierd thing is that it works fine in debug mode. Its when I run the compiled exe that it wont accept anything but a literal value.

[Edited by scuzymoto on 05-18-2000 at 02:17 PM]