-
06-07-2013, 04:28 PM #1Junior Member
- Ngày tham gia
- Sep 2015
- Bài viết
- 0
Characters Allowed in file name (ANSI)
Mã:int MakeAllowed(char* in_data, char *out_data, const char* no_Allowed) { printf(no_Allowed); CString zsTemp(in_data); int first = -1; int itemPos = 0; int item = 0; char *tempbuf =(char*) _alloca(sizeof(TCHAR)); first = zsTemp.FindOneOf(no_Allowed); _tcsnset(tempbuf, zsTemp.GetAt(first-1), 1); tempbuf[1] = '\0'; while(first!=-1) { _tcsnset(tempbuf, zsTemp.GetAt(first-1), 1); printf(" Char find: %s",tempbuf); zsTemp.Replace(first - 1, (LPCTSTR)tempbuf,""); first = zsTemp.FindOneOf(no_Allowed); item++; } int jj = zsTemp.GetLength(); memcpy(out_data, zsTemp.GetData(), jj); out_data[jj] = '\0'; return jj; }
char str[]="A/B|C:S<V>MDEFbcdt>oo";
MakeAllowed(inStr, outStr, "<>|:");
outStr: ABCSVMDEFbcdtooView more random threads:
- Cách Build Botnet/Virus Rxbot in VC++6.0 như thế nào?
- virus inject DLL nghĩa là gì? Tại sao chỉ cần kill Explorer là có thể unhook được???
- Viết virus khóa chuột - Lập trình virus trên C
- Tài liệu và mã nguồn spyware có thể kiếm ở đâu ?
- Code virus viết trên VC++ hoạt động như thế nào?
- Khẩn cấp diệt con bot trên máy các bạn !
- Code virut viết bằng C, tác dụng của nó như thế nào?
- Virus Autorun USB dù Windows đã Disable Autorun
- Mã nguồn chương trình quyét virus viết trên VC++ 2008
- Cách chống kill thread cho phần mềm anticheat có cơ chế hoạt động giống một chương trình antivirus?
Giảm giá khi mua pallet nhựa Trà Vinh Tại Trà Vinh, một trong những địa điểm nổi tiếng với ngành nông nghiệp và sản xuất, pallet nhựa Trà Vinh đóng vai trò không thể phủ nhận trong quá trình vận...
Giảm giá khi mua pallet nhựa Trà...