D
Daniel Berger
Hi all,
Windows XP Pro
Ruby 1.8.2 (Installer)
I'm just curious why I can't include DL::Importable in a class.
require "dl/import"
# This works
module Foo
extend DL::Importable
dlload("advapi32")
extern("HANDLE OpenEventLog(char*,char*)")
extern("BOOL CloseEventLog(HANDLE)")
end
# This doesn't
module Foo
class Bar
include DL::Importable # also tried 'extend' for kicks
dlload("advapi32")
extern("HANDLE OpenEventLog(char*,char*)")
extern("BOOL CloseEventLog(HANDLE)")
end
end
I feel I'm missing something obvious here, but I don't know what it
is. Insight appreciated. Thanks.
Dan
Windows XP Pro
Ruby 1.8.2 (Installer)
I'm just curious why I can't include DL::Importable in a class.
require "dl/import"
# This works
module Foo
extend DL::Importable
dlload("advapi32")
extern("HANDLE OpenEventLog(char*,char*)")
extern("BOOL CloseEventLog(HANDLE)")
end
# This doesn't
module Foo
class Bar
include DL::Importable # also tried 'extend' for kicks
dlload("advapi32")
extern("HANDLE OpenEventLog(char*,char*)")
extern("BOOL CloseEventLog(HANDLE)")
end
end
I feel I'm missing something obvious here, but I don't know what it
is. Insight appreciated. Thanks.
Dan