Welcome![Sign In][Sign Up]
Location:
Search - MemSet

Search list

[CSharpmemset

Description: memset,memcpy和strcpy-memset, memcpy and htpasswd
Platform: | Size: 1116 | Author: zxk | Hits:

[Other resourceWINCEDB5.0

Description: wince 自带的DB数据库编译,由CEDBUse修改下,主要是修改了编译通不过,通过后操作不正常,还有验证在MIPS和ARM分别完成数据库操作(增加,删除,修改) 一开始本人以为自带的数据库只支持四列,原来不是指这个意思而是指4种索引!所以在本源码里已经在表里加入了五列数据! 主要包含文件: CEDBUseDlg.cpp CEDBUseDlg.h StudentInputDlg.cpp StudentInputDlg.h CEDBUse.cpp CEDBUse.h 注意与原版不同的 //memset(pProps,0,LocalSize(pProps)) 最被注释掉 因为第二次分配内存时会导致本程序出错,注释掉不影响操作
Platform: | Size: 52173 | Author: lzy | Hits:

[WEB Codevc21487899244

Description: 主要源码: void CFDlg::OnChangeEdit1() { UpdateData() m_strExt.MakeUpper() m_list.ResetContent() if(m_strExt.GetLength()==0) return CStdioFile sf if(sf.Open(\"FileExt.txt\",Cfile::modeRead)) { CString strTemp,strOut while(sf.ReadString(strTemp)) { if(strTemp.Left(m_strExt.GetLength()) ==m_strExt) { m_list.AddString(strTemp) } } } sf.Close() m_list.SetCurSel(0) this->OnSelchangeList2() } void CFDlg::OnSelchangeList2() { CString strTemp,strExt m_list.GetText(m_list.GetCurSel(),strTemp) strExt=strTemp.Left(strTemp.FindOneOf(\" \")) //MessageBox(strExt) CString strFileName =\"eee.\"+strExt //MessageBox(strFileName) SHFILEINFO shfi memset(&shfi,0,sizeof(shfi)) //或者ZeroMemory(&shfi,sizeof(shfi)) ::SHGetFileInfo(strFileName, FILE_ATTRIBUTE_NORMAL, &shfi, sizeof(shfi), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES) m_icon.SetIcon(shfi.hIcon) }
Platform: | Size: 41579 | Author: HUGH RENNY | Hits:

[CommunicationQueueTest

Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include \"Queue.h\" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox(\"put queue error\") } else { MessageBox(\"put queue success\") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category ///////////////////////////////////////// / / this is a example for using Queue ///////////////////////////////////////// # include "Queue . h "/ / define queue data struct QueueData struct (char data [20] int nId) / / define queue typedef TQueuelt; QueueDatagt; TMyQueue / / put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data)) / / try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success"))) / / get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: | Size: 34517 | Author: zj | Hits:

[Windows Kernel减少内存占用

Description:

优化C++程序编译效率的实例
(1)自定义程序的入口
(2)合并区段
(3)不用调malloc,free等函数
(3)不用cout来输出,cin来输入
(4)如果调用了很多库函数如memset,stycpy等等
的话,请导入msvcrt.lib,不然编译器会在程序里面
导入静态库,这样的话程序就会大很多。。
(5)........
减少程序运行内存占用量可以调用

SetProcessWorkingSetSize(GetCurrentProcess(),-1,-1);


Platform: | Size: 5807 | Author: newviews | Hits:

[CommunicationQueueTest

Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include "Queue.h" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox("put queue error") } else { MessageBox("put queue success") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category /////////////////////////////////////////// this is a example for using Queue /////////////////////////////////////////# include "Queue . h "//define queue data struct QueueData struct (char data [20] int nId)// define queue typedef TQueuelt; QueueDatagt; TMyQueue// put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data))// try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success")))// get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: | Size: 33792 | Author: zj | Hits:

[CSharpmemset

Description: memset,memcpy和strcpy-memset, memcpy and htpasswd
Platform: | Size: 1024 | Author: zxk | Hits:

[ARM-PowerPC-ColdFire-MIPScode_for_icc_avr2

Description: iccavr编译器下的源代码,一共有两个部分,这是第二个部分-iccavr the compiler source code, a total of two parts, this is the second part
Platform: | Size: 28672 | Author: 把儿 | Hits:

[Windows CEWINCEDB5.0

Description: wince 自带的DB数据库编译,由CEDBUse修改下,主要是修改了编译通不过,通过后操作不正常,还有验证在MIPS和ARM分别完成数据库操作(增加,删除,修改) 一开始本人以为自带的数据库只支持四列,原来不是指这个意思而是指4种索引!所以在本源码里已经在表里加入了五列数据! 主要包含文件: CEDBUseDlg.cpp CEDBUseDlg.h StudentInputDlg.cpp StudentInputDlg.h CEDBUse.cpp CEDBUse.h 注意与原版不同的 //memset(pProps,0,LocalSize(pProps)) 最被注释掉 因为第二次分配内存时会导致本程序出错,注释掉不影响操作-wince s own DB database compiled by the modifications under CEDBUse mainly modify the compiler pass, however, after the passage of abnormal operation, as well as verification in the MIPS and ARM, respectively, to complete the database operations (add, delete, modify) the very beginning I thought that since with the database only supports 4, the original was not referring to the meaning of but four kinds of index! Therefore, in this source in the exterior has joined the five data! main include file: CEDBUseDlg.cppCEDBUseDlg.hStudentInputDlg.cppStudentInputDlg.hCEDBUse.cppCEDBUse . h attention with different original// memset (pProps, 0, LocalSize (pProps)) commented out the most because the allocation of memory when the second would lead to this error, comment out does not affect the operation
Platform: | Size: 52224 | Author: lzy | Hits:

[Documentsvc21487899244

Description: 主要源码: void CFDlg::OnChangeEdit1() { UpdateData() m_strExt.MakeUpper() m_list.ResetContent() if(m_strExt.GetLength()==0) return CStdioFile sf if(sf.Open("FileExt.txt",Cfile::modeRead)) { CString strTemp,strOut while(sf.ReadString(strTemp)) { if(strTemp.Left(m_strExt.GetLength()) ==m_strExt) { m_list.AddString(strTemp) } } } sf.Close() m_list.SetCurSel(0) this->OnSelchangeList2() } void CFDlg::OnSelchangeList2() { CString strTemp,strExt m_list.GetText(m_list.GetCurSel(),strTemp) strExt=strTemp.Left(strTemp.FindOneOf(" ")) //MessageBox(strExt) CString strFileName ="eee."+strExt //MessageBox(strFileName) SHFILEINFO shfi memset(&shfi,0,sizeof(shfi)) //或者ZeroMemory(&shfi,sizeof(shfi)) ::SHGetFileInfo(strFileName, FILE_ATTRIBUTE_NORMAL, &shfi, sizeof(shfi), SHGFI_ICON|SHGFI_USEFILEATTRIBUTES) m_icon.SetIcon(shfi.hIcon) }-Main source: void CFDlg:: OnChangeEdit1 () (UpdateData () m_strExt.MakeUpper () m_list.ResetContent () if (m_strExt.GetLength () == 0) return CStdioFile sf if (sf.Open (FileExt.txt, Cfile :: modeRead)) (CString strTemp, strOut while (sf.ReadString (strTemp)) (if (strTemp.Left (m_strExt.GetLength ()) == m_strExt) (m_list.AddString (strTemp)))) sf.Close ( ) m_list.SetCurSel (0) this-
Platform: | Size: 40960 | Author: HUGH RENNY | Hits:

[Linux-Unixjustforfun

Description: srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] + 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[] - srand[getpid[]] /* initialize some of the memory*/ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH* RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128]+ 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[]
Platform: | Size: 4096 | Author: xrgj | Hits:

[Linux-Unixyacc

Description: srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] + 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[] - srand[getpid[]] /* initialize some of the memory*/ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH* RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128]+ 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[]
Platform: | Size: 11264 | Author: xrgj | Hits:

[Othercheck_switchcase

Description: 代码检查工具 只要简单一些switch case的配对 以及类里面memset的使用,防止盖了虚表-A simple code inspection tool switch case some type of matching, as well as the use of memset inside to prevent the cover of the virtual table
Platform: | Size: 237568 | Author: lionline | Hits:

[Compress-Decompress algrithmshuffman

Description: 在网上能够找到的最简单,最快速的哈夫曼编码。本方法不使用任何扩展动态库,比如STL或者组件。只使用简单的C函数,比如:memset,memmove,qsort,malloc,realloc和memcpy。-Online to find the simplest, fastest Huffman. This method does not use any extension of the dynamic libraries, such as STL or components. Only using a simple C function, such as: memset, memmove, qsort, malloc, realloc and memcpy.
Platform: | Size: 14336 | Author: zhaoyibin | Hits:

[Compress-Decompress algrithmsSimpleQuickHuffmanCode

Description: 本文描述在网上能够找到的最简单,最快速的哈夫曼编码。本方法不使用任何扩展动态库,比如STL或者组件。只使用简单的C函数,比如:memset,memmove,qsort,malloc,realloc和memcpy。 大家都会发现,理解甚至修改这个编码都很容易-This article describes the Internet to find the simplest, fastest Huffman. This method does not use any extension of the dynamic libraries, such as STL or components. Only using a simple C function, such as: memset, memmove, qsort, malloc, realloc and memcpy. We will find, understand and even modify the code easily
Platform: | Size: 145408 | Author: 李虚东 | Hits:

[Other3

Description: 本文描述在网上能够找到的最简单,最快速的哈夫曼编码。本方法不使用任何扩展动态库,比如STL或者组件。只使用简单的C函数,比如:memset,memmove,qsort,malloc,realloc和memcpy。 -This article describes the Internet can find the simplest, most fast Huffman coding. This method does not use any extension dynamic libraries, such as STL or component. Using only a simple C function, for example: memset, memmove, qsort, malloc, realloc, and memcpy.
Platform: | Size: 13312 | Author: mxb | Hits:

[matlabMemset_Memcpy_Strcpy

Description: Memset、Memcpy、Strcpy 的作用和区别-Memset, Memcpy, Strcpy distinction between the role and
Platform: | Size: 6144 | Author: ready | Hits:

[Linux-Unixmem-memset

Description: memset: Simple memory set in various ways for Linux v2.13.6.
Platform: | Size: 2048 | Author: dingherrai | Hits:

[Linux-Unixmemset

Description: Most apps use memset sanely. Memsetting about 3.4 bytes or less get penalized here compared to the generic implementation Source Code for Linux.
Platform: | Size: 3072 | Author: puiwivd | Hits:

[Embeded Linuxmemset

Description: 在linux环境下memset()函数简单的宏,可以学习用-In the Linux environment memset () function simple macros, can learn to use
Platform: | Size: 3072 | Author: 柏胜 | Hits:
« 12 3 »

CodeBus www.codebus.net