Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Browse by Tags

All Tags » C# » C++/CLI (RSS)
Upgrading all projects to .NET 3.5
A simple macro to change the Target Framework for a project from .NET 2.0 to .NET 3.5, hacked together in a few minutes. This will fail for C++/CLI projects, and possibly VB.NET projects (haven't checked). Works fine for regular C# projects, as well as...

Posted Sunday, May 25, 2008 11:56 AM by Avner Kashtan | 2 comment(s)

Another minor C#/C++ difference - adding existing files
Another minor detail that bit me for a few minutes today. I'm posting this so I'll see it and remember, and possibly lodge it in other people's consciousness. Using Visual Studio 2005, adding an existing .cs file to a C# project will cause a copy of that...

Posted Sunday, October 28, 2007 5:35 PM by Avner Kashtan | 1 comment(s)

Filed under: , ,

More Tales from the Unmanaged Side - System.String -> char*
Today, I had a very tight deadline to achieve a very simple task: pass a managed .NET string to an API function that expects a null-terminated char*. Trivial, you would expect? Unfortunately it wasn't. My first though was to do the pinning trick that...

Posted Tuesday, August 28, 2007 7:08 PM by Avner Kashtan | with no comments

Filed under: , ,

A C# coder in a C++/CLI world, part 1
Recently I've found myself stumbling around some C++/CLI code. C++ is a language which I learned years ago and never really worked with seriously, so I've been cursing and moaning as I worked. Strange for me to go back to a (partially) unmanaged environment...

Posted Tuesday, August 28, 2007 4:48 PM by Avner Kashtan | 3 comment(s)

Filed under: , ,

More Posts