Re: [Factor-talk] FUNCTION:

2018-01-17 Thread Björn Lindqvist
You can use the dlsym? word: "func_name" "lib_name" dlsym? For functions in
user32.dll, I think you should use "func_name" f dlsym?

2017-08-23 12:25 GMT+02:00 Alexander Ilin :

>
> 23.08.2017, 05:14, "John Benediktsson" :
> > I'm not aware of any easy method. Maybe some other windows dev can
> comment. In macOS we check for the presence of a selector before calling.
> And in other places we version check before making an API call. Maybe that
> is what you need to do? If it's easy to determine what version ranges it
> was provided in.
>
>   OK, thanks for the reply.
>
> ---=---
>  Александр
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
mvh/best regards Björn Lindqvist
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] FUNCTION:

2017-08-23 Thread Alexander Ilin

23.08.2017, 05:14, "John Benediktsson" :
> I'm not aware of any easy method. Maybe some other windows dev can comment. 
> In macOS we check for the presence of a selector before calling. And in other 
> places we version check before making an API call. Maybe that is what you 
> need to do? If it's easy to determine what version ranges it was provided in.

  OK, thanks for the reply.

---=--- 
 Александр

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] FUNCTION:

2017-08-22 Thread John Benediktsson
I'm not aware of any easy method. Maybe some other windows dev can comment. In 
macOS we check for the presence of a selector before calling. And in other 
places we version check before making an API call. Maybe that is what you need 
to do? If it's easy to determine what version ranges it was provided in. 


> On Aug 22, 2017, at 12:24 PM, Alexander Ilin  wrote:
> 
> Hello!
> 
>  I have some FUNCTION: declarations for functions that aren't available on 
> all versions of Windows.
>  The vocab (windows.user32) loads fine, the errors only happen when I try to 
> call the missing functions.
>  That's all fine, except I'd like to know in advance which of the functions 
> are available, and which aren't, so I can avoid using the missing ones.
>  Is there a way to check whether a function is available before actually 
> calling it? I don't want to resort to manually calling GetProcAddress.
> 
> ---=--- 
> Александр
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] FUNCTION:

2017-08-22 Thread Alexander Ilin
Hello!

  I have some FUNCTION: declarations for functions that aren't available on all 
versions of Windows.
  The vocab (windows.user32) loads fine, the errors only happen when I try to 
call the missing functions.
  That's all fine, except I'd like to know in advance which of the functions 
are available, and which aren't, so I can avoid using the missing ones.
  Is there a way to check whether a function is available before actually 
calling it? I don't want to resort to manually calling GetProcAddress.

---=--- 
 Александр

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk