Hi Everyone,

First let me that the last time I did a Vc++ small utility prg is back in 1995.
Here is my situation:
I have a win32 app that uses HINSTANCE and the main.cpp looks like:
-----------------------
#include "stdafx.h"
#include "testlib.c"

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
LoadTestLibrary();
// etc....
}
----------------
the testlib.c looks like this:
-----------------
HINSTANCE TESTLIB=NULL;

long LoadTestLibrary()
{
TESTLIB=LoadLibrary("TESTLIB.DLL");
if(TESTLIB == NULL)
{
MessageBox(NULL, "Unable to load TESTLIB.DLL", "ERROR", MB_OK);
return(-1);
}
else
{
// do some stuff...
}
-----------------
What I want is rewrite the code in a win32 console app. all output will be echoed instead of messagebox. The reason I want a console app is because I need to compile it with mono and use it on a linux server.
The TESTLIB.DLL is an external library that is supposed to be compiled in .NET.

Any help will be appreciated, if someone is interested to do the work for me, please PM me I can give you the source code and you can give me an estimate price.
Thanks