Tim,
I think i forgot to add code to init the _Module; Can you please try
adding this code to WinDataTransfer.cpp
#ifdef WIN32
#include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpres) {
if (dwReason == DLL_PROCESS_ATTACH) {
_Module.Init(NULL, hInstance);
} else if (dwReason == DLL_PROCESS_DETACH) {
_Module.Term();
}
return TRUE;
}
#endif
Please let me know if this works!
thanks,
dims
PS: My environment broke, Will try to get it back up and running early
next week.
On 11/1/07, Tim Ellison <[EMAIL PROTECTED]> wrote:
> Dims,
>
> I don't properly understand what you did here [1], though I'll readily
> admit I'm no COM expert. When I applied those same changes I get a null
> pointer write in the AWT drag and drop code tests.
>
> Any insight (from anyone) about what you were doing here would be helpful.
>
> Thanks,
> Tim
>
> [1] This part of the code you had to tweak:
>
> Index:
> working_classlib/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
> ===================================================================
> ---
> working_classlib/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
> (revision 587081)
> +++
> working_classlib/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
> (working copy)
> @@ -21,8 +21,12 @@
> #include <windows.h>
>
> #include <atlbase.h>
> +#include <objbase.h>
> +
> +extern CComModule _Module;
> +
> +#include <atlwin.h>
> #include <atlcom.h>
> -#include <atlcoll.h>
>
> #include <oleidl.h>
> #include <shlobj.h>
> @@ -32,9 +36,6 @@
>
> #pragma comment(lib, "gdi32.lib")
>
> -class AtlModule : public CAtlModuleT<AtlModule> {
> -} _AtlModule;
> -
> #include "WinDataTransfer.h"
>
> // Data format names
>
--
Davanum Srinivas :: http://davanum.wordpress.com