Discussion:
I need a quick libgtk call
(too old to reply)
T
2021-01-04 04:24:55 UTC
Permalink
Hi All,

Not "where" from the command line or any
other command line method. I need to do this
from inside a program with a call to libgtk.

Anyone know a quick libgtk call that will
tell me if libgtk is working?

All the libgtk calls I can find have YUGE structures.

https://developer.gnome.org/gtk3/stable/api-index-full.html

libgtk's version would be nice (without having
to create a YUGE structure).

Many thanks,
-T
JJ
2021-01-04 08:06:51 UTC
Permalink
Post by T
Hi All,
Not "where" from the command line or any
other command line method. I need to do this
from inside a program with a call to libgtk.
Anyone know a quick libgtk call that will
tell me if libgtk is working?
All the libgtk calls I can find have YUGE structures.
https://developer.gnome.org/gtk3/stable/api-index-full.html
libgtk's version would be nice (without having
to create a YUGE structure).
Many thanks,
-T
GTK is a cross platform library, and your question is more related to GTK
than Win32.
T
2021-01-04 08:11:59 UTC
Permalink
Post by JJ
Post by T
Hi All,
Not "where" from the command line or any
other command line method. I need to do this
from inside a program with a call to libgtk.
Anyone know a quick libgtk call that will
tell me if libgtk is working?
All the libgtk calls I can find have YUGE structures.
https://developer.gnome.org/gtk3/stable/api-index-full.html
libgtk's version would be nice (without having
to create a YUGE structure).
Many thanks,
-T
GTK is a cross platform library, and your question is more related to GTK
than Win32.
I am going to be running the test from Windows 10-20H2
T
2021-01-04 08:36:09 UTC
Permalink
Post by JJ
Post by T
Hi All,
Not "where" from the command line or any
other command line method. I need to do this
from inside a program with a call to libgtk.
Anyone know a quick libgtk call that will
tell me if libgtk is working?
All the libgtk calls I can find have YUGE structures.
https://developer.gnome.org/gtk3/stable/api-index-full.html
libgtk's version would be nice (without having
to create a YUGE structure).
Many thanks,
-T
GTK is a cross platform library, and your question is more related to GTK
than Win32.
JJ for the Perl6 mailing list?
T
2021-01-05 08:13:15 UTC
Permalink
JJ from the Perl6 mailing list?
Hi JJ,

Nice to see you are helping out here as well.

-T

T
2021-01-04 09:18:40 UTC
Permalink
Post by T
Hi All,
Not "where" from the command line or any
other command line method.  I need to do this
from inside a program with a call to libgtk.
Anyone know a quick libgtk call that will
tell me if libgtk is working?
All the libgtk calls I can find have YUGE structures.
https://developer.gnome.org/gtk3/stable/api-index-full.html
libgtk's version would be nice (without having
to create a YUGE structure).
Many thanks,
-T
Follow up:

https://docs.microsoft.com/en-us/windows/win32/dlls/using-run-time-dynamic-linking

Worked perfectly!
T
2021-01-04 20:18:18 UTC
Permalink
Post by T
Post by T
Hi All,
Not "where" from the command line or any
other command line method.  I need to do this
from inside a program with a call to libgtk.
Anyone know a quick libgtk call that will
tell me if libgtk is working?
All the libgtk calls I can find have YUGE structures.
https://developer.gnome.org/gtk3/stable/api-index-full.html
libgtk's version would be nice (without having
to create a YUGE structure).
Many thanks,
-T
https://docs.microsoft.com/en-us/windows/win32/dlls/using-run-time-dynamic-linking
Worked perfectly!
Just out of curiosity, what would I normally
use LoadLibraryA for?
JJ
2021-01-05 03:52:22 UTC
Permalink
On Mon, 4 Jan 2021 12:18:18 -0800, T wrote:>
Post by T
Just out of curiosity, what would I normally
use LoadLibraryA for?
Same thing as the *nix equivalent `dlopen()` function.

For loading optional libraries, and for loading libraries whose name are
given by user input.

Though, most software developers treat DLLs (i.e. Dynamic Link Library) as
static link libraries (even for optional DLLs, or DLLs which aren't
guaranteed to exist in every Windows installations). That prevents the
system from even starting the main program when any of the DLL (which can be
optional) is missing.
Loading...