当前位置:网站首页>CString转char[]函数
CString转char[]函数
2022-07-28 05:23:00 【海乐学习】
/*
* 函数名: CString2Char
* 参数1: CString str 待转换字符串
* 参数2: char ch[] 转换后将要储存的位置
* 将Unicode下的CString转换为char*
*/
void CString2Char(CString str, char ch[])
{
int i;
char *tmpch;
int wLen = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);//得到Char的长度
tmpch = new char[wLen + 1]; //分配变量的地址大小
WideCharToMultiByte(CP_ACP, 0, str, -1, tmpch, wLen, NULL, NULL); //将CString转换成char*
for(i = 0; tmpch[i] != '\0'; i++) ch[i] = tmpch[i];
ch[i] = '\0';
} 边栏推荐
- 深度学习(增量学习)——ICCV2021:SS-IL: Separated Softmax for Incremental Learning
- Deep learning (self supervised: Moco V3): An Empirical Study of training self supervised vision transformers
- Reinforcement learning - dqn in value learning
- Using neural network to predict the weather
- 关于Fusion on Apple Silicon的谨慎猜测
- 《AdaFace: Quality Adaptive Margin for Face Recognition》用于人脸识别的图像质量自适应边缘损失
- Summary of common WAF interception pages
- tf.keras搭建神经网络功能扩展
- The signature of the update package is inconsistent with that of the installed app
- How much does small program development cost? Analysis of two development methods!
猜你喜欢

Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations

Four perspectives to teach you to choose applet development tools?

深度学习(自监督:CPC v2)——Data-Efficient Image Recognition with Contrastive Predictive Coding

五、视频处理与GStreamer

Deep learning (II) into machine learning and deep learning programming

深度学习(自监督:SimCLR)——A Simple Framework for Contrastive Learning of Visual Representations

Summary of common WAF interception pages

后门攻击与对抗样本攻击的比较研究

基于tensorflow搭建神经网络

What is the process of building a small program?
随机推荐
Deep learning (self supervision: Moco V2) -- improved bases with momentum contractual learning
Scenario solution of distributed cluster architecture: cluster clock synchronization
深度学习(自监督:CPC v2)——Data-Efficient Image Recognition with Contrastive Predictive Coding
Deep learning - metaformer is actually what you need for vision
深度学习(增量学习)——ICCV2021:SS-IL: Separated Softmax for Incremental Learning
What about the app store on wechat?
On low resolution face recognition in the wild:comparisons and new technologies
Deep learning (self supervision: simple Siam) -- Exploring simple Siamese representation learning
USB Network Native Driver for ESXi更新到支持ESXi7.0 Update 2
四、模型优化器与推理引擎
Realization of topic function
深度学习(自监督:SimSiam)——Exploring Simple Siamese Representation Learning
《Distilling the Knowledge in a Neural Network》知识蒸馏论文解读
无约束低分辨率人脸识别综述一:用于低分辨率人脸识别的数据集
ESXi on ARM v1.2 (2020年11月更新)
Improved knowledge distillation for training fast lr_fr for fast low resolution face recognition model training
EIGamal cryptosystem description
Knowledge point 21 generic
What are the detailed steps of wechat applet development?
Overview of unconstrained low resolution face recognition I: data sets for low resolution face recognition