Category Archives: C++

Using .Net assemblies in your WIN32 application

Imagine that you’ve got an extensive codebase using WIN32/MFC and don’t want to give that up but on the other hand you’d like to take advantage of DOTNET classes then here’s a simple solution: First we write an Interface and … Continue reading

Posted in C++ | Leave a comment

More marshalling…

This snippet uses GetPrivateProfileString that is available in kernel32.dll. Apparently microsoft has decided to remove this useful function from the dotnet api. [DllImport("kernel32", SetLastError=true)] extern int GetPrivateProfileString( String ^pSection, String ^pKey, String ^pDefault, StringBuilder ^pValue, int pBufferLen, String ^pFile ); … Continue reading

Posted in C++ | Leave a comment

Reading unmanaged structs with .NET

Last week i’ve spend a lot of time studying System::Runtime::InteropServices. It took me a while to figure out how i could read unmanaged structs with .NET System::IO. Here is a bit of sample code (Should be obvious enough to write … Continue reading

Posted in C++ | Leave a comment

Preparing for my internship

Only two more days before my internship starts. I’m a bit nervous and excited to dive into this adventure. Today i decided to fresh my knowledge of (MS)-C++ a bit up. I’ve read a tutorial on function pointers and naming … Continue reading

Posted in C++ | Leave a comment

A Unix daemon

Today i’ve written a daemon that communicates with the Netsize SMS Gateway. The daemon sources are available for download. You will have to implement your void getCode(double number, char * code) method yourself though.

Posted in C++ | Leave a comment