Go to Post Remember: This is High School Competition. - rich2202 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2003, 12:49
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Programming with the PBASIC Tokenizer

I downloaded the tokenizer stuff from the Parallax site, and loaded the dll into Visual Basic 6, but then I figured it's probably the DLL code is probably in C++, so I made MSVC++ 6 load the dll, but it still won't compile. I've read all three of the pdf's from top to bottom that came with the download, and no help...can someone please help me get either VB (preferred), or MSVC++ to load the dll and compile without errors?

[Edit] Forgot to say I'm using Windows XP [/Edit]
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #2   Spotlight this post!  
Unread 05-01-2003, 12:58
iscrc2 iscrc2 is offline
Registered User
#0568 (Nerds of the North)
 
Join Date: Jan 2002
Location: Anchorage, Alaska
Posts: 28
iscrc2 is an unknown quantity at this point
Do you know if the dll tokenizer supports the newer syntax? Are you trying to "compile" the innovation first default code? I think several of us are noticing that the default code is using a new syntax and the 1.33 editor does not support it. Parallax is supposed to be releasing a new version soon. But its not clear if it is soon (tomorrow) or soon (February).
  #3   Spotlight this post!  
Unread 05-01-2003, 13:03
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by iscrc2
Do you know if the dll tokenizer supports the newer syntax? Are you trying to "compile" the innovation first default code? I think several of us are noticing that the default code is using a new syntax and the 1.33 editor does not support it. Parallax is supposed to be releasing a new version soon. But its not clear if it is soon (tomorrow) or soon (February).
The tokenizer version is straight off of the offical Parallax site (tokenizer version: 1.16.0.0). I know about the error, but all I'm trying to do is make a small (testing) program, but no functions from the DLL are even working.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #4   Spotlight this post!  
Unread 05-01-2003, 13:10
iscrc2 iscrc2 is offline
Registered User
#0568 (Nerds of the North)
 
Join Date: Jan 2002
Location: Anchorage, Alaska
Posts: 28
iscrc2 is an unknown quantity at this point
What errors are you getting? Is the c++ compiling? Does the tokenier report an error? What pbasic source are you feeding it?
  #5   Spotlight this post!  
Unread 05-01-2003, 13:16
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by iscrc2
What errors are you getting? Is the c++ compiling? Does the tokenier report an error? What pbasic source are you feeding it?
I get errors about "Compile not found" (the function for compiling code. The tokenizer I think isn't even being included (if it is, it's nothing but references and not functions). I'm feeding no pbasic to it, because I can't even get the class manager or whatnot to show a thing (it would show something if the dll was being linked, but since it's not in a "*.lib" format, it won't link *just my thought of why*)
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #6   Spotlight this post!  
Unread 05-01-2003, 14:23
iscrc2 iscrc2 is offline
Registered User
#0568 (Nerds of the North)
 
Join Date: Jan 2002
Location: Anchorage, Alaska
Posts: 28
iscrc2 is an unknown quantity at this point
I've not slogged thru and made a VB defn to use compile (the TModuleRec has quite the structure) but I've made a quicky that calls the version function. Using a Declare of:
Private Declare Function Version Lib "C:\tokenizer.dll" () As integer

then calling it with code:
Label1.Caption = Str(Version())

in some button event code.

But why do you want to use this? This seems like a hard project without much return for our robots.

Anyway, can you get a version call to work? Thats a simpler way to see if you've got the basics (heh) in place.
  #7   Spotlight this post!  
Unread 05-01-2003, 14:41
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Finally, someone else is trying to use this stuff!

I wrote a paper on using it in VC++ that you can get at my website: http://www.robbayer.com. Look under the How-To's section.

Remember: DLL's do not "link" in the traditional sense. They are called Dynamic Link Libraries for a reason: they link in at runtime. I explained most of this stuff in my paper, but if you still have questions, PM/email me or continue replying to this thread.

As for usefulness to FIRST, I have used it in two different programs with very positive results. The first is a PBASIC IDE that runs under Linux (RoboIDE). The second is my program generator (RoboGUI), which uses the tokenizer to send code directly to the RC.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #8   Spotlight this post!  
Unread 05-01-2003, 15:00
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by rbayer
Finally, someone else is trying to use this stuff!
lol...i've attempted it before
Quote:
I wrote a paper on using it in VC++ that you can get at my website: http://www.robbayer.com. Look under the How-To's section.
Do you know if you can do this in vb 6?
Quote:
Remember: DLL's do not "link" in the traditional sense. They are called Dynamic Link Libraries for a reason: they link in at runtime. I explained most of this stuff in my paper, but if you still have questions, PM/email me or continue replying to this thread.
Thanks (for the info and contact)
Quote:
As for usefulness to FIRST, I have used it in two different programs with very positive results. The first is a PBASIC IDE that runs under Linux (RoboIDE). The second is my program generator (RoboGUI), which uses the tokenizer to send code directly to the RC.
I've seen, used, and liked them both...good job and keep it up
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #9   Spotlight this post!  
Unread 05-01-2003, 15:06
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by Raven_Writer

Do you know if you can do this in vb 6?
I've never used VB, but I know you can. The function names (ie LoadLibrary) are probably very similar--just look them up in the MSDN Library. Otherwise, I found this from google. As I said, I've never used VB, but it looks vaguely like what you need.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #10   Spotlight this post!  
Unread 05-01-2003, 15:11
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by rbayer
I've never used VB, but I know you can. The function names (ie LoadLibrary) are probably very similar--just look them up in the MSDN Library. Otherwise, I found this from google. As I said, I've never used VB, but it looks vaguely like what you need.
Thank you. Yes, it seems like it might work. Just one for question, you can use the DLL in a C/++ Console, right?

Quote:
I've not slogged thru and made a VB defn to use compile (the TModuleRec has quite the structure) but I've made a quicky that calls the version function. Using a Declare of:
Private Declare Function Version Lib "C:\tokenizer.dll" () As integer

then calling it with code:
Label1.Caption = Str(Version())

in some button event code.

But why do you want to use this? This seems like a hard project without much return for our robots.

Anyway, can you get a version call to work? Thats a simpler way to see if you've got the basics (heh) in place.
Thank you for this (sorry for the long reply, didn't know you replied before). I'm gonna try your code.

Again, thank you both.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #11   Spotlight this post!  
Unread 05-01-2003, 15:14
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
I didn't want to edit my above post, but for the getting the version, here's the answer:

Yes. Thank you for your help.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #12   Spotlight this post!  
Unread 05-01-2003, 15:15
iscrc2 iscrc2 is offline
Registered User
#0568 (Nerds of the North)
 
Join Date: Jan 2002
Location: Anchorage, Alaska
Posts: 28
iscrc2 is an unknown quantity at this point
The declare I posted (above) is from VB6. But you'll have to deal with the large structure of the TModuleRec without any handy c include files. That will be a pain.

Make a VB program that calls the version function first. That way you know if you have things setup to work correctly.

Are you trying to make a new IDE like rbayer?
  #13   Spotlight this post!  
Unread 05-01-2003, 15:27
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by iscrc2
The declare I posted (above) is from VB6. But you'll have to deal with the large structure of the TModuleRec without any handy c include files. That will be a pain.

Make a VB program that calls the version function first. That way you know if you have things setup to work correctly.

Are you trying to make a new IDE like rbayer?
Already tested the version thing, and it worked w/o any errors. Right now, I have it in a *.bas file. No, I'm not looking for making an IDE right now, just to mess around, and maybe call the stamp editor to load the file and such, or whatever...but mainly just mess around w/ it and see what I come up with.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use the PBASIC tokenizer rbayer Programming 0 12-12-2002 12:56
PBASIC Tokenizer Neal Probert Programming 9 28-10-2002 19:12
Programming the second joystick in PBASIC archiver 2001 2 24-06-2002 00:25
Programming PBASIC for pneumatics archiver 2001 2 23-06-2002 23:58
pbasic programming punarhero Programming 4 21-01-2002 23:32


All times are GMT -5. The time now is 16:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi