wincc中的字符串的拼接
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#pragma option(mbcs) #define DATA_SIZE 20
BYTE byData[DATA_SIZE];
int i,retv;
char destination[25];
char *blank = "ss";
char *Istr = "1", *NewTag ="NewTag_";
retv=GetTagRaw("YSSJ1",byData,DATA_SIZE);
SetTagSWord("RetV",(short)retv); //Return-Type: BOOLi=1;
do
{
sprintf(destination,"NewTag_%d",i);
SetTagChar("s1",destination); //Return-Type: BOOL
SetTagByte(destination,byData[i]); //Return-Type: BOOL printf("%s",destination);
i=i+1;
}while(i<6);
==========================================================
字符串中若,在变量中添加个 "a1="\"";
楼主最近还看过