Alaska Software Inc. - DLL mismatch with PostGreSQL DBE
Username: Password:
AuthorTopic: DLL mismatch with PostGreSQL DBE
Tim CallahanDLL mismatch with PostGreSQL DBE
on Fri, 21 Jan 2022 14:48:12 -0800
Hello,
I am getting a "Possble DLL mismatch error" when I include the
PostGreSQL DBE in my dbesys.prg. I am using xBase Professonal Edition
2.00.1520. I run my program using the DLLs in the runtime install
folder so I assume they should all be compatible versions. Does anyone
have any thoughts on next steps I should take? Here is the code from
my dbesys.prg file.Sorry for the poor formatting.  If I comment it out
I don't get the error.
Thanks in advance,
Tim

  DbeLoad('pgdbe', .F. )
  dbesetdefault("pgdbe")

  cSTr :=
"DBE=pgdbe;server=\\myserver;db=mydb;uid=myusernames;pwd=mypassword"

  oSession := DacSession():New(cStr)

  IF ! oSession:IsConnected()
     msgbox('Connection failed
('+var2char(oSession:GetLastMessage())+')')
  else
     msgbox('Connection successful')
  ENDIF