Home > database >  Call a third-party DLL errors, how to solve?
Call a third-party DLL errors, how to solve?

Time:09-25

Pb10 + MSSQL



Now plans through third-party platform is sent to the customer the receivable messages such as



A third party provides USSMS. DLL



I was in the Local External Functions provides made the following statement





The Function Boolean Login (String user, String pass) LIBRARY "UESMS. DLL" Alias For "Login"





Window w_xtwh cb_10 clicked event code below

Boolean B_ue


String user, pass
User="zhnyy"
Pass="123456"


If the Login (user, pass) then
Messagebox (' prompt ', 'UE verify success! ')
The else
Messagebox (' prompt ', 'UE authentication failed! ')
End the if





No error when saving, the run times wrong is as follows:



Applicaion terminated.

Error: Bad runtime function reference at line 13 clicked in the event of o b j e c t cb_10 of w_xtwh



Especially how to solve,

CodePudding user response:

Is USSMS. DLL

Or

LIBRARY "UESMS. DLL
"
?

If the DLL file name wrong

CodePudding user response:

The Function Boolean Login (String user, String pass) LIBRARY "UESMS. DLL" Alias For "Login". ANSI

CodePudding user response:

Breakpoint debugging,,

CodePudding user response:

reference 1st floor yyoinge response:
is USSMS DLL

Or

LIBRARY "UESMS. DLL
"
?

Whether to write the wrong name of the DLL file

+ 1 ` ` `

CodePudding user response:

Post wrote a wrong file name, is UESMS. DLL
The code is consistent,

CodePudding user response:

To update

CodePudding user response:

What call to update??

CodePudding user response:

The Function of Boolean Login (String user, String pass) LIBRARY "USSMS. DLL" Alias For
First Login here and a second Login case should agree, try both capitals, such as no two lowercase try again.

CodePudding user response:

Using tools to look at ussms. DLL functions in the list to see if the function name is normal
After another pb10 statement with a character type parameters must be added the ANSI's statement,
The Function Boolean Login (String user, String pass) LIBRARY "USSMS. DLL" Alias For "Login; ANSI
"

CodePudding user response:

Compiled into a DLL give it a try

CodePudding user response:

I met the problem as well as the building Lord, if the compiler (not all compiled) after run from the IDE, the error and the building of the error information, tested all compiled from IDE can run, but I can't compile all project,

CodePudding user response:

references 9 f pb8 response:
with tools to look at ussms. DLL functions in the list to see if the function name is normal
After another pb10 statement with a character type parameters must be added the ANSI's statement,
The Function Boolean Login (String user, String pass) LIBRARY "USSMS. DLL" Alias For "Login; ANSI "

Top this!!!!!!!!!!
  • Related