Web Connection
Error in wwmaint.prg ShowStatus when calling GetUserName() - WC 7.07
Gravatar is a globally recognized avatar based on your email address. Error in wwmaint.prg ShowStatus when calling GetUserName() - WC 7.07
  Joachim
  All
  Aug 24, 2019 @ 12:56pm

This error occurs when using "Server Settings" - "Web Connection Server Settings"

This line in wwmaint.prg ShowStatus raises error "Too few arguments."

INSERT INTO TFile (Setting,VALUE) VALUES ("Application User Account:",GetUserName())

Because this DLL function gets called

Declared DLLs:
...
GetUserName                                         C:\WINDOWS\System32\advapi32.dll

instead of this procedure

PROCEDURE GetUserName
**********************
***  Modified: 08/17/95

As a temp workaround renamed procedure to GetUserName1()

Gravatar is a globally recognized avatar based on your email address. re: Error in wwmaint.prg ShowStatus when calling GetUserName() - WC 7.07
  Rick Strahl
  Joachim
  Aug 26, 2019 @ 08:43am

Thanks Joachim,

I fixed this by adding explicit an Alias to the API definition in wwApi. Note, it's also necessary to recompile Console.exe since that loads it as well and might be loaded on startup if not clearing.

It'll be in 7.08 or later.

+++ Rick ---

© 1996-2024