>>> 7. It's necessary to add to HBMK2 link time option which add this >>> code to final binaries: >>> #include "hbapi.h" >>> HB_EXPORT_ATTR PHB_FUNC dll_hb_vmProcAddress( const char * szFuncName ) >>> { >>> return hb_vmProcAddress( szFuncName ); >>> } >>> I'll update Harbour header files and add HB_EXPORT_ATTR and >>> hb_vmProcAddress() declaration to them. >>> We only have to choose name for this new option. >>> My propositions: -hasdyn or -usedyn -expdyn >>> Sorry but I'm the last person for such jobs but I believe that other >>> users can help us. >> What is the exact case when this option is required for users? >> Maybe I'm off, but if this is required for all "pcode" .dlls, >> we may just enable it automatically in -hbdyn mode when .prg source >> files are specified. (of course there is the side case, when >> Harbour .objs are also passed, but I'm not sure this is very >> typical case.) > > This function is used by PCODE DLLs but it has to be added to the > binaries which loads such PCODE DLLs, i.e. to .EXE file so this > option is not used when dll is created (-hbdyn) but when .exe file > is created (-hbexe).
I see. Can't it be added unconditionally for all Windows .exes? Is there any downside? Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour