C++ / C# Interop

Here is code for basic dllExport in C++  and dllImport in C#
#include <windows.h>
#define EXPORT __declspec(dllexport)
extern "C"
EXPORT int dllStartClient()
return (WinMain((HINSTANCE)0x500000,(HINSTANCE)0x500000,"",0));
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
MessageBox(NULL,L"Hello",L"Hello",MB_ICONEXCLAMATION | MB_OK);
return 0;
using System.Runtime.InteropServices;
namespace Test1
public partial class Form1 : Form
private static extern int dllStartClient();

public Form1()

private void BtnStartClient_Click(object sender, EventArgs e)
private void StartClient()

Monsters vs. Aliens

Yesterday, got to watch Monsters vs. Aliens, first Tru 3D feature by Dreamworks and first animated feature I watched in Tru 3D.
First shot opens with a planet surrounded by orbiting rocks and meteors and we all had instant expression of “Wowwwww'”.
It took nanoseconds for me to come to a conclusion that this experience is totally worth few extra dollars.
5-10 minutes more and we had gone through scenes carefully planned for 3D experience and were simply stunning.
I don’t know whether it was due to 3D effect or better renders but the hair and fur on characters like Insectosauras looked more lively.

Halfway through the movie and I have already digested all those 3D hype and seen best scenes delivered in 3D experience.
And what I was waiting for? A great movie experience.
I was expecting a Dreamworks experience(e.g.. Madagascar, Kungfu Panda), but finally came out of theater with a new experience of
movie technology but disappointing story and humor.
Humor wasn’t that funny, it didn’t have interesting story and characters.
So here is what I felt,
“Spent more money for new experience(worth doing),
spent money & time for a moving story, good humor and lovable characters(disappointed)”

“2D or 3D animation, movie experience is all about story, characters, production art, etc... Same applies to 3D or True 3D.”