FoxPro Programming
VFP on Windows 11
Gravatar is a globally recognized avatar based on your email address. VFP on Windows 11
  Carl Chambers
  All
  Mar 22, 2022 @ 03:24pm

I haven't been able to find much regarding VFP on Windows 11 so I assume there are no major issues. Anyone know of any problems with running VFP desktop apps on Windows 11?

Thanks, Carl.

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Rick Strahl
  Carl Chambers
  Mar 23, 2022 @ 11:55am

I haven't seen any differences between Windows 11 and Windows 10 in my applications... it's basically an unchanged environment as far as desktop applications are concerned.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Carl Chambers
  Rick Strahl
  Mar 23, 2022 @ 04:51pm

Thanks, Rick.

Carl

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Steve
  Carl Chambers
  Mar 23, 2022 @ 06:17pm

So far, my VFP9 Desktop App is working without issue on Win11.

Steve

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Carl Chambers
  Steve
  Mar 24, 2022 @ 10:05am

Thanks, Steve.

Carl

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Pat
  Carl Chambers
  Apr 18, 2023 @ 08:36am

I just wanted to add to this link.

Converted a VFP7 app to VFP9. SET ENGINEBEHAVIOR 70 SET REPORTBEHAVIOR 80

We are having issues with reports that are designed as landscape. The reports are cleaned. Report field expr has only.. ORIENTATION=1 PAPERSIZE=1 PAPERLENGTH=2794 PAPERWIDTH=2159 COLOR=2

The issue is on windows 11 only. When you issue the REPORT FORM command with TO PRINTER PROMPT, The Windows dialog does not say Landscape but defaults to the default in the printer which is PORTRAIT.

Not sure why the Windows dialog is not being changed to landscape. If you just print it prints PORTRAIT as expected. If you change to landscape, it prints landscape as expected.

I have not resolved this issue.

Revision 04/18/2023 Problem seems to be with Windows 11 (11 22H2). New print dialog introduced. Found this solution option. https://www.winhelponline.com/blog/restore-legacy-print-dialog-windows-11/

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Ahto_Kivimagi
  Carl Chambers
  Oct 18, 2023 @ 07:45pm

Don't worry about it; that works for me

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  IsaacAdekola
  Carl Chambers
  Oct 18, 2023 @ 08:56pm

Hey Carl, I've used VFP on Windows 11, and it seems to work pretty smoothly. Most compatibility issues have been ironed out. Just make sure your apps are updated and keep an eye on any specific dependencies. Here's a guide about updating windows. You should be good to go!

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  VFPJCOOK
  IsaacAdekola
  Oct 21, 2023 @ 09:18am

Carl, I can tell you I am still on Windows 10 for development so compiling is done in Windows 10. My desktop is running on many Windows 11 workstations both via RDP (RemoteApp) and not. Hundreds of users, app contains about every possibility you can imagine including lots of COM servers, etc. I have no issues. John

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Robert Park
  Carl Chambers
  Sep 17, 2025 @ 05:04am

Windows 11 lacks some VFP libraries. I run Windows on my Macs under Parallels. My Dealmaster Pro Bridge-playing software runs fine on Windows 10, but fails on Windows 11...due to at least one missing support file. So I'm still running Windows 10, and must continue to do so if I want to run that VFP software. Is there a solution for this?

I should mention that my primary machine is a 2019 iMac with an Intel processor. I'd like to move to an M4 processor Mac system.

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Rick Strahl
  Robert Park
  Sep 17, 2025 @ 06:17am

Unless it's a third party ActiveX control I don't thing anything changes in Windows 11 in regards to libraries. I have several very UI heavy VFP applications that I still use that have no issues on Windows 11. However, you may have to review exactly what you install with your app as there may be files that you need to explicitly install that were previously OS installed (ie. the various merge modules, and Windows OCX controls, MSXML...)

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Peter
  Rick Strahl
  Nov 12, 2025 @ 10:49am

I've just had to reformat my harddrive and install Windows 11 because of a Office Word and Excel problem that was crashing my Windows 10 machine. The laptop is fairly old and now I cannot install IIS or IIS Express, nor can I attach an external monitor (my hardware guy says that the video card is not compatible to Windows 11). I can see the screen on my laptop, but not on my external display. VFP 9 works just fine, but my LOCALHOST version of my web application is dead in the water. Lucky I have a Windows 7 laptop (32 bit) that I use to support some very old Clipper programs. I've ported everything over there, and luckily it works, but I would prefer to work on my Windows 11 laptop. Any thoughts ?

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Rick Strahl
  Peter
  Nov 12, 2025 @ 07:34pm

You have to install IIS on Windows 10 and 11 - it's not on by default.

If you're on Windows 11 you don't have to use IIS locally. You can use IISExpress or the Web Connection Web Server both of which are probably a better idea anyway than using full IIS locally.

Web Connection Web Server Configuration

If you're using new project Web Connection will generate a Launch.prg file for your project that you can do to start up manually started serves like IIS Express or the Web Connection Web Server - in older projects you can copy the file manually and manually configure for your server.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Peter
  Rick Strahl
  Nov 16, 2025 @ 08:56am

Thank you for the reply. I deinstalled IIS from my Win 11 machine, rebooted and then launched IIS Express by typing: DO CONSOLE WITH "LAUNCHIISEXPRESS" It opened a web browser with the DEFAULT.HTM page from c:\wconnect\web\wconnect. So IIS Express is obviously now running (a big improvement from Friday). I then type DO WCDEMOMAIN and click on "Hello Web Connection" and the web browser hangs and nothing appears in the WCDEMOMAIN form.

I'm not sure where I am going wrong. I have tried rebooting the Win 11 machine and repeating the steps, but so far nothing doing.

Also I really want to run my own app which was running in Win 10. I have tried altering WEB.CONFIG to add the ".wws" as a clone of the ".wwd" line, but I don't understand how IIS Express is recognizing the .wwd or .wws extension and passing the request to the running app (WCDEMOMAIN or my own EXE). I have looked at the IIS Express configuration (found by looking at the APP TRAY), but I don't see anything there that helps.

BTW I didn't upgrade from 6.20 because of the cost ($399US translates to over $CDN 500) and I am not doing any new development right now).

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Rick Strahl
  Peter
  Nov 16, 2025 @ 01:09pm

Not enough info to give you any feedback. My guess is that you're probably not referencing the URLs correctly. Make sure you adjust for root directory vs. a virtual directory (ie. / vs /wconnect) - if you set up your application origally to run under a virtual using IIS (ie. http://localhost/wconnect/somepage.wc) it likely won't work the same as IIS Express by default runs on root directory (http://localhost:7000/somepage.wc).

Otherwise I'd recommend going through the trouble shooting and configuration guides in the documentation specifically checking for the virtual and script map configuration.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Jon
  Carl Chambers
  Dec 12, 2025 @ 10:51am

I seem to be running into some trouble on Windows 11 where the FILE() function returns False, even when the file exists. Then, when my program attempts to create the table that (it thinks) doesn't exist, it gives an error that "File [file name] already exists as part of a database." It only seems to happen intermittently, and this is on network installations where the application files and data files are all on a server and being accessed over the local area network from one or more workstations. Has anyone else encountered this or have any suggestions?

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Jeff L
  Jon
  Dec 12, 2025 @ 11:04am

VFP's File() is garbage if you have paths set because it will search those paths as well.

I always have an Win API provide me that function.

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Jon
  Jeff L
  Dec 12, 2025 @ 11:12am

Gotcha, so you're saying you avoid using VFP's built-in FILE() function and use a Windows API call instead? That would certainly be an easy enough change for me to make. Are you using Windows FileSystemObject, or something else? I found this example:

fso = CreateObject("Scripting.FileSystemObject")
IF fso.FileExists("C:\Path\To\Your\File.txt")
    ? "File exists!"
ELSE
    ? "File does not exist!"
ENDIF
Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Jon
  Jeff L
  Dec 12, 2025 @ 11:18am

I left this part out: this application has been running in hundreds of installations for many years, and this problem has only recently started surfacing, without any changes having been made to that part of the code.

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Jeff L
  Jon
  Dec 12, 2025 @ 11:31am

No, I avoided the scripting filesystemobject because it's probably too slow. I used a Win32 API.

declare integer GetFileAttributes in win32api string lpFileName

(however, after searching my VFP sourcecode files...) Ah, yes, I did switch to filesystemobject because of the edge case where the drive is disconnected.

Here's the comments in my isFile function. Note the credit to Rick because I got the idea from him.

*the GetLastError part doesn't work when the drive part of the filename has been disconnected (e.g. the i drive) in which case GetLastError returns a 64

return iif((GetFileAttributes(m.tcFilename) = -1) and (inlist(GetLastError(), 2, 3)), .f., .t.) &&this code came from Rick Strahl

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Rick Strahl
  Jeff L
  Dec 13, 2025 @ 12:11pm

Yeah you have to be careful with Windows File Attributes because there are certain kinds of 'files' that can get returned from a directory listing that aren't actually files. So you'd need to wrap that into an exception handler and if it fails it's not 'regular' file.

Just ran into this in Markdown Monster where Claude AI is generating invalid nul files via Bash Shell (not allowed through Windows APIs) which fail with attribute lookups. Started cropping up recently due to increased AI usage (Claude CLI in particular). Generated a ton of weird user errors in my cloud logs.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: VFP on Windows 11
  Philip Borkholder
  Carl Chambers
  Dec 17, 2025 @ 05:30am

I am running into problems with Windows IPP drivers on Windows 11 being installed by IT companies for my clients, instead of the standard Print Driver for the printer. Is there a way to get VFP 9 sp2 to use the new Windows IPP protocol ? (I don't fully understand why windows 11 does this or how it benefits windows' users.)

Thanks Philip

© 1996-2026