Hello
The following code works in development environment:
LOCAL loListener
loListener = newobject('HyperlinkListener', 'HyperlinkListener.prg')
IF UPPER(TYPE("loListener")) <> "O" THEN
messagebox("FAIL! loListener could not be created. Check msvcr71.dll")
messagebox("loListener type=" + TYPE("loListener "))
ELSE
MESSAGEBOX("ok")
RELEASE loListener
ENDIF
But when I run it on the client's pc it doesn't work, it gives the error:
"FAIL! loListener could not be created. Check msvcr71.dll"
The HyperlinkListener.prg file contains the class:
define class HyperlinkListener as HTMLListener OF ;
home() + 'ffc\_ReportListener.vcx'
** code
enddefine
In the development environment HOME (1) returns "C:\Program Files (x86)\Microsoft Visual FoxPro 9\"
in the production environment HOME (1) returns empty.
The problem seems to be that it is when vfp9 is not installed.
The msvcr71.dll file is in the application directory and I copied it to system32, syswow64, and it is also registered when the program is installed.
On the other hand it seemed a problem with libraries, I copied to the main directory of the ffc application but it still doesn't work.
Beyond this trial and error experiment I did I could not find any variation in the situation.
The msvcr71.dll file is in the application directory and I copied it to system32, syswow64, and it is also registered when the program is installed.
On the other hand it seemed a problem with libraries, I copied to the main directory of the ffc application but it still doesn't work.
Beyond this trial and error experiment I did I could not find any variation in the situation.
At this point I ask myself:
Do I need to install any program on the client's pc?
Will it be some parameter that I am missing in NEWOBJECT?
Any ideas?
Thanks