By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,499 Members | 829 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,499 IT Pros & Developers. It's quick & easy.

vba code not working Dragon naturally speaking

P: n/a
dragon naturally speaking professional
version 6.1

Hi all i have recently downloaded some examples from the dragon
website in vb. I have managed to change some code to vba so that it
could be used in MS access 2000. But i am stuck on this area, which
is:

' Check for a valid speaker
TryUsers
' Initialize nStartPos and register the Dgn Objects
nStartPos = 0
DgnDictEdit1.Register Text1.hwnd

DgnMicBtn1.Register

i get an error message saying method or data member not found on the
..hwnd is there some work way around this.

What am trying to do is when the form is loaded the certain code
registers the commands and when i click on the load button it will
load the audio file and display it in text on the appropriate textbox.

many thanks

Farouq
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 16 Jan 2004 04:38:09 -0800, fa*******@hotmail.com (Farouq) wrote:

Did you forget to set a reference to the Dragon library?
-Tom.

dragon naturally speaking professional
version 6.1

Hi all i have recently downloaded some examples from the dragon
website in vb. I have managed to change some code to vba so that it
could be used in MS access 2000. But i am stuck on this area, which
is:

' Check for a valid speaker
TryUsers
' Initialize nStartPos and register the Dgn Objects
nStartPos = 0
DgnDictEdit1.Register Text1.hwnd

DgnMicBtn1.Register

i get an error message saying method or data member not found on the
.hwnd is there some work way around this.

What am trying to do is when the form is loaded the certain code
registers the commands and when i click on the load button it will
load the audio file and display it in text on the appropriate textbox.

many thanks

Farouq


Nov 12 '05 #2

P: n/a
Thanks for the reply.

my references checkout for some reason its not recognising the hwnd in
access but it does in vb. Its like access does not have that
incorporated or something.

Hav u any other clues?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

P: n/a
On 16 Jan 2004 14:19:23 GMT, Farouq Din <fa*******@hotmail.com> wrote:

Ah, you're on to something. Indeed Access works very differently
compared to VB when we talk about window handles. Generally speaking
Access only has a window handle for the active control, not for any
others. What kind of window handle does the Register method take?
Perhaps you can use the reliable Me.hWnd?

-Tom.

Thanks for the reply.

my references checkout for some reason its not recognising the hwnd in
access but it does in vb. Its like access does not have that
incorporated or something.

Hav u any other clues?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.