![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC++
钟_凌
竹杖芒鞋轻胜马,一蓑烟雨任平生
展开
-
_access, _waccess 和 _access_s, _waccess_s
转自MicroSolft文档:https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=vs-2019_access,_waccess确定文件是否为只读。提供更安全的版本;参见_access_s, _waccess_s.句法Cint _access( cons...转载 2020-03-05 12:11:57 · 1878 阅读 · 0 评论 -
各种数据类型转换
//Byte数组转CStringCString Communal::ByteArrayToCString(CByteArray* btArray){ CString cs1,str; cs1.Empty(); int lon = btArray->GetCount(); for (int i = 0;i<lon;i++) { ...原创 2020-03-02 15:05:08 · 176 阅读 · 0 评论 -
預處理命令
1.文件包含:#include系統文件用:“<>”創建的文件用:“""”2.宏定義:#define3.條件編譯:#if, #elif, #else, #endif、#ifdef, #ifndef分三種情況:1、情況1: #ifdef _XXXX ...程序段1... #else ...程序段2... #endif ...原创 2019-08-08 18:43:08 · 93 阅读 · 0 评论 -
異常處理
1.try - catch--------------一個try後面可以跟多個catch;--------------------------------try{ //可能拋出異常的語句}catch (exception_type_1){ //處理異常的語句}catch (exception_type_2){ //處理異常的語句}//...原创 2019-08-08 18:44:58 · 125 阅读 · 0 评论 -
線程
---------------------------------------------------------------------------------------------------2016.09.22---------------------------------------------線程是系統內核對象之一。內核對象是系統內核分配的一個內存塊,該內存塊描述的是一個數據結...原创 2019-08-08 18:46:18 · 154 阅读 · 0 评论 -
C++中的return、exit和abort
1.exit();----------在調用時,會做大部分清理工作,但是決不會銷毀局部對象,因為沒有stack unwinding.會進行的清理工作包括:1)銷毀所有static和global對象;2)清空所有緩衝區;3)關閉所有I/O通道。終止前會調用經由 atexit()登錄的函數,atexit如果拋出異常,則調用terminate()。在調用的時候,對象還是不會被正確析構的,...原创 2019-08-08 18:47:43 · 262 阅读 · 0 评论 -
HHOOK鉤子編程
++++{ 源代碼:Mousehook、Mouse }+++++---------------------------------------------------------------------------------------原理:鉤子程序在特定消息發送沒達到目的窗口之前,將消息截獲,做出想要的處理,最後發送給目標窗口或不發送。消息種類:如鍵盤鉤子、鼠標鉤子、外殼鉤子-&...原创 2019-08-08 18:48:42 · 323 阅读 · 0 评论 -
MP3文件播放
1.必須包含頭文件:#include "mmsystem.h"2.必須包含靜態庫:#pragma comment(lib,"Winmm.lib")3.MCI(Media Control Interface,媒體控制接口)向Windows程序提供了在高層次上控制媒體設備接口的能力。程序不必關心具體設備,就可以對媒體設備進行控制。4.mciSendCommand:MCI的命令消息接口,所有的MC...原创 2019-08-08 18:50:25 · 715 阅读 · 0 评论 -
MFC-EditBox控件
2016.09.05編輯框控件使用--------------------------------------GetDlgItemText函數返回對話框中指定ID的控件上的文本。結合了GetDlgItem和GetWindowsText函數功能。SetDlgItemText函數將數據文本顯示在指定ID的對話框控件中。結合了GetDlgItem和SetWindowsText函數功能。Ge...原创 2019-08-08 18:52:13 · 1275 阅读 · 1 评论 -
動態鏈接庫
---------------------------------2016.09.10---------------------------------------------------------------------------動態鏈接庫------------------------------------------動態鏈接庫DLL(Dynamic-Link Library)...原创 2019-08-08 18:53:29 · 147 阅读 · 0 评论 -
內存分配函數
------------------------------malloc、calloc、realloc、alloca-------------------------------------------C語言的內存分配:靜態內存分配、動態內存分配----------------------------------------------靜態內存分配--------------內存在程序編...原创 2019-08-09 09:34:16 · 77 阅读 · 0 评论 -
模態(Modal)對話框和非模態(Modeless)對話框
------------------------------------------------2016.09.12------------------------------------------------模態(Modal)對話框和非模態(Modeless)對話框-----------------------------------------------模態對話框顯示時程序暫停執行,...原创 2019-08-09 09:35:55 · 406 阅读 · 0 评论 -
文件查找
--------------------------------20160928----------------------------------CFileFind類------------MatchesMask查找·符合指定文件屬性的文件GetFileName用於獲取查找的文件名稱,包含擴展名,不包含路徑GetFileTitle獲取文件名稱,去除擴展名,不包含路徑Get...原创 2019-08-09 09:36:54 · 99 阅读 · 0 评论 -
幾個文件處理函數(fseek,ftell,fread)
----------------------------幾個文件處理函數---------------------------------------------------1.fseek--------相關函數:rewind, ftell, fgetpos, fsetpos, lseek頭文件:#include <stdio.h>定義函數:int fseek(FI...原创 2019-08-09 09:38:09 · 178 阅读 · 0 评论 -
文件操作
有變量的文件名方式-------------------CString 定義名定義名.Format("文件名+%d/s/……+……",變量1,變量2,……);其他操作……-------------------------------------------------------------------------------------------------------------...原创 2019-08-09 09:45:47 · 223 阅读 · 0 评论 -
計算機術語英文翻譯臺 - 陸對照(侯捷老師整理)
轉載自侯捷的網站以下是侯捷個人陸續收集整理的有關於我所涉獵的領域的術語對照(英中繁簡)。歡迎所有朋友給我意見(任何意見)。謝謝。新書寫作,或發表文章時,我會以此表為參考。本表所列,並不表示我在寫譯書籍時一定會採用表內的中文術語。我也可能(並且常常)採用英文術語。一群性質相近同的「東西」,如果譯名一貫,閱讀的感覺就很好。一貫性的術語,擴充性高,延伸性高,系統性高。● 我喜...转载 2019-08-09 10:06:05 · 889 阅读 · 0 评论 -
WLAN的API
-----------------------------------------------------------------------------------------------------------------------------------WLAN.API-------------------------------------頭文件:Wlanapi.h思路:打開、配置...转载 2020-03-02 15:06:59 · 527 阅读 · 0 评论 -
幾個文件處理函數
1.fseek相關函數:rewind, ftell, fgetpos, fsetpos, lseek頭文件:#include <stdio.h>定義函數:int fseek(FILE * stream, long offset, int whence);函數說明:fseek()用來移動文件流的讀寫位置1、參數stream 為已打開的文件指針2、參數offse...原创 2019-08-08 18:40:24 · 115 阅读 · 0 评论 -
MFC线程及实例
转自:https://www.cnblogs.com/wenluderen/p/4246608.html在MFC里面实现线程的实例线程是一种从软件到硬件的技术,主要目的是为了提高运行速度,和多任务。×××××需要储备的资料(他人的)×××××××××××××××××http://haobinnan.blog.51cto.com/775253/658446多线程概述:进程和线程都...转载 2019-08-02 18:36:43 · 2056 阅读 · 0 评论 -
Plx使用手册学习------2 PlxPci_CommonBufferUnMap
声明:PLX_STATUSPlxPci_CommonBufferUnmap(PLX_DEVICE_OBJECT *pDevice,VOID **pVa);PLX Chip Support: All PLX devicesPLX芯片支持: 所有PLX仪器;Description:Unmaps the common buffer from user virtual space....翻译 2019-06-27 18:13:07 · 355 阅读 · 0 评论 -
Plx使用手册学习------3 PlxPci_DmaTransferBlock
Syntax:PLX_STATUSPlxPci_DmaTransferBlock(PLX_DEVICE_OBJECT *pDevice,U8 channel,PLX_DMA_PARAMS *pDmaParams,U64 Timeout_ms);PLX Chip Support:9054, 9056, 9080*, 9656, 8311, & 8000 DMADe...翻译 2019-06-27 18:47:50 · 1369 阅读 · 0 评论 -
Plx使用手册学习------4 PlxPci_NotificationRegisterFor
Syntax:PLX_STATUSPlxPci_NotificationRegisterFor(PLX_DEVICE_OBJECT *pDevice,PLX_INTERRUPT *pPlxIntr,PLX_NOTIFY_OBJECT *pEvent);PLX Chip Support:All PLX 9000 devices, 8311, 8000 DMA, 6000 NT,...原创 2019-06-27 19:06:47 · 761 阅读 · 0 评论 -
Plx使用手册学习------7 PlxPci_DeviceOpen
Syntax:PLX_STATUSPlxPci_DeviceOpen(PLX_DEVICE_KEY *pKey,PLX_DEVICE_OBJECT *pDevice);PLX Chip Support:All devicesDescription:Selects a specific PCI device for later use with PLX API calls. ...翻译 2019-06-28 10:34:18 · 799 阅读 · 0 评论 -
Plx使用手册学习------6 PlxPci_DeviceFind
Syntax:PLX_STATUSPlxPci_DeviceFind(PLX_DEVICE_KEY *pKey,U16 DeviceNumber);PLX Chip Support:All devicesDescription:Locates a specific PCIe device and fills in the corresponding device key in...翻译 2019-06-28 12:07:24 · 566 阅读 · 1 评论 -
Plx使用手册学习------5 PlxPci_DriverProperties
Syntax:PLX_STATUSPlxPci_DriverProperties(PLX_DEVICE_OBJECT *pDevice,PLX_DRIVER_PROP *pDriverProp);PLX Chip Support:All devicesDescription:Returns properties of the PLX driver in use for the...翻译 2019-06-28 12:10:16 · 571 阅读 · 0 评论 -
Plx使用手册学习-----8 PlxPci_CommonBufferProperties
Syntax:PLX_STATUSPlxPci_CommonBufferProperties(PLX_DEVICE_OBJECT *pDevice,PLX_PHYSICAL_MEM *pMemoryInfo);PLX Chip Support:All PLX devicesDescription:返回公共缓冲区属性。Returns the common buffer pr...翻译 2019-06-28 15:54:21 · 464 阅读 · 0 评论 -
Plx使用手册学习----9 PlxPci_DmaChannelOpen
Syntax:PLX_STATUSPlxPci_DmaChannelOpen(PLX_DEVICE_OBJECT *pDevice,U8 channel,PLX_DMA_PROP *pDmaProp);PLX Chip Support:9054, 9056, 9080, 9656, 8311, & 8000 DMADescription:Opens and init...翻译 2019-06-28 16:31:19 · 535 阅读 · 0 评论 -
Plx使用手册学习----11 PlxPci_DmaTransferUserBuffer
Syntax:PLX_STATUSPlxPci_DmaTransferUserBuffer(PLX_DEVICE_OBJECT *pDevice,U8 channel,PLX_DMA_PARAMS *pDmaParams,U64 Timeout_ms);PLX Chip Support:9054, 9056, 9080, 9656, 8311, & 8000 D...翻译 2019-06-28 18:03:12 · 845 阅读 · 0 评论 -
Plx使用手册学习----12 PlxPci_NotificationCancel
Syntax:PLX_STATUSPlxPci_NotificationCancel(PLX_DEVICE_OBJECT *pDevice,PLX_NOTIFY_OBJECT *pEvent);PLX Chip Support:All PLX 9000 devices, 8311, 8000 DMA, 6000 NT, & 8000 NTDescription:取消...翻译 2019-06-28 18:18:16 · 246 阅读 · 0 评论 -
Plx使用手册学习------13 PlxPci_DmaGetProperties
Syntax:PLX_STATUSPlxPci_DmaGetProperties(PLX_DEVICE_OBJECT *pDevice,U8 channel,PLX_DMA_PROP *pDmaProp);PLX Chip Support:9054, 9056, 9080, 9656, 8311, & 8000 DMADescription:返回当前DMA通道的D...翻译 2019-06-29 11:18:29 · 462 阅读 · 0 评论 -
Plx使用手册学习----10 PlxPci_CommonBufferMap
Syntax:PLX_STATUSPlxPci_DmaSetProperties(PLX_DEVICE_OBJECT *pDevice,U8 channel,PLX_DMA_PROP *pDmaProp);PLX Chip Support:9054, 9056, 9080, 9656, 8311, & 8000 DMADescription:为DMA通道更新DMA...翻译 2019-06-29 11:39:33 · 244 阅读 · 0 评论 -
Plx使用手册学习------14 PlxPci_PlxRegisterRead
Syntax:U32PlxPci_PlxRegisterRead(PLX_DEVICE_OBJECT *pDevice,U32 offset,PLX_STATUS *pStatus);PLX Chip Support:All PLX devicesDescription:从所选设备读取PLX特定寄存器Reads a PLX-specific register from ...翻译 2019-07-05 10:18:39 · 636 阅读 · 0 评论 -
Plx使用手册学习------15 PlxPci_PlxRegisterWrite
Syntax:PLX_STATUS PlxPci_PlxRegisterWrite(PLX_DEVICE_OBJECT *pDevice,U32 offset,U32 value);PLX Chip Support:All PLX devicesDescription:Writes to a PLX-specific register on the selected de...翻译 2019-07-05 10:46:26 · 848 阅读 · 0 评论 -
Plx使用手册学习------16 PlxPci_PciBarSpaceRead
Syntax:PLX_STATUS PlxPci_PciBarSpaceRead(PLX_DEVICE_OBJECT *pDevice,U8 BarIndex,U32 offset,VOID *pBuffer,U32 ByteCount,PLX_ACCESS_TYPE AccessType,BOOLEAN bOffsetAsLocalAddr);PLX Chip Su...翻译 2019-07-05 16:30:20 · 1351 阅读 · 0 评论 -
Plx使用手册学习-----10 PlxPci_NotificationWait
Syntax:PLX_STATUSPlxPci_NotificationWait(PLX_DEVICE_OBJECT *pDevice,PLX_NOTIFY_OBJECT *pEvent,U64 Timeout_ms);PLX Chip Support:All PLX 9000 devices, 8311, 8000 DMA, 6000 NT, & 8000 NT...翻译 2019-07-05 16:47:42 · 450 阅读 · 0 评论 -
Plx使用手册学习------1 PlxPci_CommonBufferMap
声明:PLX_STATUS PlxPci_CommonBufferMap( PLX_DEVICE_OBJECT *pDevice, VOID **pVa );PLX芯片支持: 所有PLX仪器;功能:将公共缓冲区映射到用户虚拟空间并返回基本虚拟地址Maps the common buffer into user virtual space and retur...翻译 2019-06-27 17:42:17 · 768 阅读 · 0 评论