English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In the module I Declare A Function GetAsyncKetState with all the other necessary information following it, but then when I try to use the GetAsyncKeyState in my form it doesn't work! Can you tell me what I'm doing wrong or provide me with a correct example? I would appreciate the help.

2006-09-20 02:56:18 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

When you declare a function, sub, variable or ... in a module, In fact you want to access them from everywhere from you program. So don't define the function (GetAsynKeyState) as private and place public keyword in starting of that.

Another help I could give about APIs is to use "ApiViewer 2004". Because this could help you a lot.

2006-09-20 03:03:54 · answer #1 · answered by Babax 3 · 0 0

Post your code please. Its hard to say what's happening without seeing what your doing wrong. Normally you should be able to call the function from anywhere in the module. There is however also a chance that the function is returning something and your not accepting the return value. Or it could be that there is an error in your logic within the function itself.

2006-09-20 09:59:26 · answer #2 · answered by sinkablehail1978 5 · 0 0

Nowhere near enough information for me to help you. I am not a VB programmer but it occurs to me to stick MsgBox("This was executed") in there to trace what is being run and what isn't

2006-09-20 10:00:05 · answer #3 · answered by teef_au 6 · 0 0

You used VB.

2006-09-20 10:26:35 · answer #4 · answered by Anonymous · 0 0

make sure your routine is a public sub

2006-09-20 09:58:30 · answer #5 · answered by T_Man 2 · 0 0

fedest.com, questions and answers