|
Re: Variant arguments & com function calls: msg#00005windows.devel.jawin
Hi Alex Alex Kotchnev wrote:
You are right, the Variant class is up for a refactoring. Besides the constructors you suggest, I have thought about decreasing the memory-footprint of the instances of this class. Today it contains a lot of fields each taking up memory, so I have considered refactoring it to use an internal long and an one Object reference, and then let the getters and setters for the simple types convert to an from this long (eg. the java.lang.Double contains the doubleToRawLongBits() and longBitsToDouble(), and so on for the other simple types). All non-simple values, could be referenced by the single Object field. But I have to find time for this refactoring, and I also know that some of the native code for the TypeBrowser depends on the Variant layout as it is today, so one have to be careful to change it.
I don't think there is much difference for the exact scenario you mention. I noticed that there were a few Win32 structures & others in cvs - should Yes that would be great, the "stubs"-folder in the root of the CVS version is exactly for such donated code (whether handwritten or generated and tested from the TypeBrowser)). So if you get it to work, we would be pleased if you donated the stubs to the project.
That one is a little bit tougher, as the marshalling instructions for Win32 calls are pretty badly documented pt. I read over the extended how-tos and it is starting to make a lot more sense ( Cool, feel free to ask if you stumbles into problems. Best Regards Morten |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Variant arguments & com function calls: 00005, Morten Andersen |
|---|---|
| Next by Date: | Re: Variant arguments & com function calls: 00005, Robert Hastings |
| Previous by Thread: | Variant arguments & com function callsi: 00005, Alex Kotchnev |
| Next by Thread: | Trying Jawin: 00005, Olivier Lefevre |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |