Calling Conventions Calling conventions tend to change for different compilers. Stack argument order and register versus stack calling must be properly defined for each compiler. Additionally, changes need to be made to the Windows DLL calling conventions in order for the Borland and Watcom compilers to work properly. After this is done, the Navigator and plug-in call each other directly through the use of these function pointers. This convention is used by the Microsoft compiler in which Netscape's Navigator was written.
Some compilers use a register-based calling convention as the default.
Passing function parameters through registers is faster than using the stack. Another difference that you should be aware of is the calling convention for your plug-in's DLL entry points. Exporting Both Borland and Microsoft use a module definition, or .DEF, file to export the DLL routines. Watcom has something called a librarian command file that is similar to a .DEF file. Although the Microsoft example uses a class library, the Watcom and Borland examples do not.