msaccess.exe API调用:在哪里获取函数调用描述 [英] msaccess.exe API calls: where to get the function call description

查看:87
本文介绍了msaccess.exe API调用:在哪里获取函数调用描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我的msaccess.exe API调用之一有问题,这个调用可以在我的desctop上运行

但是在笔记本电脑上无效在MS ACCESS内。两台计算机之间存在很多

的差异,包括一台运行Office 2000和另一台运行Office 2003的
。此代码由之前的开发人员创建。我需要

找到API调用的描述和参数。我找到了这篇文章

http://msdn.microsoft.com/library/de...ce03082001.asp


Office VBA和Windows API

说我应该使用我的电脑上没有的Win32.API.txt或

我应该安装

Microsoft Platform SDK,其中包含

Windows API的完整文档。我安装了,但找不到MS ACCESS的功能。

请告诉我在哪里查找MS的函数调用描述

ACCESS API函数。 />
另一个问题是:为什么从Access 2000调用此功能时

接受十六进制值,从Access 2003调用时它不接受

十六进制值注册表配置单元。

基本上我将感谢所有参数的输入格式。

函数的定义是:


声明函数adh_accRegWriteVal Lib" msaccess.exe"别名#71 _

(ByVal hkeyRoot As Long,ByVal strSubKey As String,ByVal strValName As

String,_

lpData As Any,ByVal lngType As Long )很长时间


提前感谢您的帮助,


-

问候,

Yelena Varshal


通过 http:/发布消息/www.accessmonster.com

解决方案

" Yelena Varshal via AccessMonster.com" < u15452 @乌韦>写在

news:5ea0d9b8b74a3 @ uwe:

基本上我会感激所有
参数的输入格式。函数定义是:

声明函数adh_accRegWriteVal Lib" msaccess.exe"别名#71
_
(ByVal hkeyRoot As Long,ByVal strSubKey As String,ByVal
strValName As
String,_
lpData As Any,ByVal lngType如长(长)




你想在这做什么?我不能想到这样的情况

我会尝试你在这里做的事情。如果你想自动化

Access,那绝对不是*这样的方式!


-

David W. Fenton http://www.dfenton.com/

usenet at dfenton dot com http://www.dfenton.com/DFA/


David,


我正在使用现有代码。创建此代码的人不再为公司工作
了。她使用此函数将几个条目

写入自定义注册表项以在退出时保存应用程序设置。它在我的桌面上使用Office 2000非常好用。这个函数是一个标准的API

调用,我只发布了它的声明部分。她从模块

调用它如下:


rc = adh_accRegWriteVal(adhcHKEY_LOCAL_MACHINE,REGPATH&

" AppKeyName" ,Top,。y1,adhcREG_DWORD)


其中

adhcHKEY_LOCAL_MACHINE是一个预定义的常数& H80000002,它保留为

HKEY_LOCAL_MACHINE

REGPATH是一个预定义的常量,在注册表中有一个路径

AppKeyName是注册表项的密钥名称

Top是一个价值名称

..y1是一个价值数据(这只是一个记录中的数值。


不起作用的部分是adhcHKEY_LOCAL_MACHINE。正如我所说,它的值是
& H80000002,它是十六进制的,适用于Access 2000.它没有
可以使用Access 2003.如果我替换这个值使用小数

表示相同的数字 - 2147483650然后Access在Access 2000中使用的数字末尾添加一个英镑符号

#。

我试图了解这个函数的正确语法和

我应该如何输入值。

但是如果你说我应该请使用soemthing,请让我知道我应该从Access模块​​中使用
来写入注册表。


谢谢,

Yelena


David W. Fenton写道:

基本上我会感激所有参数。函数定义是:


[引用文本剪切 - 5行]

字符串,_
lpData为Any,ByVal lngType为Long)As Long


你想在这做什么?我不能想到这样的情况
我会尝试你在这里做的事情。如果你想自动化访问,那么这绝对不是*的方式!




-

问候,

Yelena Varshal


通过AccessMonster.com发布消息
http://www.accessmonster.com/Uwe/For...ccess/200604/1


Yelena-

" adh"在函数名称的开头让我觉得这个

代码来自Access Developer的手册,由Getz,Gilbert和

Litwin。你可能会在那里寻找线索。 (这是一本很棒的书,如果你没有看到它,那就是
。)

-John


" ; Yelena Varshal通过AccessMonster.com < u15452 @乌韦>写了留言

news:5ea0d9b8b74a3 @ uwe ...

你好,

我有一个msaccess.exe API调用问题在我的
desctop上工作
但不能在MS ACCESS内的笔记本电脑上工作。两台计算机之间存在很多差异,包括一台运行Office 2000和另一台运行Office 2003的计算机。此代码由之前的开发人员创建。我需要
来查找API调用的描述和参数。我找到了这篇文章

http://msdn.microsoft.com/library/de...ce03082001.asp

Office VBA和Windows API
我应该安装
Microsoft Platform SDK,其中包含完整的文档。
Windows API。我安装了,但找不到MS ACCESS的功能。
请告诉我在哪里查找MS
ACCESS API函数的函数调用描述。
另一个问题是:为什么这样从Access 2000调用时,函数接受十六进制值,从Access 2003调用时,它不会接受注册表配置单元的十六进制值。
基本上我将不胜感激所有参数的输入格式。

声明函数adh_accRegWriteVal Lib" msaccess.exe"别名#71 _
(ByVal hkeyRoot As Long,ByVal strSubKey As String,ByVal strValName As
String,_
lpData as Any,ByVal lngType As Long)As Long

谢谢提前寻求任何帮助,

-
问候,
Yelena Varshal

通过 http://www.accessmonster.com



Hello,

I have a problem with one of msaccess.exe API calls that work on my desctop
but does not work on the laptop from within MS ACCESS. There is a lot of
differences between 2 computers including one running Office 2000 and another
running Office 2003. This code was created by a previous developer. I need to
find the description and parameters of the API calls. I found the article

http://msdn.microsoft.com/library/de...ce03082001.asp

Office VBA and the Windows API
that says that I should use Win32.API.txt that I don''t have on my computer or
I should install
The Microsoft Platform SDK, which contains complete documentation for the
Windows API. I installed that, but could not find functions for MS ACCESS.
Please, let me know where to look for the function call description for MS
ACCESS API functions.
Another question is: why this fuction when called from Access 2000 does
accept hexadecimal value and when called from Access 2003 it does not accept
hexadecimal value for the Registry Hive.
Basically I will be grateful for the input format of all parameters. The
function definition is:

Declare Function adh_accRegWriteVal Lib "msaccess.exe" Alias "#71" _
(ByVal hkeyRoot As Long, ByVal strSubKey As String, ByVal strValName As
String, _
lpData As Any, ByVal lngType As Long) As Long

Thanks in advance for any help,

--
Regards,
Yelena Varshal

Message posted via http://www.accessmonster.com

解决方案

"Yelena Varshal via AccessMonster.com" <u15452@uwe> wrote in
news:5ea0d9b8b74a3@uwe:

Basically I will be grateful for the input format of all
parameters. The function definition is:

Declare Function adh_accRegWriteVal Lib "msaccess.exe" Alias "#71"
_
(ByVal hkeyRoot As Long, ByVal strSubKey As String, ByVal
strValName As
String, _
lpData As Any, ByVal lngType As Long) As Long



What are you trying to do here? I can''t think of a situation where
I''d ever attempt what you''re doing here. If you want to automate
Access, then this is definitely *not* the way to go about it!

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/


David,

I am working with existing code. The person who created this code does not
work for the company anymore. She used this function to write several entries
into the custom registry key to save application settings on exit. It works
really fine on my desktop with Office 2000. This function is a standard API
call , I posted just the declaration part of it. She calls it from a module
as follows:

rc = adh_accRegWriteVal(adhcHKEY_LOCAL_MACHINE, REGPATH &
"AppKeyName", "Top", .y1, adhcREG_DWORD)

where
adhcHKEY_LOCAL_MACHINE is a pre-defined constant &H80000002 which stays for
HKEY_LOCAL_MACHINE
REGPATH is a pre-defined constant with a path in the registry
AppKeyName is a key name for the registry key
Top is a Value Name
..y1 is a Value Data (this is just a numeric value from a record.

The part that does not work is adhcHKEY_LOCAL_MACHINE. As I say, its value
&H80000002 which is hexadecimal and it works for Access 2000. It does not
work with Access 2003. if I replace this value with the decimal
representation of the same number - 2147483650 then Access adds a pound sign
# at the end of the number an it works in Access 2000.
I was trying to get a feel for the proper syntax for this function and for
how I should enter values.
But if you say I shoul use soemthing else, please, let me know what should I
use from Access module to write to the registry.

Thanks,
Yelena

David W. Fenton wrote:

Basically I will be grateful for the input format of all
parameters. The function definition is:


[quoted text clipped - 5 lines]

String, _
lpData As Any, ByVal lngType As Long) As Long



What are you trying to do here? I can''t think of a situation where
I''d ever attempt what you''re doing here. If you want to automate
Access, then this is definitely *not* the way to go about it!



--
Regards,
Yelena Varshal

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200604/1


Yelena-
the "adh" at the beginning of the function name makes me think that this
code came from the Access Developer''s Handbook, by Getz, Gilbert, and
Litwin. You might look there for clues. (It''s a great book, in case you
haven''t seen it.)
-John

"Yelena Varshal via AccessMonster.com" <u15452@uwe> wrote in message
news:5ea0d9b8b74a3@uwe...

Hello,

I have a problem with one of msaccess.exe API calls that work on my
desctop
but does not work on the laptop from within MS ACCESS. There is a lot of
differences between 2 computers including one running Office 2000 and
another
running Office 2003. This code was created by a previous developer. I need
to
find the description and parameters of the API calls. I found the article

http://msdn.microsoft.com/library/de...ce03082001.asp

Office VBA and the Windows API
that says that I should use Win32.API.txt that I don''t have on my computer
or
I should install
The Microsoft Platform SDK, which contains complete documentation for the
Windows API. I installed that, but could not find functions for MS ACCESS.
Please, let me know where to look for the function call description for MS
ACCESS API functions.
Another question is: why this fuction when called from Access 2000 does
accept hexadecimal value and when called from Access 2003 it does not
accept
hexadecimal value for the Registry Hive.
Basically I will be grateful for the input format of all parameters. The
function definition is:

Declare Function adh_accRegWriteVal Lib "msaccess.exe" Alias "#71" _
(ByVal hkeyRoot As Long, ByVal strSubKey As String, ByVal strValName As
String, _
lpData As Any, ByVal lngType As Long) As Long

Thanks in advance for any help,

--
Regards,
Yelena Varshal

Message posted via http://www.accessmonster.com



这篇关于msaccess.exe API调用:在哪里获取函数调用描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆