Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running an HTML from within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143419
Message ID:
00144395
Views:
32
George,

>I think you ought to. Just because a file has a particular extension doesn't mean that the user is running the expected program with it. I think it'd make a good addition.

I think I decided FindExe was unnecessary fluff at the time, just let ShellExecute give back an error code and deal with it. But Bret probably wants to do something intelligent in the UI like not even give them the choice of TAP files if their system can't deal with them, which makes a lot of sense to me.

>What brought this to mind was some recent playing around with the GetPrinter() API function I've done. I noted that the registry contains a DevMode entry. This, I think, corresponds with the PRINTER_INFO_2 structure which has a DEVMODE structure as one of its members. When I saw that registry entry, it made me think that there probably a number of functions that read and write directly to it, elminating the need to use the registry functions all the time.

I'd say that's a fairly safe assumption. For instance last night while dinking with the OLB/ILB files in the OLE/COM Viewer I ran across a dialog that sets the registry entry that caused VS6 to autodial up the internet connection every time Win95 booted. It's a toss up which place is the easier one to get to to set/reset the flag.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform