Some months ago I put this message on xharbour newsgroup - it was for
xHarbour and I don't know if it is still valid... I was also fully
criticized on using hb_dynsymFindName but this function really did its
job also when loading/unloading DLLs...

--------------------------------
At the end of March I asked in this newsgroup if it was possible to
check if a function was present (linked) in an exe during run-time.

The answer was to use TYPE() and check if the result is UI or U....

I did this yesterday on my notebook and it worked... now on my dev pc it
doesn't work.... I allways get UI....

So I created this little piece of code, studying the HB_ExecFromArray code:

HB_FUNC( ISLINKED )
{
   char * szString = hb_parc( 1 ) ;

   if ( hb_dynsymFindName( szString ) )
      hb_retl( TRUE ) ;
   else
      hb_retl( FALSE ) ;

}

Now you can use
IsLinked( "FUNC" )

You CAN'T use IsLinked("FUNC()") so IsLinked IS NOT a direct replacement
to TYPE...
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to