A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by coimbra79 » Sat Jul 03, 2010 7:50 am
I am a VB6 programmer, using NGD, there 's someone else?
-

coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by JernejL » Sat Jul 03, 2010 10:47 am
I didn't think you could use newton with VB6, does vb6 even support CDECL calls & callbacks?
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by coimbra79 » Mon Jul 05, 2010 1:51 pm
Delfi wrote:I didn't think you could use newton with VB6, does vb6 even support CDECL calls & callbacks?
way not?
vb you understand?
callbacks are effectively my biggest boulder using NGD with vb6...
but i can use callback (i use command 'AddressOf'...) it's work!
wath are CDECL instead?
sometime Jerez tellme 'look at samples sdk...', but i somethink dont understand (eg stranges '*' into functions parameters on variables declaration), but i know this is not a programming forum, so i read and try more and more translating from yours c++ sdk samples
this is why I ask if anyone besides me knows vb and use it to plan NGD ... one hand washes the other (we say in Italy)!
this is coiAxis*, my graphical engine,I started a few days to implement the functionality of NDG, and this is a very first result, which for me means a lot!
http://www.youtube.com/watch?v=TdHKLYeb8lM
-

coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
by Stucuk » Mon Jul 05, 2010 6:15 pm
-

Stucuk
-
- Posts: 801
- Joined: Sat Mar 12, 2005 3:54 pm
- Location: Scotland
-
by JernejL » Tue Jul 06, 2010 3:17 pm
cdecl is not stdcall, from what i heard vb6 only supports stdcall and newton is cdecl, as a matter of fact a coder has pointed out this as a problem with using newton in vb6 a few years ago.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by Julio Jerez » Tue Jul 06, 2010 4:17 pm
As I remember Walaber was using Visual Basic back whne he wrote the DarkBasic wraper, so I do no knwo hoe he managed to do the integration,
I think he encapsulated all the function in a C file that was stdcall and from there he made calls to dark basics, similar to what I did when I did teh Game studio plugin.
Done right you can wrap the complete engine, bu you need to write an C project that link to the newton licrary. It can no be direntel intefaced form Basic to teh Newton DLL
it have to be Basics->Glue C project with stdcall->NewtonLibray.
you can probably write a Perl, Pithon or Yacc script to do the converison automatically.
that is how I made the Iphone port, it a Yacc/Lexx cscrip that take teh Newton Header and create an ojective C header.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by coimbra79 » Tue Jul 06, 2010 7:39 pm

understood! Thanks to everyone for the wide intervention
I have not ever stop at nothing ... I'm sure I will manage it this time too.
to work!
-

coimbra79
-
- Posts: 42
- Joined: Sun Jun 27, 2010 1:39 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests