I am wrote a visual c++ win32 console app, and i wrote it and tested it in
win32 console project
. then i switch to
win32 project
and imported all the source files and created a dll for it. by mark the class i want to export as
#define DllExport __declspec( dllexport )
class DllExport theClass {
}
it works and the dll is generated. then i created a another c# project and want to add the dll to the project. by reference->add reference-> browser. then i select that dll. then it is gives me an error
a reference to the '''''''.dll could not be added. please make sure that the file is accessible, and that is a valid assembly or com component.
anyone knows where i did wrong to generate/import the dll?
thanks