473,511 Members | 15,503 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mouse wheel, XP, and VB5

Why doesn't my mouse wheel work in the code windows in VB5 under XP?
I can scroll the properties and project windows using the wheel, but
not the actual code windows (XP). Everything works fine using Windows
98.

Thank you.

---
Allen

Jul 17 '05 #1
9 6390
Jos
"Woof-Woof" <ot*********@cox.net> wrote in message news:<iIKxc.7058$fZ1.330@fed1read03>...
Why doesn't my mouse wheel work in the code windows in VB5 under XP?
I can scroll the properties and project windows using the wheel, but
not the actual code windows (XP). Everything works fine using Windows
98.

Thank you.

---
Allen


AFAIK the mouse wheel has never worked in VBA code designer.
Just another of those petty annoyances of life.

Jos
Jul 17 '05 #2
On 10 Jun 2004 06:08:02 -0700, jo***********@yahoo.co.uk (Jos) wrote:

<snip>

AFAIK the mouse wheel has never worked in VBA code designer.
Just another of those petty annoyances of life.


We are talking VB5 here

Or are you saying (correctly) that MS view VBx as a VBA Designer ?
Jul 17 '05 #3
if my DLL declaration looks like this
Private Declare Function Test1Func Lib "testdll.dll" (ByVal Num As Integer)
As Integer

is there a way to make the DLL name variable, as in

Dim DName as string
DName="testdll.dll"
Private Declare Function Test1Func Lib DName (ByVal Num As Integer) As
Integer

Thanks,
S
Jul 17 '05 #4
On Fri, 11 Jun 2004 20:53:52 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
if my DLL declaration looks like this
Private Declare Function Test1Func Lib "testdll.dll" (ByVal Num As Integer)
As Integer

is there a way to make the DLL name variable, as in

Dim DName as string
DName="testdll.dll"
Private Declare Function Test1Func Lib DName (ByVal Num As Integer) As
Integer


Not as you want to do it.

One can use the API LoadLibrary to load a DLL by name
However you will have problems calling the functions as VB does not
natively support calling functions by address.

What is it that you really want to do ?
Jul 17 '05 #5
Thanks for your response. What I want to do is assign a DLL
at run time so I can add DLL's later on without having to change
the program. Each DLL will have the same function names and
method of calling them, just different file names.
I would store the DLL file names in a startup file and just
modify that when a new DLL is added.
Are you suggesting that if the function names are constant
then the API LoadLibrary would work?

Steve

"J French" <er*****@nowhere.com> wrote in message
news:40***************@news.btclick.com...
On Fri, 11 Jun 2004 20:53:52 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
if my DLL declaration looks like this
Private Declare Function Test1Func Lib "testdll.dll" (ByVal Num As Integer)As Integer

is there a way to make the DLL name variable, as in

Dim DName as string
DName="testdll.dll"
Private Declare Function Test1Func Lib DName (ByVal Num As Integer) As
Integer


Not as you want to do it.

One can use the API LoadLibrary to load a DLL by name
However you will have problems calling the functions as VB does not
natively support calling functions by address.

What is it that you really want to do ?

Jul 17 '05 #6
On Sat, 12 Jun 2004 18:14:23 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
Thanks for your response. What I want to do is assign a DLL
at run time so I can add DLL's later on without having to change
the program. Each DLL will have the same function names and
method of calling them, just different file names.
I would store the DLL file names in a startup file and just
modify that when a new DLL is added.
Are you suggesting that if the function names are constant
then the API LoadLibrary would work?


Are you writing these DLLs yourself
- and if so in which language ?

If you are writing 'real' DLLs yourself then what you want to do is
pretty easy, you will just need to write another DLL that contains
procedures/functions that can call other procedures/functions by
address.
Jul 17 '05 #7
On Sun, 13 Jun 2004 06:54:27 +0000 (UTC), er*****@nowhere.com (J
French) wrote:
On Sat, 12 Jun 2004 18:14:23 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
Thanks for your response. What I want to do is assign a DLL
at run time so I can add DLL's later on without having to change
the program. Each DLL will have the same function names and
method of calling them, just different file names.
I would store the DLL file names in a startup file and just
modify that when a new DLL is added.
Are you suggesting that if the function names are constant
then the API LoadLibrary would work?


Are you writing these DLLs yourself
- and if so in which language ?

If you are writing 'real' DLLs yourself then what you want to do is
pretty easy, you will just need to write another DLL that contains
procedures/functions that can call other procedures/functions by
address.


Further info:
I suggest that you look at the downloadable API Guide from
www.AllAPI.net

Have a look at the CallWindowProc information
- then the example of using it called 'Register Server(2)'

You would also be wise to dig around for the Win32 Programmer's
Reference Help File that should come with VB

Watch out though, CallWindowProc only works with 5 parameters despite
some misleading stuff in the documentation.
Jul 17 '05 #8
I want to write the DLL in VB6 but have the capability to use
C if I want to make an intermediate DLL. Just to clarify one point,
I'm not wanting to use variable function names, just the DLL file name
itself. In VB.net you can specify the DLL file name as a variable and
call a function in a VB.net created DLL or a C DLL but you can't
call a VB6 created DLL (which is what I really want to do) At this
point the calling program will be VB.net but the DLL's would be
best to be VB6.
One option would be to have the VB.net program call the C DLL
with the variable DLL name and the C DLL is hardcoded to call
the VB6 DLL, kind of a kludge though.
Steve

"J French" <er*****@nowhere.com> wrote in message
news:40****************@news.btclick.com...
On Sat, 12 Jun 2004 18:14:23 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
Thanks for your response. What I want to do is assign a DLL
at run time so I can add DLL's later on without having to change
the program. Each DLL will have the same function names and
method of calling them, just different file names.
I would store the DLL file names in a startup file and just
modify that when a new DLL is added.
Are you suggesting that if the function names are constant
then the API LoadLibrary would work?


Are you writing these DLLs yourself
- and if so in which language ?

If you are writing 'real' DLLs yourself then what you want to do is
pretty easy, you will just need to write another DLL that contains
procedures/functions that can call other procedures/functions by
address.

Jul 17 '05 #9
On Mon, 14 Jun 2004 16:20:13 GMT, "Steve Letkeman"
<us*********@zanthic.com> wrote:
I want to write the DLL in VB6 but have the capability to use
C if I want to make an intermediate DLL. Just to clarify one point,
I'm not wanting to use variable function names, just the DLL file name
itself. In VB.net you can specify the DLL file name as a variable and
call a function in a VB.net created DLL or a C DLL but you can't
call a VB6 created DLL (which is what I really want to do) At this
point the calling program will be VB.net but the DLL's would be
best to be VB6.
One option would be to have the VB.net program call the C DLL
with the variable DLL name and the C DLL is hardcoded to call
the VB6 DLL, kind of a kludge though.


Right, you have just moved the goalposts

You started off talking about :

Private Declare Function Test1Func Lib "testdll.dll" (ByVal Num As
Integer) As Integer

Which is the declaration for a 'real' DLL

What VB makes is ActiveX DLLs, which are basically VB Classes wrapped
in their own separately compiled code.

Dim X As Object

Set X = CreateObject( "DllInternalName.ClassName" )

The above is an example of late binding
Note: the AX DLL needs to be registered
Jul 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6181
by: AccessWhiz | last post by:
I have been trying desperately for the past few days to figure out why the MouseWheel solution that I retrieved from the Lebans website won't work. The access database included with the solution...
1
3404
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this...
6
2721
by: Susan Bricker | last post by:
Hi. Does anyone have a clue why my mouse wheel stopped working while I was working on the VB behind a form in MS/Access? I would swear that the mouse wheel was working a short time ago. I've...
13
2276
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
13
2779
by: Nathan | last post by:
Hi, Can someone lead me to info on detecting and using the mouse button? All I can find in the MSDN docs is that you use e.Delta, but it doesn't explain in how. I tried detecting the roll of...
4
2710
by: ML | last post by:
I am trying to use the mouse wheel event on a numeric input box to allow the use to scroll to inc/dec the value by 1. The issue I am having is that the delta value returned seems to be off. From...
7
1861
by: tommaso.gastaldi | last post by:
This is a curious question. I'd like to know your opinion. I am attaching a drawing resize to a mouse wheel event. Frankly, to me was most natural that, if I mouse wheel UP, the shape gets...
7
2976
by: Martijn Mulder | last post by:
When the mouse is over a picture, the user can grow or shrink it by rolling the central mouse wheel. What behavior is typical when the user rolls the wheel away. Will the picture grow or shrink...
3
3021
by: killbill123 | last post by:
Hi, I want to count the mouse wheel rotations in javascript. I searched on google and only found that how to track delta -1 and +1 base on the up mouse wheel and down mouse wheel. I want how...
3
1863
by: West55 | last post by:
I have an Access 2003 database I developed for one of my departments. I have been using Stephen Lebans' MouseWheelOnOff system to turn off the Mouse Wheel without any issues since I developed the...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.