VC动态调用DLL
CyTangTP.dll共提供三个函数,此文件拷贝在运行目录下。在VB环境下声明如下:在Module1中定义动态库函数;Declare Function OpenComm Lib "CyTangTP.dll" (ByVal ComNo As Integer, ByVal Baud As Integer) As LongDeclare Function CloseComm Lib "CyTangTP.dll" (ByVal Handle_Of_Com As Long) As IntegerDeclare Function SendMsg Lib "CyTangTP.dll" (ByVal Handle_Of_Com As Long, ByVal TPSet As String, ByVal Msg As String) As Integer 现在,我们要在VC中调用这三个函数,实现代码如下: HMODULE
VC快捷键大全
VC快捷键大全 Ctrl+Shift+G :?Ctrl+* :?Ctrl+Space :?Ctrl+F3 :?Ctrl+Shift+F3 :?Ctrl+D :显示控件的序号 Ctrl+I :?Ctrl+Shift+I :?F6 :?Activates the next paneShift+F6 :?Activates the previous paneCtrl+M :?Detects duplicate mnemonics in the resourceF1: 帮助Ctrl+O :OpenCtrl+P :PrintCtrl+N :NewCtrl+Shift+F2 :清除所有书签F2 :上一个书签Shift+F2 :上一个书签Alt+F2 :编辑书签Ctrl+F2 :添加/删除一个书签F12 :Goto definitionShift+F12 :Goto referenceCt