Liberty BASIC Community Forum
« ListView using MsgHook.dll »

Welcome Guest. Please Login or Register.
Jan 23rd, 2018, 7:32pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: ListView using MsgHook.dll  (Read 317 times)
NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx ListView using MsgHook.dll
« Thread started on: May 15th, 2017, 4:01pm »

Hello All
(Sorry about my English)

Im tring to get ListView inside my program.
I get this tutorial:
https://lbpe.wikispaces.com/Listview%2C+trapping+double+click

this use dll call MsgHook.dll
the webpage have broken link to download this dll

I searched the Internet for a way to download it but there is no mention of it.
Has anyone bumped into this DLL or has it and can send it to me?

Thank you very much,
sharon.hagit@gmail.com
User IP Logged

robmcal
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 400
xx Re: ListView using MsgHook.dll
« Reply #1 on: May 15th, 2017, 6:34pm »

Found a copy of the DLL on my external drive smiley I put in a zip file so your browser will be more likely to allow you to download it.

http://www.cabinetplanner.com/files/msghook.zip
User IP Logged

Definition of an Upgrade: Take old bugs out, put new ones in.
NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: ListView using MsgHook.dll
« Reply #2 on: May 16th, 2017, 12:05am »

Thank you very much for your help. I appreciate it very much.
It seems that MsgHook.DLL does not work on Liberty Basic 4.50 because I get an error message while running the program.
I tried on version 4.03 and it works well.
I do not understand why.
Thanks again,
Sharon
User IP Logged

robmcal
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 400
xx Re: ListView using MsgHook.dll
« Reply #3 on: May 16th, 2017, 12:11am »

That seems unlikely.

What is the error message?
User IP Logged

Definition of an Upgrade: Take old bugs out, put new ones in.
NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: ListView using MsgHook.dll
« Reply #4 on: May 16th, 2017, 01:41am »

you can rty it.
https://goo.gl/2dXekG

try run it under 4.03 and its running good
on 4.50 you get error: OS error 16r57

ty for your help
User IP Logged

robmcal
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 400
xx Re: ListView using MsgHook.dll
« Reply #5 on: May 16th, 2017, 01:53am »

Works for me in 4.04 and 4.50
User IP Logged

Definition of an Upgrade: Take old bugs out, put new ones in.
robmcal
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 400
xx Re: ListView using MsgHook.dll
« Reply #6 on: May 16th, 2017, 07:35am »

Under the Run menu select "lite debug". The program will run and when it gets to the error the debugger will open with a line of the program highlighted. Let us know which line it is.
User IP Logged

Definition of an Upgrade: Take old bugs out, put new ones in.
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: ListView using MsgHook.dll
« Reply #7 on: May 16th, 2017, 12:50pm »

The new Liberty software creates a new directory to run from. Your old Liberty software remains on your hard drive.

Did you copy the .dll to the new directory or did you just expect Liberty to find it?
User IP Logged

NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: ListView using MsgHook.dll
« Reply #8 on: May 16th, 2017, 1:19pm »

User Image

the Lite Debug show: open "MsgHook" for dll as #MsgHook

the dll is in DefaultDir$ and im running ListView.bas from the some folder.
User Image

as I say, if I run it via LB 4.04/4.03 it work fine.
it just Error in ver 4.50 !!

User IP Logged

NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: ListView using MsgHook.dll
« Reply #9 on: May 16th, 2017, 1:23pm »

Image 1
https://sgvtm-my.sharepoint.com/personal/sharon_sgvtm_onmicrosoft_com/_layouts/15/guestaccess.aspx?docid=012c98386e58b48669ebd601e17feeb94&authkey=Af_bLPKx_P8udmk7LUIFSqY

Image 2
https://sgvtm-my.sharepoint.com/personal/sharon_sgvtm_onmicrosoft_com/_layouts/15/guestaccess.aspx?guestaccesstoken=NS4A2YyMqVRwLiNt%2bqoq6NrgJ6E1evmD4z989%2bk3Xtk%3d&docid=2_0f8f50bc160b342f0ac139dc507ae97fa&rev=1
User IP Logged

Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5618
xx Re: ListView using MsgHook.dll
« Reply #10 on: May 17th, 2017, 01:31am »

The error reported is telling you that the program cannot find the dll file. So either you are not in the directory you think you are or the dll is not there or is misnamed.

what exact version of Liberty BASIC are you using? What does DefaultDir$ contain when you print it? Using explorer is the .dll in that location? Is it misnamed or does it have an extra extension like name.dll.dll?
« Last Edit: May 17th, 2017, 02:24am by Rod » User IP Logged

NSbrown
New Member
Image


member is offline

Avatar




PM


Posts: 15
xx Re: ListView using MsgHook.dll
« Reply #11 on: May 17th, 2017, 04:55am »

I managed to understand the problem and arranged it.
I changed the line:
Open "MsgHook" for dll as #MsgHook
To
Open DefaultDir $; "\ MsgHook" for dll as #MsgHook
And everything worked out.
Thank you very much for your help. This forum is excellent.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls