Displaying 1 result from an estimated 1 matches for "hexstringtodecimalinteger".
2004 Apr 14
1
Passing a pointer to .C() in Win32
Hi,
Is there any way to pass an integer from R to C and have
it cast as a pointer?
# Win32 Example:
library(tcltk)
tt <- tktoplevel()
hWndString <- tclvalue(tkwm.frame(tt))
# I'll avoid posting code to this function:
source("http://bioinf.wehi.edu.au/folders/james/R/hexStringToDecimalInteger.R")
hWnd <- hexStringToDecimalInteger(hWndString)
system32 <- file.path(Sys.getenv("windir"),"system32")
user32 <- file.path(system32,"user32.dll")
dyn.load(user32)
# WARNING: THIS NEXT LINE WILL PASS AN INVALID WINDOW HANDLE TO
# USER32.DLL AND PROBABL...