Huddled Masses
You can do more than breathe for free...
Browse: Home / C++

C++

More Custom Attributes for PowerShell (Parameter Transformation)

By Joel 'Jaykul' Bennett on 31-Jan-2011

I wrote a post awhile back about using custom attributes for PowerShell parameter validation but when I did it, I focused on the use of attributes to improve the error messages output by validation (specifically, by: ValidatePattern). There are many other things that can be done with custom attributes. However, PowerShell ships with two base [...]

Posted in Huddled | Tagged Attribute, C++, PowerShell, Transformation, Type Cast | 2 Responses

How to: Invoke PowerShell and use the results from C#?

By Joel 'Jaykul' Bennett on 06-Jan-2011

One of the questions that comes up a lot about PowerShell lately is how to use it from C#. For the sake of a simple example, I figured it’s past time I post the sort-of … Hello World of PowerShell hosting. I’m going to present this app plus a little bit more at the next [...]

Posted in Huddled | Tagged APIs, C++, PoshConsole, PowerShell, PowerShell Host, Sample Code | 2 Responses

Clip.exe and the missing Paste.exe

By Joel 'Jaykul' Bennett on 14-Nov-2008

One of the guys on #PowerShell in IRC was asking about how to get the contents of the clipboard in PowerShell, and after we had tried several different scripts, we realized that in Version 1, because PowerShell runs in an MTA thread, you cannot access the clipboard without creating a new thread (in STA mode). [...]

Posted in Huddled | Tagged C++, Clipboard, Command Line, CSharp, PowerShell, Threading, Utilities

NativeConsole.cs – Run console apps and get their output

By Joel 'Jaykul' Bennett on 05-Sep-2008

To those of you who are not software developers: feel free to skip this post A while ago I wrote a little class for calling console apps from a .Net application, and I’ve been using it in several of my apps (most notably in PoshConsole) and it works great, but since the only place I’ve [...]

Posted in Huddled | Tagged .Net, C++, Console, Development | 3 Responses

Visual C++ 2008 Feature Pack Released

By Joel 'Jaykul' Bennett on 10-Apr-2008

Well, Microsoft has released its free Visual C++ 2008 Feature Pack for download — including a major update to MFC and an implementation of TR1 which includes smart pointers, regular expressions, containers and better random number generators. The update to MFC is a fairly major overhaul, and includes components which provide the L&F(Look And Feel) [...]

Posted in Huddled | Tagged C++, Feature Pack, MFC

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • April 2012
  • February 2012
  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.