@vekipeki
What i wanted is what is explained in the last url :D thanks a lot =), just i have a few more problems.... i just try to reproduce the same creating new projects. and when compiling the CLR c++ dll project the next error:
Error 1 fatal error C1189: #error : "include 'stdafx.h' before including this file for PCH" c:\Documents and Settings\DMendoza.AMI-GE\My Documents\Visual Studio 2005\Projects\DLLTest\DLLTest\DLLTest.h 7
This happen only when the next code is in this order:
#include "stdafx.h"
#include "DLLTest.h"
#include <STDIO.H>
#include "DLLClient2.h"
this code is in DLLClient2.cpp this project is a c++ clr dll project that will act as a proxy it creates an instance of the class that is inside the other dll (the unmanaged one). if i change the above code like this a loooot of errors shows:
#include "DLLTest.h"
#include "stdafx.h"
#include <STDIO.H>
#include "DLLClient2.h"
Error 1 error C2512: 'CDLLTestApp' : no appropriate default constructor available c:\Documents and Settings\DMendoza.AMI-GE\My Documents\Visual Studio 2005\Projects\DLLClient2\DLLClient2\DLLClient2.cpp 16
and more similar errors nothing is recognized as if the .h file doesnt exist. any ideas? ...
i already copy the unmanaged dll in the same folder