PDA

View Full Version : Maya API & VS 2008, problem with Hello World


Alicelle
03-19-2011, 06:01 AM
Hi,
I am not master of programming. This is my first attempt.
I wanted to make simple 'Hello, world', i use book "Complete Maya programming"
my CPP-file is:
#include <maya/MSimple.h>
#include <maya/MGlobal.h>

DeclareSimpleCommand( Hello, "2010");
{
MStatus stat = MS::kSucces;
MGlobal::displayInfo("Hello World!\n");
return stat
}
I'm working in VS 9 from MayaPluginWizard with MEL command

by compilling of my cpp i have: fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
This error is in file mtypes.h - i did't make this file, WHAT IS IT, HOW it have been made... Why?
In this file is "#include <winsock2.h>". It need path? I find this file in Microsoft Visual Studio 9.0\SmartDevices\SDK\...
How can i compile my Hello world?

All my additional lib are just from Maya. Should i add any more? Or make any environment variables?

I don't have enough knowledge. Please, help me. I cant make something 2 days...(((((

Robert Bateman
04-04-2011, 10:48 AM
I'm guessing this is the express edition of VC++ ?
If yes, then you'll need to download and install the "Windows Platform SDK" (which contains the standard windows networking header file... i.e. winsock).

CGTalk Moderation
04-04-2011, 10:48 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.