![]() |
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] |
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).
|
Quote:
|
What errors are you getting? Is the c++ compiling? Does the tokenier report an error? What pbasic source are you feeding it?
|
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. |
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. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
Quote:
Again, thank you both. |
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. |
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? |
Quote:
|
| All times are GMT -5. The time now is 06:20. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi