指向VB中的指针 [英] Pointer to a Pointer in VB

查看:84
本文介绍了指向VB中的指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试在VB中设置代码时遇到问题,以处理API定义中的

参数被定义为指针指针的情况。 API定义的摘录是:

void **对象//指向接口指针的指针

Object

[out]指向接口指针变量的指针,接收指针

接口。

有没有人为VB语言解决了这个问题?


Dave

I''m having a problem trying to set up code in VB to handle the case where an
argument in an API definition is defined as a pointer to a pointer. An
excerpt from the API''s definition is:
void ** Object //Pointer to an interface pointer
Object
[out] Pointer to an interface pointer variable that receives a pointer for
an interface.
Has anyone solved this for the VB language?

Dave

推荐答案

戴夫,

你试过这个问题吗?大厅"在

microsoft.public.dotnet.framework.interop新闻组?


不幸的是我怀疑这个新闻组中的大多数常客都做得不够

互操作以提供很多帮助。


如果你没有它Adam Nathan的书.NET和COM - 完整

互操作性指南来自SAMS Press,为你提供你想知道的关于Interop然后一些的所有东西。


希望这有助于

Jay


" Dave" < ww*@com.com>在消息中写道

新闻:Qz ****************** @ twister01.bloor.is.net.c able.rogers.com ...
Dave,
Have you tried asking this "down the hall" in the
microsoft.public.dotnet.framework.interop newsgroup?

Unfortunately I suspect most regulars in this newsgroup do not do enough
interop to offer much assistance.

If you don''t have it Adam Nathan''s book ".NET and COM - The Complete
Interoperability Guide" from SAMS Press, provides you will every thing you
ever wanted to know about Interop and then some.

Hope this helps
Jay

"Dave" <ww*@com.com> wrote in message
news:Qz******************@twister01.bloor.is.net.c able.rogers.com...
我在尝试在VB中设置代码时遇到问题,以处理
将API定义中的参数定义为指针指针的情况。 API的定义摘录如下:

void ** Object //指向接口指针的指针

对象
[out]指向接收指针的接口指针变量的指针。

有没有人用VB语言解决这个问题?

Dave
I''m having a problem trying to set up code in VB to handle the case where an argument in an API definition is defined as a pointer to a pointer. An
excerpt from the API''s definition is:
void ** Object //Pointer to an interface pointer
Object
[out] Pointer to an interface pointer variable that receives a pointer for
an interface.
Has anyone solved this for the VB language?

Dave



Jay


是的。我在Interop组以及此处交叉发布它。那里没有运气




我不确定使用API​​是否在Interop域中,因为它与COM无关。 br />

无论如何,谢谢你的兴趣。


戴夫


-------- -------------------------------------------------- ------------------

------------------------ ----------


Jay B. Harlow [MVP - Outlook]" < JA ******** @ email.msn.com>在消息中写道

新闻:eC ************* @ TK2MSFTNGP10.phx.gbl ...
Jay

Yes. I crossposted it in the Interop group as well as here. No luck there as
yet.

I''m not sure if using API''s is in the Interop domain as its not COM related.

Thanks for your interest anyway.

Dave

----------------------------------------------------------------------------
----------------------------------

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:eC*************@TK2MSFTNGP10.phx.gbl...
戴夫,
你有没有尝试过这个在大厅里的问题。在
microsoft.public.dotnet.framework.interop新闻组中?

不幸的是,我怀疑这个新闻组中的大多数常客都没有做足够的
互操作来提供很多帮助。

如果你没有Adam Nathan的书.NET和COM - 完整的
互操作性指南来自SAMS Press,为您提供有关Interop以及其他一些内容的所有内容。

希望这有助于
Jay
Dave,
Have you tried asking this "down the hall" in the
microsoft.public.dotnet.framework.interop newsgroup?

Unfortunately I suspect most regulars in this newsgroup do not do enough
interop to offer much assistance.

If you don''t have it Adam Nathan''s book ".NET and COM - The Complete
Interoperability Guide" from SAMS Press, provides you will every thing you
ever wanted to know about Interop and then some.

Hope this helps
Jay



你有没有尝试过使用IntPtr?


" Dave" < ww*@com.com>在消息中写道

新闻:Qz ****************** @ twister01.bloor.is.net.c able.rogers.com ...

|我在尝试在VB中设置代码来处理这样的情况时遇到了问题

an

| API定义中的参数被定义为指向指针的指针。一个

| API的定义摘录如下:

|

|

| void ** Object //指向接口指针的指针

|

|

|对象

| [out]指向接收指针的接口指针变量的指针

|一个界面。

|

|

|有没有人用VB语言解决这个问题?

|

|戴夫

|

|
have you tried to use IntPtr yet?

"Dave" <ww*@com.com> wrote in message
news:Qz******************@twister01.bloor.is.net.c able.rogers.com...
| I''m having a problem trying to set up code in VB to handle the case where
an
| argument in an API definition is defined as a pointer to a pointer. An
| excerpt from the API''s definition is:
|
|
| void ** Object //Pointer to an interface pointer
|
|
| Object
| [out] Pointer to an interface pointer variable that receives a pointer for
| an interface.
|
|
| Has anyone solved this for the VB language?
|
| Dave
|
|


这篇关于指向VB中的指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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