tokenizer dll
Archiver
Posts: 46,084
Has anyone played with the tokenizer dll yet? I started to write an
ide using VB 6.0. I will also port the same ide to windows ce.
After reading the docs from parallax I need some clarification on the
TModuleRec. If anyone can help please respond.
Thanks,
Curtis
ide using VB 6.0. I will also port the same ide to windows ce.
After reading the docs from parallax I need some clarification on the
TModuleRec. If anyone can help please respond.
Thanks,
Curtis
Comments
from VB? In VB a "Type" structure can only be 64K, but the "Source"
part of the structure is bigger than that. I've tried using pointers
to the Source array but keep getting Invalid Page Faults.
Anyone had any luck?
Thanks,
Jared
tmodulerec in you words. The article on that was not
clear. Maybe I am reading it wrong. thanks, curtis
--- Jared Hoylman <electrolinx@y...> wrote:
> Just wondering if anyone has had any luck using the
> new Tokenizer DLL
> from VB? In VB a "Type" structure can only be 64K,
> but the "Source"
> part of the structure is bigger than that. I've
> tried using pointers
> to the Source array but keep getting Invalid Page
> Faults.
>
> Anyone had any luck?
>
> Thanks,
> Jared
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed.
> Text in the Subject and Body of the message will be
> ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
The TModuleRec is a structure. In VB it is called a "Type". You would go about
defining it like
this...
Private Type TModuleRec
Succeeded As Byte
etc...
End Type
Then you declare a variable of type TModuleRec, and then you can access its
"internal variables".
Dim tModRec As TModuleRec
tModRec.Succeeded = 128
etc...
The problem that I am having is with the "Source" part of the declaration. In
the documentation
it says the "Source" part of the structure is a 65535 byte array. But by
declaring...
Private Type TModuleRec
...
...
Source(0 To 65535) As Byte
etc...
End Type
...you get an error message stating that the structure is too big. IE over 64K.
Jared
--- Curtis Desselles <cenlasoft@y...> wrote:
> I though of the same thing. Can you explain what is a
> tmodulerec in you words. The article on that was not
> clear. Maybe I am reading it wrong. thanks, curtis
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
VB and I would like to port the tokenizer to palm or
win ce. Do you have some sample code for this project
that I could look at? By the way I like your web site
for VB.
Thanks,
Curtis
--- Jared Hoylman <electrolinx@y...> wrote:
> Just wondering if anyone has had any luck using the
> new Tokenizer DLL
> from VB? In VB a "Type" structure can only be 64K,
> but the "Source"
> part of the structure is bigger than that. I've
> tried using pointers
> to the Source array but keep getting Invalid Page
> Faults.
>
> Anyone had any luck?
>
> Thanks,
> Jared
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed.
> Text in the Subject and Body of the message will be
> ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
>
> The problem that I am having is with the "Source" part of the declaration. In
the documentation
> it says the "Source" part of the structure is a 65535 byte array. But by
declaring...
>
>
> Private Type TModuleRec
> ...
> ...
> Source(0 To 65535) As Byte
> etc...
> End Type
>
> ...you get an error message stating that the structure is too big. IE over
64K.
>
>
> Jared
I believe you should be declaring your array as (0 to 65534) which would
be 65535 bytes... your definition is declaring 65536 bytes (remember
your indexing from zero!!)
Hope this helps,
--
Michael Burr - Renaissance Man Wanna-Be
The battle for your computer has begun... boycott companies that use
pop up/under ads. Advertisers have no right starting processes on your
machine without your consent!!
> I believe you should be declaring your array as (0 to 65534) which would
> be 65535 bytes... your definition is declaring 65536 bytes (remember
> your indexing from zero!!)
Michael,
Sorry to throw you off. It is supposed to be an array of FFFF+1 which is 65536
bytes. Either way
the structure is way too big once you add in all the other parts.
I'm most likely going to have to make a VC++ Active-X DLL to interface to the
Tokenizer DLL. Then
I can interface VB to the VC++ DLL.
Thanks,
Jared
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
would appreciate you keeping us in the loop of the development process.
James
Original Message
From: "billakay <billak@f...>" <billak@f...>
Sent: 01/31/03 09:55 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Tokenizer DLL
>
> Hi there, does anyone know if Parallax makes available a windows
library to process stamp code? I am possibly interested in writing a
VB program for a Pocket PC to program the stamp. For those
unfamiliar with VB, it can do standard Windows function calls
easily, so I don't think it has to be a specifically VB library. As
this is my programming background before tacking the basic stamp
(PowerBASIC in DOS, and Visual Basic in Windows), I think I could
develop such a program.
If a library is available, it should be quite a trivial task.
Thank you,
Bill
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
library to process stamp code? I am possibly interested in writing a
VB program for a Pocket PC to program the stamp. For those
unfamiliar with VB, it can do standard Windows function calls
easily, so I don't think it has to be a specifically VB library. As
this is my programming background before tacking the basic stamp
(PowerBASIC in DOS, and Visual Basic in Windows), I think I could
develop such a program.
If a library is available, it should be quite a trivial task.
Thank you,
Bill
Am I missing the point of the question?
mkl
Original Message
From: "billakay <billak@f...>" <billak@f...>
Date: Friday, January 31, 2003 9:55 am
Subject: [noparse][[/noparse]basicstamps] Tokenizer DLL
> Hi there, does anyone know if Parallax makes available a windows
> library to process stamp code? I am possibly interested in writing
> a
> VB program for a Pocket PC to program the stamp. For those
> unfamiliar with VB, it can do standard Windows function calls
> easily, so I don't think it has to be a specifically VB library.
> As
> this is my programming background before tacking the basic stamp
> (PowerBASIC in DOS, and Visual Basic in Windows), I think I could
> develop such a program.
>
> If a library is available, it should be quite a trivial task.
>
> Thank you,
>
> Bill
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
website [noparse]:)[/noparse]
Thanks,
Bill
--- In basicstamps@yahoogroups.com, Matt Lorenz <mklorenz@c...>
wrote:
> I was under the impression that the tokenizer was that library.
>
> Am I missing the point of the question?
>
> mkl
>
>
>
>
Original Message
> From: "billakay <billak@f...>" <billak@f...>
> Date: Friday, January 31, 2003 9:55 am
> Subject: [noparse][[/noparse]basicstamps] Tokenizer DLL
>
> > Hi there, does anyone know if Parallax makes available a windows
> > library to process stamp code? I am possibly interested in
writing
> > a
> > VB program for a Pocket PC to program the stamp. For those
> > unfamiliar with VB, it can do standard Windows function calls
> > easily, so I don't think it has to be a specifically VB library.
> > As
> > this is my programming background before tacking the basic stamp
> > (PowerBASIC in DOS, and Visual Basic in Windows), I think I
could
> > develop such a program.
> >
> > If a library is available, it should be quite a trivial task.
> >
> > Thank you,
> >
> > Bill
> >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
tried it. It does not seem to be a COM object. It is only a library
to be used with C++. Visual Basic will only reference dlls that are
COM objects. It might work in .NET, however. I haven't reied that.
--- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
<billak@f...> wrote:
> Hi there, does anyone know if Parallax makes available a windows
> library to process stamp code? I am possibly interested in writing
a
> VB program for a Pocket PC to program the stamp. For those
> unfamiliar with VB, it can do standard Windows function calls
> easily, so I don't think it has to be a specifically VB library. As
> this is my programming background before tacking the basic stamp
> (PowerBASIC in DOS, and Visual Basic in Windows), I think I could
> develop such a program.
>
> If a library is available, it should be quite a trivial task.
>
> Thank you,
>
> Bill
The trick is the Declare function. However, the eVB compiler won't be
able to use normal DLLs for a desktop machine, so I suspect that will be
your hurdle. If you want to learn more about Declare read
http://www.geocities.com/SiliconValley/Bay/9520/tut03.html.
I've been known to write some PocketPC code (C++) both for publication
and for clients. In fact, if you have a ham radio bent and a Pocket PC
2002 have a look at
http://www.pocketgear.com/software_detail.asp?id=7294.
We also have a very nice Windows CE Web server for embedded systems that
we may release as a commerical product one day. Nice to sit at your desk
and watch your plant running :-)
Al Williams
AWC
* Limit monitor 8 channels at once
http://www.al-williams.com/awce/pak10.htm
>
Original Message
> From: dirt939 <stamp@d...>
> [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=IFLdCMHYjKmSqX2P4Glon9RJDnacKV9eI8H9vOqdmMkJ9pZaJPaoR0XzlN4VMrp1DWKe0YXA5SyYrhhgY5nW]stamp@d...[/url
> Sent: Friday, January 31, 2003 10:27 AM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Re: Tokenizer DLL
>
>
> You cannot reference the tokenizer dll with visual basic. I already
> tried it. It does not seem to be a COM object. It is only a library
> to be used with C++. Visual Basic will only reference dlls that are
> COM objects. It might work in .NET, however. I haven't reied that.
>
> --- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
> <billak@f...> wrote:
> > Hi there, does anyone know if Parallax makes available a windows
> > library to process stamp code? I am possibly interested in writing
> a
> > VB program for a Pocket PC to program the stamp. For those
> > unfamiliar with VB, it can do standard Windows function calls
> > easily, so I don't think it has to be a specifically VB library. As
> > this is my programming background before tacking the basic stamp
> > (PowerBASIC in DOS, and Visual Basic in Windows), I think I could
> > develop such a program.
> >
> > If a library is available, it should be quite a trivial task.
> >
> > Thank you,
> >
> > Bill
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the
> Subject and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
call windows API calls, but it has been awhile since I have done
that. My brain has a small first in/first out memory buffer.
Thanks Al. [noparse]:)[/noparse]
-Dustin
--- In basicstamps@yahoogroups.com, "Al Williams" <alw@a...> wrote:
> Actually, VB can call most DLL functions (as long as they are
stdcall).
> The trick is the Declare function. However, the eVB compiler won't
be
> able to use normal DLLs for a desktop machine, so I suspect that
will be
> your hurdle. If you want to learn more about Declare read
> http://www.geocities.com/SiliconValley/Bay/9520/tut03.html.
>
> I've been known to write some PocketPC code (C++) both for
publication
> and for clients. In fact, if you have a ham radio bent and a Pocket
PC
> 2002 have a look at
> http://www.pocketgear.com/software_detail.asp?id=7294.
>
> We also have a very nice Windows CE Web server for embedded systems
that
> we may release as a commerical product one day. Nice to sit at your
desk
> and watch your plant running :-)
>
> Al Williams
> AWC
> * Limit monitor 8 channels at once
> http://www.al-williams.com/awce/pak10.htm
>
>
>
> >
Original Message
> > From: dirt939 <stamp@d...>
> > [noparse][[/noparse]mailto:stamp@d...]
> > Sent: Friday, January 31, 2003 10:27 AM
> > To: basicstamps@yahoogroups.com
> > Subject: [noparse][[/noparse]basicstamps] Re: Tokenizer DLL
> >
> >
> > You cannot reference the tokenizer dll with visual basic. I
already
> > tried it. It does not seem to be a COM object. It is only a
library
> > to be used with C++. Visual Basic will only reference dlls that
are
> > COM objects. It might work in .NET, however. I haven't reied
that.
> >
> > --- In basicstamps@yahoogroups.com, "billakay <billak@f...>"
> > <billak@f...> wrote:
> > > Hi there, does anyone know if Parallax makes available a
windows
> > > library to process stamp code? I am possibly interested in
writing
> > a
> > > VB program for a Pocket PC to program the stamp. For those
> > > unfamiliar with VB, it can do standard Windows function calls
> > > easily, so I don't think it has to be a specifically VB
library. As
> > > this is my programming background before tacking the basic
stamp
> > > (PowerBASIC in DOS, and Visual Basic in Windows), I think I
could
> > > develop such a program.
> > >
> > > If a library is available, it should be quite a trivial task.
> > >
> > > Thank you,
> > >
> > > Bill
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the
> > Subject and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> >