DLL help

From: Bernard Sypniewski <syp_at_eticomm.net>
Date: Sat, 12 May 2001 16:44:35 -0400

Dear Folks,
    I'm new to SwiftForth. I'm intrigued by its ability to make DLLs. I am
currently developing a program in Visual BASIC that would benefit by having
a DLL made by SwiftForth. Essentially, the DLL would be asked to look up a
string in a VB collection and return the match. In other words, if I passed
string X1 to the DLL, I would get back string X2. Nothing much, essentially
a big look-up table.
    I have some questions:
1. does anyone have any experience calling a SwiftForth-created DLL from
Visual BASIC? I'm not sure how to handle the DLL call. The call would be
something like

    convertedWord = cw(originalWord)
or
    convertedWord = cw originalWord

where convertedWord and originalWord are string variables and cw is a
function call.
    From the simple example that comes with SwiftForth, it seems that a
SwiftForth DLL expects parameter and function name in FORTH order. Am I
misreading something?

2. What is the best way to return a string from a SwiftForth DLL? I would
like to create a series of colon definitions, something like

    : the Z"th" ;

Would this do the trick?

Thanks,
Bernard Sypniewski

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Received on Sat May 12 2001 - 13:39:40 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.