返回类型 [英] Return type

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

问题描述




如何指定返回托管数组字符的函数的返回类型。

如果我尝试写: char __gc [] func()"我收到错误了!


我该怎么做?


谢谢!

Hi,

How can i specify the return type of a function returning a managed array of chars.
If i try to write: "char __gc[] func()" i get an error!

How can i do that?

Thanks!

推荐答案

>我如何指定返回chars托管数组的函数的返回类型。
> How can i specify the return type of a function returning a managed array of chars.
如果我尝试写:" char __gc [] func()"我收到错误!
If i try to write: "char __gc[] func()" i get an error!



char func()__ gc []


看看:

< a rel =nofollowhref =http://groups.google.com/groups?hl=zh-CN&lr=&ie=UTF-8&threadm=OkjTHPxQCHA.3776%40tkmsftngp11&rnum=1&prev=/组%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3Darray%2Bfaq%2Bmicrosoft%2Bmanaged%26btnG%3DSearchtarget =_ blank> http://groups.google.com/groups?hl= e ... 6btnG%3DSearch

http:// shrinkster.com/dm

-

Ben
http://bschwehn.de


char func() __gc[]

have a look at:

http://groups.google.com/groups?hl=e...6btnG%3DSearch
or http://shrinkster.com/dm
--
Ben
http://bschwehn.de


好的,谢谢!

但这真的很奇怪。 ..


Ben Schwehn< b。******* @ gmx.net>在消息新闻中写道:< uX ************** @ TK2MSFTNGP15.phx.gbl> ...
Ok, thanks!
But that is really strange...

Ben Schwehn <b.*******@gmx.net> wrote in message news:<uX**************@TK2MSFTNGP15.phx.gbl>...
怎么能我指定一个函数的返回类型返回一个托管的字符数组。
如果我尝试写:" char __gc [] func()"我收到错误!
How can i specify the return type of a function returning a managed array of chars.
If i try to write: "char __gc[] func()" i get an error!



char func()__ gc []

看看:

http://groups.google.com/groups?hl = e ... 6btnG%3DSearch
http://shrinkster.com/dm



好的,谢谢!

但这真的很奇怪...


Ben Schwehn< b。******* @ gmx.net>在消息新闻中写道:< uX ************** @ TK2MSFTNGP15.phx.gbl> ...
Ok, thanks!
But that is really strange...

Ben Schwehn <b.*******@gmx.net> wrote in message news:<uX**************@TK2MSFTNGP15.phx.gbl>...
怎么能我指定一个函数的返回类型返回一个托管的字符数组。
如果我尝试写:" char __gc [] func()"我收到错误!
How can i specify the return type of a function returning a managed array of chars.
If i try to write: "char __gc[] func()" i get an error!



char func()__ gc []

看看:

http://groups.google.com/groups?hl = e ... 6btnG%3DSearch
http://shrinkster.com/dm



这篇关于返回类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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