FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

FB II COMPILER

Let a DCOD call functions in your app


I'm writing an app that will use DCODs to handle processing of data.
(This will let me add extra functionality as required without having to rerelease complete apps, also allows for easier bug fixes)

Can I pass the address of a FN which lives in the app calling the DCOD and have the DCOD use the FN as if it was just another FN ??
Huh I hear you saying...

Pete

You could try something like this:

- in the app:
   fnAddr& = @myFn
   CALL "DCOD",id,rslt&,(a,fnAddr&,c,selector&)
- in the DCOD:
  LOCAL FN myDCODFn(fnAddr&)
     DEF FN testFn USING fnAddr&
     FN TestFn
  END FN
Haven't tried this; it's just an educated guess.
Wave