Click here to Skip to main content
15,887,676 members
Home / Discussions / Windows Development
   

Windows Development

 
AnswerRe: Windows 10 default image viewer Pin
Richard MacCutchan7-Nov-17 22:48
mveRichard MacCutchan7-Nov-17 22:48 
GeneralRe: Windows 10 default image viewer Pin
A_Griffin7-Nov-17 22:55
A_Griffin7-Nov-17 22:55 
GeneralRe: Windows 10 default image viewer Pin
Richard MacCutchan7-Nov-17 23:27
mveRichard MacCutchan7-Nov-17 23:27 
QuestionWindows to ubunto Pin
Outh_Mane26-Oct-17 3:15
Outh_Mane26-Oct-17 3:15 
AnswerRe: Windows to ubunto Pin
Eddy Vluggen8-Nov-17 1:04
professionalEddy Vluggen8-Nov-17 1:04 
QuestionGRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 3:09
kalberts30-May-17 3:09 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard Deeming30-May-17 4:35
mveRichard Deeming30-May-17 4:35 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 7:01
kalberts30-May-17 7:01 
Sure there are explanations, and frequently good ones. It can make sense to give a 64 bit application a different file than the one you give to a 32 bit application, especially if we talk about executable code. This logic may be the very best for the intended use.

My utility will write the file wherever the user tells it to write - it treats any file name as a plain string and does NOT have a list of directories given special treatment. I have no particular interest in writing to System32 - but if the user asks me to (in the command line parameter), I will do so. If the write fails, I'll report it. If it succeeds (which it does), and the file can be read back by the utility from System32, I would expect that the user's script could also read it back from System32. It can't. That's the frustrating point.

The user doesn't have an expressed wish to write to System32 - that's just were he ends up when starting cmd.exe. So he says: "Place the file here; it will be deleted in a second anyway". He doesn't want to know that he must specify ..\Sysnative to write them to his current working directory, named System32. The other alternative, that the next line in his script runs the file, which was written to System32, from ..\SysWOW64, is not significantly better. The user should not need to be concerned about the utility runing under dotNET! Trying to explain such things to users is not likely to make you a lot of new friends among them...

The end result is that if I want my utility to work (or even to give an error message / error return) for all users, even those running it from special directories, my utility will have to mess with the path, and be aware of all the paths that need to be messed with.

One funny detail I discovered after beginning to understand what happens: Start cmd.exe from \Windows\System32. Start cmd.exe from \Windwos\SysWOW64, and tell it to CD ..\System32. With the two command shells running from the same directory, give both a DIR command. The two directory lists, produced by the same command in the same current directory are neverhteless quite different.

The directory name might fool you to think that \Windows\System32\cmd.exe is a 32 bit program. It is not. It is a 64 bit program, while the one in SysWOW64 is a 32 bit program.

I guess that if we had a 64 bit implementation of dotNet, it would go to the same locations as e.g. Explorer does, so they would see the same set of files. As far as I know, dotNet is a 32 bit implementation (correct me if I am wrong). But I fear that the day we see a 64 bit dotNet, a number of applications will run into problems because the mapping of certain directories will be changed from the 32 bit version.

I suspect that lots of programmers are not aware of the issues this redirecting raises, and would run into the same problem as I did, without knowing why. Maybe the long term solution is to migrate dotNet to 64 bits.
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard Deeming30-May-17 8:51
mveRichard Deeming30-May-17 8:51 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 22:50
kalberts30-May-17 22:50 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 4:37
mveRichard MacCutchan30-May-17 4:37 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 5:49
kalberts30-May-17 5:49 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 5:54
mveRichard MacCutchan30-May-17 5:54 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 7:26
kalberts30-May-17 7:26 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
RedDk30-May-17 7:42
RedDk30-May-17 7:42 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 8:44
mveRichard MacCutchan30-May-17 8:44 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
kalberts30-May-17 22:42
kalberts30-May-17 22:42 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Richard MacCutchan30-May-17 22:52
mveRichard MacCutchan30-May-17 22:52 
AnswerRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
Terry Perez8-Sep-17 4:00
Terry Perez8-Sep-17 4:00 
GeneralRe: GRRRR!! 32 bit / 64 bit file mappings... Pin
OriginalGriff14-Sep-17 21:56
mveOriginalGriff14-Sep-17 21:56 
QuestionDisable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix18-Apr-17 8:01
djdynamix18-Apr-17 8:01 
AnswerRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
Richard Deeming24-Apr-17 9:08
mveRichard Deeming24-Apr-17 9:08 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix30-Apr-17 6:06
djdynamix30-Apr-17 6:06 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
Richard Deeming3-May-17 9:40
mveRichard Deeming3-May-17 9:40 
GeneralRe: Disable UAC for standard accounts in Windows 10 (Please read full post before replying. Thanks.) Pin
djdynamix6-May-17 13:50
djdynamix6-May-17 13:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.