net, windows comments edit

I mentioned earlier that I’m trying to create a library to interface with the Windows “Send To” menu.

I’m not getting too far with it.

Here’s what I want:

Two classes - SendToMenu and SendToMenuItem. They implement the following public members, as noted:

  • SendToMenu
    • GetSendToMenu: Takes in no parameters and returns an array of SendToMenuItem objects representing the items in the Send To menu.
  • SendToMenuItem
    • DisplayName: A property that returns the display name of the Send To item
    • Icon: A property that returns the icon for the Send To item
    • ExecuteSendTo: If you pass in a file name, it mimics you “sending” the file to the item via the Explorer menu.

It shouldn’t be that hard. Right?

It seems I have four choices of how to get this done, none of which are easy.

  • It Just Works, or “IJW”: Supposedly you can intermingle managed and unmanaged C++ and it’s supposed to just work. I’ve messed around with this and it doesn’t just work.
  • Mixed-Mode: You can create a C++ DLL that implements both managed and unmanaged code but you have to do some special finagling to get it to work. I haven’t tried this yet, but I don’t understand it all, either.
  • Platform Invocation, or pInvoke: This allows you to directly import and use unmanaged methods from DLLs right in your managed code. Talking to the Send To menu touches a lot of these things - more than you’d imagine - and getting them all to work nicely together in a managed world is nigh unto impossible. I have hundreds of lines of pInvoke code trying to get this to work. It’s just not happening.
  • Component Object Model, or COM: This is the standard, unmanaged way of getting components out there. .NET knows how to deal with COM, so if I could get a COM object that does what I want, it could pretty easily hook up. Thing is, I don’t know how to write COM, and would rather not take that time for something I’ll only use this once.

So there it sits. I have to decide whether I need to do a mixed-mode DLL or COM. Or I need to find someone who knows how to do one of the other two methods and get them to help out. Or maybe I just farm it out. I’m tired of fighting it, though.

General Ramblings comments edit

I got my teeth cleaned this morning and, as seems to be the general case, I gotta go back in. Apparently I have some sort of cavity starting under where this retainer thing in my mouth is. I looked; I don’t see anything. I start to wonder if they’re just trying to eke money out of me $60 out-of-pocket-expense at a time, but I know that if I don’t get it dealt with it will actually turn into something legitimate that I really don’t want to have anything to do with.

So I have another appointment in a couple weeks to get that taken care of. Preventative measures or whatever.

The HR director just walked by and, without even seeing me, said, “Travis must have moved down here.” Heh. I think people know my decor now.

My new veal pen at work is much farther from the break area (water, pop, microwaves, etc.) than my previous dwelling. Now not only am I never getting up, but I’m thirsty all the time, too. Maybe I should be less lazy about the whole thing and just succumb to thirst and get a drink. Maybe I should pack a bag so I can make the return trip tomorrow, too. Damn.

I bought the Best of Triumph the Insult Comic Dog DVD today, so that should be coming soon. Another one of those fun party discs to put in.

Jenn’s birthday is coming up and I don’t know what to get her. If she doesn’t cough up for her season hockey ticket, she’s getting that (but she doesn’t want that, so let’s hope she musters up some cash). In fact, she doesn’t know what she wants, she only tells me one-off items that she doesn’t want. Since I am not psychic, I will wait for a list. Should a list not arrive, hockey ticket it shall be.

General Ramblings comments edit

I think, after having moved hosts twice and blog packages once, I’ve finally finished fixing all the broken links and images floating around here. As such, if you haven’t had a chance to really catch up on some of the better entries, I can’t more highly recommend that you start at the beginning and check it out. I’ve had a good time reviewing a few of these, but maybe that’s more from the sense of a comedian laughing at his own jokes (which I would do, were I a comedian).

I also noticed while going through the past posts that I used to do a lot more in the way of getting pictures up here, so I think I’l make a concerted effort at thinking about doing that again. Now that I don’t have a commute, I don’t really see Traffic Assholes as much. That said, it might be good to take pictures of other random stuff I’m talking about, just to help you guys out.

General Ramblings comments edit

After a long day of pressure washing my house, Jenn and I took the evening and went to Sylvia’s for dinner and a show.

I had never been to a dinner theatre before, so it was an interesting experience. I’ve been to stage productions of all types - from grade school productions to Broadway (well, Broadway productions that come touring, at least) - so I wasn’t sure what to expect.

Dinner was served about 6:30p. Jenn and I both opted for the pork loin medallions in apple bourbon sauce, given a fixed menu and the other two options not looking to our liking. We started with a drink each, followed by a salad. Neither Jenn nor I are real salad-eaters, and neither of us had eaten much that day, so while the salads were being served, we gorged ourselves on the bread on the table.

When the salads arrived, we each tried to eat them (Jenn did a better job than I did) but we weren’t too successful. Jenn actually started feeling a little ill, almost as though the bread and alcohol in her stomach were combating the health factors of the salad, Adam Sandler style.

Salad: I will make you strong and healthy! Bread and Alcohol: Fuck that, Salad! We’re gonna beat you down!

Dinner arrived and it was okay. I wouldn’t say this is the best restaurant in the entire world or anything, but I was there more for the entertainment than the food.

Speaking of entertainment, I started looking around at the people attending. Now, I don’t mean to get all bourgeois on you, but this was definitely a proletariat crowd hanging out. I understand flip-flops are (for some unknown reason) “in” lately, but with jeans, a button up shirt, and a blazer? Tack-ay! Put some shoes on, for God’s sake. Where’s your mother?

We finished up dinner, and dessert was a poppy seed cake with raspberry frosting. Tasty! Jenn was feeling ill, but in a Homer Simpson moment decided she wasn’t ill enough to not eat dessert. “Oh, man, Trav, I’m not feeling so good… my stomach is rumbling and- OOOO! CAKE!”

After dessert was cleared, the show started (around 8:30p or so). The show we saw was called Monky Business, a musical about some monks trying to save their monastery from being torn down by having a radio telethon. It was really clever and well played. I liked it a lot.

All in all, a good experience. I’d recommend you check it out. I think Jenn and I will try to make it again for the next show (they do four different shows each year).

General Ramblings comments edit

I moved my cube today, from the second floor in the lap of relative luxury, to the first floor in a veal pen about the size of a refrigerator box.

Sigh.

I started at Corillian four years ago on the third floor in a medium sized cube. Then I moved to the second floor (when I moved to IT) and traveled from cube to cube, generally increasing size until about four months ago when I moved and lost some space. It wasn’t so bad then, since I really was still in a 12’x12’ luxury apartment.

Now I’m in a cube that’s maybe 6’x8’ and I’m dying, I tell you. I had to take all of my Legos home, I don’t have too many pictures up… ugh. Ten pounds of shit in a five pound bag.

I’ve made it home-y, though, as much as I can. I still have some pictures, my coffee maker, my refrigerator, and some toys. It’s just… tiny. Maybe this is how the rest of the world lives. Maybe I’m seeing the other side.

I suppose it could be worse. I could have a support column or something in here.

I don’t know where to go from here, though. I’ve been on all three floors of the building - three, two, one - and there’s no basement. I can’t move any farther down. Now what? New building? Telecommute?

In other news, I think I’m going to pressure wash my house tomorrow. We have vinyl siding and it’s starting to look a little dingy with dirt so it’s time to break down and do it. I’m not really looking forward to it, and I know it’s going to be a day-long job.

Oh, and we watched The League of Extraordinary Gentlemen last night on On-Demand. It was okay; I don’t know why people complained so much about it. It wasn’t the best movie ever made, but it wasn’t really bad, either.