PDA

View Full Version : c++


wamo
01-12-2008, 06:56 AM
hi guys,
i'm a rigger and want to start c++ beside of max script
and should i use c++.net or c++?
is there any difrence between them?
so what's the first step?

scorpion007
01-12-2008, 07:35 AM
Of course there's a difference. One is managed, the other is not. The managed one needs an additional runtime for support routines. (Additional meaning, in addition to the C runtime, and Win32 subsystem runtime).

Anyway -- you're posting in the MaxSDK forum, so I'm assuming you're interested in max plugin development. In this regard, I'm not sure that it's possible to use managed c++ to build max plugins, but that's not my area of expertise. I'd say you're better off going unmanaged which is the supported and documented (somewhat :P) way of going about it.

What's the first step? The first step is opening your max SDK docs, under the Programmer's Guide, find the "Introduction" chapter. In that chapter, read the section "What you Need to Know". Read this section well.

In addition to what it says, you should also have a firm understanding of Windows programming via the C API. For that I recommend 2 (vital) books:

"Programming Applications for Microsoft Windows (http://www.amazon.com/Programming-Applications-Microsoft-Windows-General/dp/1572319968)" by Jeffrey Richter
and
"Programming Windows, Fifth Edition (http://www.amazon.com/Programming-Windows-Fifth-Charles-Petzold/dp/157231995X/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1200122627&sr=1-1)" by Charles Petzold

Actually, it seems the first book by Richter recently got updated, and the name changed, so you might be better off getting "Windows via C/C++ (http://www.amazon.com/Windows-via-C%2B%2B-Pro-Developer/dp/0735624240/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1200123268&sr=1-1)" which is really the 5th edition to Programming applications for MS Windows. It's pretty recent.

RustyKnight
01-12-2008, 08:13 AM
Cool, I'm just adding those to my library right now ;)

Cheers
Shane

drdubosc
01-12-2008, 12:51 PM
Do you already have experience in C++?

wamo
01-12-2008, 03:46 PM
thanks scorpion007,yes i'm really going to make plugins for max and i thought that maxscript isn't enough to stand mass and phisyic issues,so am i right?

drdubosc,i never had any experince in c++,only a little maxscript.

Dmaxer
01-12-2008, 03:52 PM
wamo , good luck mate it's a long road :) I know Im on that very road now lol , just dont give up if it dont work out fist time

JHN
01-12-2008, 10:01 PM
Whe're all on the same long road here I guess :)

-Johan

drdubosc
01-13-2008, 12:27 AM
drdubosc,i never had any experince in C++,only a little maxscript.

Hi, wamo, IMHO it will be worth investing some time learning the frame of mind for object-oriented programming, and C++ in particular, as well as the 'landscapes' of the code libraries you will be using.

One way to get a taste of it is by taking a look at some of Bruce Eckel's book, Thinking in C++, which you can download as HTML:

http://www.mindview.net/Books/DownloadSites

Even if you don't want to become the world's greatest C++ programmer, the general knowledge will help figure out why some of the libraries are designed the way they are, and speed up your searches through help systems, etc, etc.

scorpion007
01-13-2008, 12:43 AM
and i thought that maxscript isn't enough to stand mass and phisyic issues,so am i right?

Maxscript is enough to do a lot of things. You should be more specific about what you want to achieve, and chances are it can be done perfectly well in MXS.

There are many times when the SDK is necessary though.

focomoso
01-13-2008, 03:00 AM
i'm really going to make plugins for max and i thought that maxscript isn't enough to stand mass and phisyic issues,so am i right?
If you have no c++, you'll spend most of your time learning the language and not adding the functionality you want. I'd suggest you do as much as you can in maxScript. Even if it's slow, it's much easier to develop (or find someone to develop) a tiny c++ component that just handles the computation than to do the whole mess in it. My ho, of course.

wamo
01-13-2008, 10:43 AM
with what you said guys , i got mixed
i think i should get the better decide , i mean go on with Maxscript and learn and try more to achieve the target i want or start learning SDK(C++) that it takes a lot of time to learn and
is more difcult than Maxscript or learn both of them that i will be crazy.

any ways thank you very much guys , you helped me alot,
Ehsan.

drdubosc
01-13-2008, 11:11 AM
If you have no c++, you'll spend most of your time learning the language and not adding the functionality you want. I'd suggest you do as much as you can in maxScript. Even if it's slow, it's much easier to develop (or find someone to develop) a tiny c++ component that just handles the computation than to do the whole mess in it. My ho, of course.

Totally agree. To make it worth learning C++ thoroughly, you would have to have your own good reasons to do it, in any case. Small components, you can probably make 'cookbook' style.

CGTalk Moderation
01-13-2008, 11:11 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.