|
I've heard it has no atmosphere!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
|
With the disclaimer that given the scant available documentation, I'm Doing It Wrong(TM)
So I made this nifty little MRU list and made it so MRU files are shown on the taskbar menu when you right click on the app's taskbar entry. This is not as easy as one would think.
At any rate, there's supposed to be an win32 method you can call called "SHAddToRecentDocs" that's supposed to let explorer/winshell know when you've opened a file or saved a file in your app and it should go in the MRU.
Despite my calling this, my taskbar MRU list managed by windows is not the same as the MRU list in my app (which is more complete)
this confounds me.
The Microsoft function does not work as advertised. Who coulda known?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
hah it's all good, microsoft is "tuning" the recommended files for you.
Message Signature
(Click to edit ->)
|
|
|
|
|
i'll give them something to tune.
*shakes fist uselessly at screen*
i should probably hex a Program Manager to make an example of someone, but which building to start in?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: *shakes fist uselessly at screen*
|
|
|
|
|
sure, laugh at my helplessness in the face of misfortune
few organizations can make me feel like a turtle on its back like Microsoft can.
Bless their hearts.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Try moving outside the Apple ecosystem with an IPad ... they turn the sun up your bleaching undershell as well...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
i've hated apple ever since 1986. I learned to program on the ill fated Apple ][gs
It stunted my ability as a developer early on. Luckily i moved away from apple soon enough that i caught up.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: which building to start in?
buildingList = getBuildingList(MICROSOFT)
for (building : buildingList)
{
pmList = building.getProgramManagers()
for (pm : pmList)
{
pm->hex()
}
}
Just do them all. :evil grin:
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
honey the codewitch wrote: i should probably hex a Program Manager to make an example of someone, but which building to start in?
At Microsoft? Building 7, of course...
(curious to see how many will realize what I'm talking about...)
|
|
|
|
|
LOL I do.
I used to work in 8
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Because quick access is filtered.
|
|
|
|
|
it doesn't seem to do this with my Visual studio 2017. In fact, the only things its picking up are coming from shell opens, not from the app opening its own files.
I could hack it by making it run itself again with the new file using ShellExecuteEx but no. Just no.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
It seems to depend on the program using the list. In Explorer you can add or remove folders from the list yourself. I can imagine VS to be quite selective aswell.
|
|
|
|
|
I wish there was more documentation on it. This shouldn't be difficult. It's just hard to find anything. What I have found is scattered and sort of incomplete.
Given all that, my code works pretty well, but i want it to work *better*. i'm sure you know the feeling. =)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: but i want it to work *better*. i'm sure you know the feeling.
Oh yes!
The classic dilemma of perfection vs actually getting paid.
|
|
|
|
|
well i have the luxury of not being paid for this.
it means i set my own goals at least. and i get to code what i want to code.
and y'all get to benefit because my favorite thing to code is stuff for other coders to use.
like code generators and parser generators, and cool dev widgets and things like that
My father was a toolmaker, which is sort of the non-digital corollary to what i like to do.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
So, let me rephrase.
The classic dilemma of perfection vs actually getting something done.
|
|
|
|
|
I force myself to make each day i work on it finish with some sort of tangible improvement, and now that it's useable it must remain useable.
So that keeps me moving in the right direction. I'm not at the point where i need to be concerned that i'm gold plating yet.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
The Microsoft issue doesn't surprise me, but what does shock me is that my granddaughter went to DEFCON in Las Vegas with her Dad and had a blast soaking up everything on cryptography. She competed in a code reaking contest and came in 4th place.
I ghuess she's well on her way to being a real hacker threat!
She's planning on goping to Rice
University and studying Electrical and Computer Engineering with a Masters in cryptography.
She's not grandpa's little girl anymore!
CQ de W5ALT
Walt Fair, Jr.PhD P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
right on. I remember when DefCon was just a bunch of savages.
I'm glad the kids are enjoying themselves these days. It sounds positively wholesome. Keep your bitcoins away from your granddaughter.
I'm pretty sure they've arrested Capn Crunch by now, and not for hacking, so the place is probably safe.
LOL. He's a creep.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
was thinking about this after switching off last night,
one possibility is usually when you pass struct/string/buffer parameters to interop you need to allocate and copy the source data into unmanaged memory. (I'm guessing at least one string/pathname in this case)
i.e. use Marshal.AllocHGlobal. otherwise the other processes (explorer) cant see the data (or only see corrupted remnants if they partially see into common space.)
are you doing that?
Message Signature
(Click to edit ->)
|
|
|
|
|
In cases where they are returning a string yes I do. Here the marshalling is correct. I've got a talent for it, probably because I come from a C++ background.
This api call doesn't return a string, but another one i call returns one, and it's a path, so to be safe I preallocate 521 chars which is MAX_PATH*2 +1 for the null sentinel just to be absolutely sure.
So yeah. I've got the marshalling squared away. this is just a dark corner of the shell api that isn't very well documented - its' relatively recent. Since win7 i think when the shell underwent a bunch of internal changes.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I remember someone at MS at one point had put together some small C# library that wrapped a bunch of new shell functions that were introduced, I think, with Windows 7, and jumplist support (which I believe is what you're after) was part of that. If SHAddToRecentDocs doesn't work, maybe you'll have better luck with this--maybe there's some sort of initialization you have to do that this library takes care of under the covers. Unfortunately MS never really supported it, and went so far as to remove from its own site and has pretty much been in denial about whether it ever existed or not.
[After some digging]
Found it in my own archive. They called it the Windows API Code Pack, and the last version was 1.1. There's a discussion here on SO about it. Seems like it's now on GitHub--unsupported, but available. I can't vouch for that version however.
|
|
|
|