Displaying 1 result from an estimated 1 matches for "my_setforegroundwindow".
2004 Apr 14
1
Passing a pointer to .C() in Win32
...Wnd)
# This above won't work, because .C() will pass a pointer to the
# integer hWnd to SetForegroundWindow (in user32.dll) whereas
# I want the integer hWnd to be cast as a pointer.
So for each DLL function I want to call with a pointer argument,
do I have to define my own C function e.g. my_SetForegroundWindow
(using the Windows API) which takes an integer argument instead
and then casts it as a pointer in order to call the real
SetForegroundWindow function?
Of course environments behave like pointers but they are
read-only. You can't do this (below), right?
mode(hWnd) <- "environment&q...