腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Marshal
const
char
**
、
我正在为ARMA3编写一个扩展,通常你可以简单地写一个C++库来实现这个函数我正在开发一个C#库,我想在其中实现这个函数。函数RVExtensionArgs有一个修饰名称,32位的名称为_RVExtensionArgs@20,64位的名称为RVExtensionArgs 我正在努力
浏览 41
提问于2017-02-25
得票数 2
回答已采纳
2
回答
在vc++中将“System::String^”转换为“
const
char
*”
、
、
、
如何在vc++中将‘System::String^’转换为'
const
char
*‘?error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to '
const
char
*' 请帮帮我
浏览 0
提问于2011-10-06
得票数 6
回答已采纳
1
回答
封送处理-将std::vector<
char
>转换为string^,反之亦然
、
、
VectorToString(std::vector<
char
> data)
const
char
* newData = &data[0]; result=
marshal
_as<String^>(newData);} StringToVector(String ^ data)
marshal
_contextctx; IntPtr p =
浏览 7
提问于2017-08-13
得票数 2
回答已采纳
1
回答
C++/CLI
marshal
_context本机字符串损坏
、
、
、
marshal
_context();}void FooUnmanaged(
const
char
* str) { //
浏览 5
提问于2020-05-01
得票数 0
回答已采纳
2
回答
文本从文本框到字符*(转换/封送)
、
、
、
我有以下代码:
const
char
* host2 = (
const
char
*)(void*)
Marshal
Marshal
::FreeHGlobal(host2); 它在
Marshal
::FreeHGlobal下给出了一条红线(Visual 2012)。有人能给我一个正确的方向,从textbox获取文本并将其发送到
const
char<
浏览 1
提问于2013-06-25
得票数 0
回答已采纳
3
回答
什么时候需要使用FreeHGlobal()?
、
如果我按如下方式使用
Marshal
::StringToHGlobalAnsi:我需要使用
Marshal
::FreeHGlobal()吗?
浏览 0
提问于2011-10-08
得票数 2
回答已采纳
1
回答
System::String^ cast to
const
char
*没有正确地存储在外部变量中
、
、
、
声明external
const
char
* imgfilename;
const
char
* imgfilename;OpenFileDialogopenFile->ShowDialog() == Windows::Forms::DialogResult::OK ) { msclr::intero
浏览 1
提问于2014-02-24
得票数 0
回答已采纳
1
回答
StringToCoTaskMemUni或StringToCoTaskMemAnsi方法会导致挂起吗?
、
、
我在c++/CLI中有以下代码,并在使用.net将.net字符串转换为
char
*时观察挂起 debug(" cashincdistores-- going to call StringToCoTaskMemAnsi); IntPtr iPtr =
Marshal
debug(" cashincdistores-- StringToCoTask
浏览 8
提问于2016-06-29
得票数 0
回答已采纳
2
回答
将字符串^转换为
const
char
*
、
、
、
我试图调用一个函数,它需要一个指向常量字符串的长指针,所以是
const
*或LPCSTR。
const
char
* cPath = txtBoxPath->Text.c_str();error C2228: left of '.c_str'
浏览 3
提问于2014-03-17
得票数 2
回答已采纳
1
回答
指向
Char
数组的
char
指针
、
因此,我有一个返回
char
指针的方法: {
marshal
_context ^ context = gcnew
marshal
_context();
char
* temp; cont
char
* convertedString =
浏览 3
提问于2014-06-13
得票数 2
回答已采纳
3
回答
字符串到
char
*封送处理
、
、
我编写了一个托管C++类,它具有以下功能:{}
浏览 5
提问于2008-11-06
得票数 3
回答已采纳
1
回答
将字符串传递给dll
、
、
、
、
我通过"Add References“而不是"DLLImport”将dll添加到C#应用程序我在c++ dll中的函数:{ void myFunc(
char
HWNDPlaceholder.Child = host; (HWNDPlaceholder.Child as WPFOpenGLLib.OpenGLHw
浏览 4
提问于2011-05-01
得票数 1
回答已采纳
1
回答
何时应该对gcnew分配的对象调用delete?
、
方法4 //using namespace msclr::interop;
const
char
* str4 = context->
marshal
_as<
const
char
*>(str); puts(s
浏览 3
提问于2011-08-17
得票数 11
回答已采纳
2
回答
托管C++如何将非空终止的
const
*转换为字符串^
、
、
在我的本机+托管代码项目中,我需要将一个
const
*( null )转换为托管字符串^。当
char
*被正确地终止时,下面的代码运行良好。但是,当
char
*不是null终止时,它会返回疯狂的字符串。String^ STAK::CLRServerProxy::ToCLR(
const
char
* str) return msclr::interop::
marshal
_as<String^>
浏览 0
提问于2014-03-25
得票数 1
回答已采纳
3
回答
跨程序集边界将托管C++/CLI类型转换为非托管类型
、
、
、
、
public: { }这符合要求,但函数convert不会在程序集外部公开可见
浏览 6
提问于2011-07-18
得票数 2
2
回答
在C++中将字符串^转换为常量空*
、
、
、
String^ v1 = textBox1->Text;因此,如何将Double转换为
const
void*的解决方案也可以使用。
浏览 2
提问于2015-06-20
得票数 1
1
回答
将System::String^转换为无符号字符*
、
、
我试过了,但不起作用:{ strcpy((
char
*)msg, userInput
浏览 11
提问于2018-02-12
得票数 0
回答已采纳
2
回答
如何将C++/CLI字符串转换为
const
char
*
、
、
、
char
* s) System::String ^result =
marshal
_as<System::String^>(s);} {
const
char
*result = context.
marshal</
浏览 3
提问于2016-01-14
得票数 7
回答已采纳
1
回答
C++/CLI LoadLibrary转换系统失败::String to LPCWSTR和
const
*
、
char
*)
Marshal
::StringToHGlobalAnsi(string).ToPointer()); //
const
wchar_t * lib_name = ctx->
marshal
_as<
const
wchar_t*, System::String^>(jvmDllPath
char
* CliToNativeStr
浏览 1
提问于2012-04-05
得票数 1
回答已采纳
2
回答
将字符串从C++/CLI类库传递给C#
、
、
、
我用VS 2010 C++/CLI编写了一个类库,并创建了一个dll。#pragma once { { std::string getstringfromcpp() return "Hello World"; };我想在C#程序中使用它,将这个dll添加到引用中,然
浏览 2
提问于2015-09-01
得票数 1
回答已采纳
点击加载更多
相关
资讯
Golang Json Marshal 源码分析
基于C++动态库DLL应用开发
const和define的区别
SQL Server Binary 类型和 Char类型数据
MySQL中如何选择VARCHAR和CHAR类型
热门
标签
更多标签
云服务器
ICP备案
云点播
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券