Lost, why no 2 arguments

Share with us how are you using the powerrrr of the force

Moderator: Alain

Lost, why no 2 arguments

Postby mrwelcam@hotmail.com » Thu Jul 01, 2010 10:49 pm

Hi i have just installed v2.2 and have tried to run some simple examples but continually get this error

Error 1 error C2660: 'NewtonCreate' : function does not take 2 arguments

After trying every version of the lib file i finally had a look at the super complex demo given with the sdk and it doesn't use any arguments

m_world = NewtonCreate (); // from the sdk demo

In the Newton.h its:

NEWTON_API NewtonWorld* NewtonCreate (); // line 327

Every other example i have seen calls NewtonCreate with 2 arguments. I have looked at the documentation and it states that it has two arguments.
I'm going crazy.

Could some one hook me up with a very simple example that uses the latest sdk and calls NewtonCreate with no arguments.

I'm really struggling to get my head around this so any help would be appreciated.

Cheers

Cam
mrwelcam@hotmail.com
 
Posts: 2
Joined: Thu Jul 01, 2010 10:25 pm

Re: Lost, why no 2 arguments

Postby Julio Jerez » Fri Jul 02, 2010 12:32 am

This is newton 2.22 it no longer takes function pointer to memory allocator as arguments.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Lost, why no 2 arguments

Postby mrwelcam@hotmail.com » Fri Jul 02, 2010 12:55 am

Any chance of a simple example application. Would really help wrap my head around it.
mrwelcam@hotmail.com
 
Posts: 2
Joined: Thu Jul 01, 2010 10:25 pm

Re: Lost, why no 2 arguments

Postby Julio Jerez » Fri Jul 02, 2010 7:26 am

Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to User Gallery

Who is online

Users browsing this forum: No registered users and 13 guests

cron