PDA

View Full Version : Problem with MSVC 2008


Sparkle
12-07-2007, 08:25 AM
Hi Folks,

I'm having trouble compiling the standard project files that come with Cinema 10 in Visual Studio 2008.
When I open the project file (cinema4dsdk.vcproj) in the plugin folder it converts the VC++ 6 files to VC++ 9 and loads the sourcecode of the sdk plus the _api project from the recource folder as expected. Now when I try to build the api compiles fine, while for every file in the sdk it claims that c4d.h could not be found. When checking I actually found out that c4d.h is for whatever reason not part of the _api project though it is located in the api sourcecode folder. After adding it to the project and rebuilding I get the same result.
When I replace the dynamic reference in the sdk code from #include "c4d.h" to a static reference like #include "mydrive:\Programme\MAXON\CINEMA 4D R10\resources\api\c4d.h" it finds the header file but then runs into trouble whenever the next .h file is included from the _api sources.
I thought that having the _api project file added to the sdk project with dependencies and build order set would be enough to give the compiler a rought idea where it might have to look for the header files, but yet I stay corrected. Is there possibly something I'm missing, like some hidden menu where I have to define additional globals on where those files are located or is it a specific problem that comes up when I convert an VC++ 6 project to a VC++ 9.
Would be great if someone much wiser than me could help me out on this problem because I get the feeling that this is just a very stupid mistake I'm making.
Thanks in advance.

Sparkle

Srek
12-07-2007, 10:45 AM
Maybe post this on the plugincafe forum, it's the main support point for CINEMA 4D development problems
Cheers
Björn

Sparkle
12-07-2007, 11:58 AM
Alright, I just thought this forum might also be the right for this kind of problem. I'll try my luck over at the plugin cafe.

*edit*
I solved the problem by mysef. Thanks anyways.

protoplastik
03-26-2008, 10:11 PM
hi sparkle,

i have the same problem... what was your solution to this?
if i may ask. 8)

thanks

proto

donelgreeko
04-13-2008, 07:22 PM
Hi!

Had the same problem. Used MSVC 2005 and downloaded the Microsoft Platform SDK and included the folders in my MSVC Environment.

Bye :)

Per-Anders
04-13-2008, 08:21 PM
Yes, make sure you have the MS platform SDK installed before attempting to load/compile the C4D SDK projects.

soccerrprp
01-04-2009, 12:54 AM
i would like to use VS2008. is it still best to stick with VS2005? or does someone have advice on how to get SDK to work in VS2008? i tried converting VS2005 SDK files to 2008 and got errors...

Richard

Per-Anders
01-04-2009, 01:16 AM
It should compile just fine with either, though it's best to use 2005, and as always do not forget to download the platform SDK (PSDK) and install before attempting to open or load the Cinema 4D SDK project (you may also need to make sure that you have full permisions to all files in the folder and that none are set to read only).

bobtronic
01-04-2009, 07:34 AM
VS2008 is currently not recommended. It should work in most cases though.

cheers,
Matthias

CGTalk Moderation
01-04-2009, 07:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.