error 49 Bad DDL call

W

Wilmar

Just another try
Why does this Function give a error 49 Bad DDL call on a 2003
(terminal)server and does it work correct under W98 and W2k?
The dll is placed correct in the path.

It is a Function to calculate a showview-code:

Declare Function Showview Lib "show32.DLL" _
Alias "showview" (ByVal l1 As _
Long, ByVal L2 As _
Long, ByVal L3 As _
Long, ByVal L4 As _
Long, ByVal L5 As _
Long, ByVal L6 As _
Long, ByVal L7 As _
Long, ByVal PathToTablefiles As String) As Long

The call as follows gives a error 49

S% = Showview(day, Month, Year, Starttime, Endtime, Channel, 0, Mypath)
or
S%=Showview(26, 7, 3, 700, 1010, 113,0, "T:\ShowView\")


Will
 
T

TC

Perhaps the parameters have changed between versions?

Should the constants be coerced to longs?
S%=Showview(26&, 7& etc.
^ ^

HTH,
TC
 
W

Wilmar

Parameters should be Longs indeed.
tried in that case everything, also with fixed values. No result.
 
T

TC

Try in a more API-related ng. I get lots of hits for "win32" in ng names.

Good luck!

TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top