如何把值显示在屏幕上?REG_MULTI_SZMultiple text strings formatted as an array of null-terminated strings, and terminated by two null characters. Values that contain lists or multiple values in a form that people can read usually take this data type. The values in a REG_MULTI_SZ entry can be separated by spaces, commas or other s.
解决方案 »
- 嵌入RichEdit的 ActiveX控件 的OnDraw不被调用
- OnPaint函数在什么时候被调用
- 如何实现创建一个控件比父窗口还大?
- VC中如何实现像QQ账号登陆那样保存上次的输入数值?
- 使用DOM时,怎样能使表单元素的cnclick()事件发生,怎样使select元素的onchange()事件发生?
- [紧急求助!]如何加载dll中生成的PropertyPage?
- 急求救!对于多个终端发送的数据,每个终端数据按照5帧发送,每帧之间间隔2秒,请问服务器端该如何写接收程序???谢谢
- 如何去掉report型listctrl控件的列头(head),
- visual sourcesafe 的使用
- 请问大家关于vc编程的书籍?????????????????????????????????????????????????
- SDK编程中,如何动态地创建ActiveX控件???
- 还是关于读取汉字的问题 请教各位哥哥姐姐
谁知道帮帮忙吧!
在 atlbase.h
中提供了一个CRegKey 的类,很好用的。
你指的是不是MFC中的类?我不太懂MFC。
我指的是用C进行SDK编程。
REG_MULTI_SZ值往往由多个以"\0"结束的字符串组成,单用printf只能显示第一个字符串。有什么办法能把所有的字符串都显示才出来呢?
主要是看它的算法吧
if(PacketGetAdapterNames(AdapterName,&AdapterLength)==FALSE){
printf("Unable to retrieve the list of the adapters!\n");
return -1;
}
temp=AdapterName;
temp1=AdapterName;
while ((*temp!='\0')||(*(temp-1)!='\0'))
{
if (*temp=='\0')
{
memcpy(AdapterList[i],temp1,(temp-temp1)*2);
temp1=temp+1;
i++;
}
temp++;
}
AdapterNum=i;
for (i=0;i<AdapterNum;i++)
wprintf(L"\n%d- %s\n",i+1,AdapterList[i]);
printf("\n");