Hi Przemek, > to create PCODE dll simply use: > > hbmk2 -shared -strip -hbdyn dllcode.prg -n -w -es2 > > and dllcode.dll is generated, if you are using other then MinGW C > compiler then you should add -cflag=-DHB_DYNLIB (to force exporting > public functions inside .prg code - only MinGW supports auto export > feature) and -implib switches (to create import library - only MinGW > supports direct DLL usage by linker),
Minor note: -cflag=-DHB_DYNLIB is automatically enabled for non-mingw compilers when -hbdyn is used, so it's not necessary to add it manually. I believe the rest of this nice description should definitely go into doc/pcodedll.txt. You can even commit as is. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour