Web Connection
WriteToConsole function missing
Gravatar is a globally recognized avatar based on your email address. WriteToConsole function missing
  Dimitar
  All
  Mar 15, 2021 @ 04:30am

Rick,

You have an article that that states a new method WriteToConsole() is added into wwIpStuff.dll. Tried to use the latest version but couldn't find it. Dependancy Walker also couldn't find a method with that name.

https://west-wind.com/wconnect/weblog/ShowEntry.blog?id=871

Regards Dexter Hristov

Gravatar is a globally recognized avatar based on your email address. re: WriteToConsole function missing
  Rick Strahl
  Dimitar
  Mar 15, 2021 @ 01:25pm

Removed it because it doesn't work properly. The issue as described is that desktop applications - like FoxPro - don't have an actual Console to write to. Console output just goes into empty space basically. You can make it work to see it but you can't reidrect/pipe it or anything else and the display is badly formatted and just not right. So no point in making that work.

The workaround - as outlined in the post - is to create a wrapper Console application in a language that can create Console apps and automate the main application or implement the console commands directly in.

+++ Rick ---

© 1996-2021