PDA

View Full Version : C++ and STL with the lightwave SDK?



markdc
03-01-2005, 03:38 PM
Is it possible to use C++ and STL with the lightwave SDK? I'm not a current lightwave user but I'm considering porting my plugins. Also is it possible to have a look at the SDK before purchasing?

Thanks.

-Mark

Amadeus0
03-01-2005, 06:36 PM
The Lightwave SDK is written in C.

If you wanted to use C++ with LW you would most likely need some type of wrapper.

http://www.geocities.com/CollegePark/9315/lw/wrapper.htm
http://www.happy-digital.com/programming/happylib.html
http://www.splinecage.com/forums/forumdisplay.php?f=141

Or you could write your own. As for STL... due to you having use/create a SDK wrapper, the question more becomes "Would it make sense to use it in a library? In particular a 3D Library, and even more so with LW wrapped in C++?" I would think the answer to the first is Yes, the second is Most Likely, and the third one ... I don't really know. It would depend on the implementation... most likely No due to the C underpinnings, but don't let me stop you...hehe.

The SDK can be found on the install disc(s) or in an update. You might be able to find it as part of the Demo Software, but Newtek would know more about that. Give them a call at 1-800-toaster for more info.

If you need a tester that knows some programming (NOT that I would be looking at the source, just helping test and report error messages) feel free to drop me an email.

markdc
03-02-2005, 01:27 AM
Thanks I'll check out those links and see if I can get a demo from Newtek.

-Mark

Lightwolf
03-02-2005, 03:46 AM
You can surely use the STL with the SDK, I do sometimes. Do have a look at the provided links though, they'll hopefully guide you through some of the pitfalls.

Cheers,
Mike