Home > database >  Call an external function error
Call an external function error

Time:09-19


Program implementation purpose, under the W7 system, run time get machine IP address, which USES pbws32. DLL, I wrote in a separate small program testing, there is no problem, but in to the company in the program will report errors GetHost calls this function, PB is version 9.0, in the same machine test, the error is very strange, there are superior to solve it, thanks, two sets of programs use the DLL is the same,

CodePudding user response:

refer to the original poster guorui88_cool response:
program implementation, program under W7 system, run time get machine IP address, which USES pbws32. DLL, I wrote in a separate small program testing, there is no problem, but in to the company in the program will report errors GetHost calls this function, PB is version 9.0, in the same machine test, the error is very strange, there are superior to solve it, thanks, two sets of programs use the DLL is the same,


Doubt your company's program has the function with the same statement, trying to create a new window in your company's programs inheritance (don't), then the statement, try calling again

CodePudding user response:

Tried, still won't do

CodePudding user response:

Added, the function is declared in the Global EXTERNAL function

CodePudding user response:

Pb9 + 7 use for a long time, has been normal, paste the error message and have a look

CodePudding user response:

This is the error message: Bad runtime function reference at line 11 in function f_get_ip_address of object f_get_ip_address.


The problem is that I write a small application in direct test is OK, the company's program but not a call,

CodePudding user response:

Will not change the company's procedures in the process of running the program in the current directory?
Try using the start calling,
  • Related