Re: I have searched but not found a solution to this error in win32lib.
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> May 10, 2007
- 757 views
amux wrote: > > Derek Parnell wrote: > > > > amux wrote: > > > > > > It didnĀ“t help, I get the same errormessage. > > > > > > Judith Evans wrote: > > > > > > > > amux wrote: > > > > > > > > > > Error code 461 > > > > > Failed to acquire at hWnd when creating a control > > > > > Win32Lib v0.60 11-Jul-2004 > > > > > > > > > > I have searched but not found a solution to this bug. > > > > > (when run in winXP and win2000) > > > > > > > > > > /amux > > > > > > > > I had this problem until Sascha Zindel updated win32lib v 0.60 for me to > > > > use > > > > with IDE. > > > > > > > > You can download IDEWin32lib.zip from Enhanced IDE on the RDS > > > > Contribution > Page.</font></i> > > > > You don't need to download the IDE itself. > > > > > > > > This win32lib version does not have the recent fixes posted lately on > > > > EuForum. > > > > > > > In that case you need to do the slow process of cutting away the bits of > > your > > program that are not part of the problem until you are left with the > > smallest > > bit of source code that demonstrates the issue. That will help us isolate > > the > > fix. > > > > This process is slow because you have to do a lot of trial and error > > cutting. > > How big is the program now? > > 52 objects on the (only) form > 90 variables > 800 rows(total) > > > >See if you can isolate the problem to a program > > that has only a dozen or so lines. > > > > -- > > Derek Parnell > > Melbourne, Australia > > Skype name: derek.j.parnell > > > /amux I remember having an error 461 with vintage win32lib v0.60.6 while trying to access RichEdit controls under win98/2k I think. After searching the forum (you should really experiment with this, it can dig up some gems for you), I found this post: <pre> Date: 2004 Sep 9 23:40 From: Derek Parnell <ddparnell at bigpond.com> Subject: Re: win32lib v60.5 error code 461 I messed up with RichEdit on old Windows systems. Look in the w32DLL.ew include file. Naar the end of the file you will see some code dealing with RichEdit classes. Replace all after the comments ...
--/topic Constant --/const riched32 --/desc Windows Library: Rich Edit Control
with ...
global constant riched32 = registerw32Library({"Msftedit.dll","riched20.dll","riched32.dll"}), -- Rich Edit control WC_RICHEDIT10 = "RICHEDIT", WC_RICHEDIT20 = "RichEdit20A", WC_RICHEDIT50 = "RICHEDIT50W" global sequence WC_RICHEDIT vw32Libraries[riched32][1] = linkDLL(vw32Libraries[riched32][2]) if vw32Libraries[riched32][1][1] = 1 then WC_RICHEDIT = WC_RICHEDIT50 elsif vw32Libraries[riched32][1][1] = 2 then WC_RICHEDIT = WC_RICHEDIT20 else WC_RICHEDIT = WC_RICHEDIT10 end if
-- Derek Parnell Melbourne, Australia </pre> Perhaps this is it? v0.60.6 didn't incorporate this fix, so you'll still have to patch the code as suggested. CChris