
TC
和光同尘 、Y_____
这个作者很懒,什么都没留下…
展开
-
string转换为LPCWSTR,求char*转换LPWSTR
LPCWSTR stringToLPCWSTR(std::string orig){size_t origsize = orig.length() + 1;const size_t newsize = 100;size_t convertedChars = 0;wchar_t *wcstring = (wchar_t )malloc(sizeof(wchar_t)(orig.length() - 1));mbstowcs_s(&convertedChars, wcstring, orig原创 2021-04-16 10:09:15 · 150 阅读 · 0 评论 -
C语言通过MFC访问FTP
// ConsoleApplication10.cpp : 定义控制台应用程序的入口点。//#include “stdafx.h”#include <stdio.h>#include <tchar.h>#include <process.h>#include <afxinet.h>#include <wininet.h>#include <windows.h>#includeusing namespace std;原创 2021-04-16 10:07:13 · 299 阅读 · 0 评论 -
TC开发中写多行属性char**处理方法
//申请一个动态的数组char ** indeta_s = (char**)MEM_alloc( sizeof(char*)vec_indeta.size()+1);for(int k=0;k<vec_indeta.size();k++){printf(“indeta添加到数组\n”);//给数组对象分配一个动态的字符串长度indeta_s[k]=(char)MEM_alloc( sizeof(char*)*(vec_indeta[k].length()));tc_strcpy(indet原创 2021-04-13 10:17:28 · 154 阅读 · 0 评论