Afternoon, All.

For information on what the Tsunami Record Manager is, visit (http://www.trm-ug.com/).

For anyone wishing to use the TRM in win32asm, I've attached the necessary files over the next few posts.

The first one is the TRM.inc file. Include this file as normal in your application. Place this file in your "\masm32\INCLUDE" directory.

The version of this file is 1.6

Cheers,
Scronty
Posted on 2002-06-17 00:03:08 by Scronty
Afternoon, All.

This next one generates the required TRM.lib file. Include the generated file as normal in your application. Place this file in your "\masm32\LIB" directory.

The version of this file is 1.6

Just double-click on the .bat link.

Cheers,
Scronty
Posted on 2002-06-17 00:06:44 by Scronty
Scronty,
i haven't seen this project before, have you prepared an info file on it, so i (and others) can find out what it does?


Cheers :grin:
Posted on 2002-06-17 00:10:06 by sluggy
Afternoon, All.

The last one is a very basic demostration using the TRM. Included in the zip is the TRM.dll(1v7) which the application requires. A small database (100 records) is also included.

Cheers,
Scronty
Posted on 2002-06-17 00:12:03 by Scronty
Afternoon, Sluggy.

Your mailbox is full (remember to delete mail in your *sent* folder as well ;p ), so I'll reply here.
i haven't seen this project before, have you prepared an info file on it, so i (and others) can find out what it does?

I'm in no way associated with Tsunami. Follow the link in the first post to find out information about this project.

I've just provided files so that we can use their database system in win32asm :) .

Cheers,
Scronty
Posted on 2002-06-17 00:58:41 by Scronty

Afternoon, Sluggy.

Your mailbox is full (remember to delete mail in your *sent* folder as well ;p ), so I'll reply here.

I'm in no way associated with Tsunami. Follow the link in the first post to find out information about this project.

I've just provided files so that we can use their database system in win32asm :) .

Cheers,
Scronty


Pah, all my idea's :) Correct way of information:

Tsunami Creator -> PowerBASIC Forum -> me -> Hiro -> Scronty

And as you see, I moved the work to translate over Hiro to Scronty :tongue:

Thanks Scronty! :alright:


@hutch:
Perhaps you can add this to masm32v8? :)
Posted on 2002-06-17 01:49:59 by bazik
Afternoon, All.

I've made a macro which will help make calling the appropriate TRM.dll functions easier.
; mTRM macro

mTRM MACRO mTRMudt:REQ, mTRMop:REQ, mTRMfile:REQ, mTRMdataptr:REQ, mTRMkeyptr:REQ, mTRMkeyno:REQ

mov &mTRMudt.op, &mTRMop ;; Tsunami operation number
mov eax, &mTRMfile
mov &mTRMudt.file, eax ;; Tsunami file handle

;; Chexk whether a data buffer has been supplied
If @InStr(1,<mTRMdataptr>,0 ) gt 0
mov &mTRMudt.dataptr, 0 ;; Address of data buffer
mov &mTRMudt.datalen, 0 ;; Length of data buffer
ELSE
mov eax, offset &mTRMdataptr
mov &mTRMudt.dataptr, eax ;; Address of data buffer
mov &mTRMudt.datalen, sizeof &mTRMdataptr ;; Length of data buffer
ENDIF

;; Chexk whether a key buffer has been supplied
If @InStr(1,<mTRMkeyptr>,0 ) gt 0
mov &mTRMudt.keyptr, 0 ;; Address of key buffer
mov &mTRMudt.keylen, 0 ;; Length of key buffer
ELSE
mov eax, offset &mTRMkeyptr
mov &mTRMudt.keyptr, eax ;; Address of key buffer
invoke lstrlen, ADDR &mTRMkeyptr
mov &mTRMudt.keylen, eax ;; Length of string in key buffer
ENDIF

mov &mTRMudt.keyno, &mTRMkeyno ;; Key number
invoke trm_udt, ADDR &mTRMudt
mov errResult, eax

ENDM
; Usage:
; mTRM myTRMudt, theopcode, thefilenumber, thedatabuffer, thekeybuffer, thekeynumber
; the result (returned value) is placed in the variable "errResult"


It seems to work quite well, and it makes the code easier to read.

I've attached the same example as before, however now it uses this macro.

Cheers,
Scronty
Posted on 2002-06-17 07:39:29 by Scronty

Afternoon, bAZiK.

V7 is already out. Did you miss it? ;p



I really don't know what you are talking about...
I never said anything about v7 :rolleyes:





:grin:

regards,
bAZiK



P.S.: Fix your code tag :)
Posted on 2002-06-17 07:50:06 by bazik
thanks for sharing,

I was looking for something like this.
Posted on 2002-06-17 07:58:25 by Jurgen
Afternoon, Jurgen .

You're welcome:).

Afternoon, bAZiK.

Not sure what you're talking about...
I really don't know what you are talking about...
I never said anything about v7 :rolleyes:
:grin:

Cheers,
Scronty
Posted on 2002-06-17 08:05:31 by Scronty