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
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
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
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
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:
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:
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
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
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
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
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? :)
Afternoon, All.
I've made a macro which will help make calling the appropriate TRM.dll functions easier.
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
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
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 :)
thanks for sharing,
I was looking for something like this.
I was looking for something like this.
Afternoon, Jurgen .
You're welcome:).
Afternoon, bAZiK.
Not sure what you're talking about...
Cheers,
Scronty
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:
I never said anything about v7 :rolleyes:
Cheers,
Scronty