You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use NativeCall;
class TopWindow is repr('CPointer') {
multi sub TopWindow_TopWindow_c() returns OpaquePointer is
native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')
multi method new() {
return TopWindow_TopWindow_c();}
}
TopWindow.new();
This gives me
Cannot invoke object with invocation handler in this context
in sub TopWindow_TopWindow_c at D:\m\p6\nativecalltest2.p6:3
in method new at D:\m\p6\nativecalltest2.p6:5
in block at D:\m\p6\nativecalltest2.p6:11
Any ideas on what could be a better error message?
On 2014-09-10 10:53:18, equinox wrote:
Hi all,
use NativeCall;
class TopWindow is repr('CPointer') {
multi sub TopWindow_TopWindow_c() returns OpaquePointer is
native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')
multi method new() {
return TopWindow_TopWindow_c();}
}
TopWindow.new();
This gives me
Cannot invoke object with invocation handler in this context
in sub TopWindow_TopWindow_c at D:\m\p6\nativecalltest2.p6:3
in method new at D:\m\p6\nativecalltest2.p6:5
in block at D:\m\p6\nativecalltest2.p6:11
Migrated from rt.perl.org#122750 (status was 'open')
Searchable as RT122750$
The text was updated successfully, but these errors were encountered: