my dll function is ;
But the function give an error and my project time-out.Code:char* _stdcall pages(char* pageID){ char *p = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML><HEAD>\n<META http-equiv=Content-Type content=\"text/html; charset=windows-1252\">\n</HEAD>\n<BODY><p>"; if (pageID == 'm') { char* p2 = "madzombie deneme"; } else { char* p2 = "deneme"; } char* p3 = "\n<p>\n</BODY></HTML>\n"; int l1 = StringLength(p); int l2=StringLength(p2); int l3=StringLength(p3); int toplam = l1+l2+l3; char* sonuc = new char[toplam]; strcpy(sonuc,p); strcat(sonuc,p2); strcat(sonuc,p3); return sonuc; }
char p1 and char p3 are static variable. char p2 is dynamic variable.
what can i do ?



LinkBack URL
About LinkBacks


