预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共18页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

2011-3-14CSerialPortv1.22 CSerialPortv1.22 WelcometoCSerialPort,afreewareMFCclasstowrapaccesstotheWin32APIsdealingwithserial ports. Features Usage Copyright History APIReference PlannedEnhancements ContactingtheAuthor Features SimpleandcleanC++interface. UsesC++exceptionsinpreferencetothenormalwin32returnvaluemechanism.Thisensuresthat codewhichusesCSerialPortismorerobust. Unicodeenabled,supportslinkingtoMFCstaticallyandallcodecompilescleanlyatwarninglevel4. Supportsoverlapped,blockingandcall-backusagemodelsoftheserialport.(Call-backisonly supportedonNT). Usage Tousetheclassinyourcodesimplyincludeserialport.cppinyourprojectand#includeserialport.hin whicheverofyourmodulesneedstomakecallstotheclass. Asofv1.19youwillneedanuptodatePlatformSDKinstalledtocompilethecodeifyouareusing VisualC++6(February2003wasthelastversionwhichwascompatiblewithVC6). Toseethecodeinactionhavealookatthemodule"app.cpp"inthesampleapp. Copyright Youareallowedtoincludethesourcecodeinanyproduct(commercial,shareware,freewareor otherwise)whenyourproductisreleasedinbinaryform. Youareallowedtomodifythesourcecodeinanywayyouwantexceptyoucannotmodifythe copyrightdetailsatthetopofeachmodule. Ifyouwanttodistributesourcecodewithyourapplication,thenyouareonlyallowedtodistribute versionsreleasedbytheauthor.Thisistomaintainasingledistributionpointforthesourcecode. C:/…/SerialPort.htm1/18 2011-3-14CSerialPortv1.22 History V1.0(31May1999) Initialpublicrelease. V1.01(3June1999) FixedproblemwithcodeusingCancelIofunctionwhichdoesnotexiston95. Fixedleakswhichcanoccurinsampleappwhenanexceptionisthrown V1.02(16June1999) FixedabugwherebyCString::ReleaseBufferwasnotbeingcalledin CSerialException::GetErrorMessage V1.03(29September1999) FixedasimplecopyandpastebuginCSerialPort::SetDTR V1.04(8March2000) Linksinthedocumentationnowwork<g>. V1.05(8May2000) FixedanunreferencedvariableinCSerialPort::GetOverlappedResultinVC6 V1.06(12June2000) FixedanotherunreferencedvariableprobleminCS