|
From: <pko...@me...> - 2001-08-18 10:14:47
|
Hello!
When using Win32::OLE and a Win32::GUI RichEdit, I get an "Can't locate
auto/....al" error.
I have searched through the mailing list and found the following:
------
Kev...@al... wrote:
> Has anyone tried using the GUI module with imported
> OLE contants? I'm finding that if I try to use
> something like
>
> use Win32::GUI;
> use Win32::OLE::Const ('Microsoft Excel');
>
> some of my controls aren't defined. I've only noticed
> it with RichEdit fields but it may affect other things
> as well. there was a discussion about this on Perl-Win32-Users
some times ago; you can search for 'RichEdit' in the
mailing list archives. one workaround is to load the
OLE constants in an hash rather than in the main
namespace, something like:
use Win32::OLE::Const;
my $EX = Win32::OLE::Const->Load('Microsoft Excel');
print $EX->{xlMarkerStyleDot};
---
This did work for me sometimes, but don't work anymore. I then declared my
OLE constants by myself like $constant = 34, etc... I removed all
Win32::OLE::Const lines and that worked for a few times.
I reviewd my program, restructered some lines and that don't work anymore,
too!!!
Even if try something like my $riched = $win->AddRichEdit(-name =>
'riched'...) and use $riched->Text() instead if $win->riched->Text();
Please help,
Peter
|