#include <Windows.h>
#include "resource.h"
int main(void)
{
HINSTANCE hInst = GetModuleHandle(NULL);
LPWSTR p = NULL;
LoadStringW(hInst, IDS_STRING101, (LPWSTR)&p, 0);
printf("長度為: %d\n", wcslen(p));
}

目前共有3篇帖子。
【方法】獲取字元串資源中某個字元串的長度的方法
回复帖子 |