From: Dean W. <dea...@ya...> - 2006-02-15 11:26:15
|
Hi, I have some problems in bring OpenVRML to Managed C++ code in Visual Studio.NET 2003. At a high level, I want to use OpenVRML to read model info, then use my own code to translate the info to internal managed object models, and send them to another 3D library for rendering. Thus I will be able to programmatically process and interact with the models. This is what I did: (1) extend the OpenVRML a bit in the original OpenVRML solution, (2) compile (with /clr) the extension to .lib and precompiled header (pch) files, (3) manually copy the files to another managed project directory, and compile/link the files in the managed C++ project. When running, the managed C++ project produced an error, and problematic code is #using <mscorlib.dll> using namespace System; using namespace System::Runtime::InteropServices; using namespace MyOpenVRMLExtension; public __gc class MyOpenVRMLExtension::MyOpenVRMLFacade {}; // line (1) namespace MyManagedProject { } MyOpenVRMLExtension is the extension project and MyOpenVRMLFacade is a managed class that wraps all needed OpenVRML functionality. Line (1) is a forward declaration in the managed project to avoid throwing System.TypeLoadException. However, Line (1) also generates an error which I dont know how to deal with: c:\ .cpp: fatal error C1093: API call 'DefineImportMember' failed '0x80131192' : Any help please? Or are there some alternatives to get the high-level requirement done? Many thanks. Dean --------------------------------- Do you Yahoo!? Listen to over 20 online radio stations and watch over 5000 music videos on Yahoo! Music. |