|
-
Jul 11th, 2001, 05:50 PM
#1
native methods or FindWindow, PostMessage, and Get/WriteProfile* (Registry stuff)
First I suppose I should ask if there is a Java equivalent to FindWindow, PostMessage, and Get/WriteProfile* (Registry stuff). I think someone in the past asked about the registry and I replied that I thought it would make Java non-portable.
If there is no equivalent, I suppose that native methods would be the solution, but apparently I'm not passing the correct datatypes.
For "LPCTSTR a pointer to a null-terminated string"
I've tried Java's String, byte[], and char[] (with 0 as the last value of the byte and char arrays).
I get java.lang.UnsatisfiedLinkError.
Of course "HWND" may not be acceptable as a Java long either.
Asside: Is it possible to obtain registry information from dos batch commands (within a batch file)? Perhaps even by calling a windows function from dos running in a window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|