#ifdef _AFXDLL Enable3dControls() // Call this when using MFC in a shared DLL #else Enable3dControlsStatic() // Call this when linking to MFC statically #endif CPreviewDialogDlg dlg m_pMainWnd = &dlg int nResponse = dlg.DoModal() if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application s message pump. return FALSE }
标签: Enable3dControls Enable3d AFXDLL shared
上传时间: 2015-12-19
上传用户:hustfanenze
Status StrAssign(SString T,char *chars) { // 生成一个其值等于chars的串T int i if(strlen(chars)>MAXSTRLEN) return ERROR else { T[0]=strlen(chars) for(i=1 i<=T[0] i++) T[i]=*(chars+i-1) return OK } }
标签: chars StrAssign SString Status
上传时间: 2014-01-10
上传用户:lwwhust
Swfdec still is development software, but has also followed a rigid no-crashes-allowed policy. I believe it s stable enough now to be installed as a default plugin for people that can live with occasional crashes of their browser. But don t blame me if it does crash. File a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=swfdec
标签: no-crashes-allowed development followed software
上传时间: 2016-04-14
上传用户:franktu
1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if A = 1 2 3 then B = 3 2 1 4 5 6 6 5 4 7 8 9 9 8 7 Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A). 2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output: Enter k>0: 100 144 is the smallest fibonacci number greater than or equal to 100. It is the 12th fibonacci number.
标签: dimensions arbitrary function reverse
上传时间: 2016-04-16
上传用户:waitingfy
基于UDP实现E-Mail传输 工作过程描述: 客户端描述: 1. Client(以下简称C端)端将邮件以规定的大小封装为符合要求的UDP包。 2. 将封装好的UDP包发出,并等待Server(以下简称S端)端收到相应的UDP包后返回的回应Acknowledge(以下简称为ACK)。若收到的为Positive ACK,则继续发包;若收到的为Negtive ACK,则将应发的包重发。 3. 直到C端将所有要发的包都发完,并都已经收到S端的回应,最后发一个End包,直接关闭此进程。 服务器端描述: 1. S端启动服务进程,并监听相应端口。 2. 若收到C端发出的有关请求,按如下情况给出相应的反映: a. 将收到的包进行检测,若收到的包有错则抛弃(discard),并发给C端一个negtive ACK。 b. 将收到的包进行检测,若收到的包正常,则将此包进行解包,将内容输出至一临时文件;并发给C端一个positive ACK。 3.依次收到来自C断的包,直到收到end为止,并关闭此进程,转回监听状态。
上传时间: 2014-12-08
上传用户:sxdtlqqjl
用宏和高级汇编技术实现类似高级语言中的条件分支语句IF功能。同时,编写一个程序证明所编写宏的正确性。要求如下: (1).iff后的条件为“x1,op,x2”形式,其中x1和x2为操作数,op为关系比较符,用g(>),l(<),e(=), ge(>=), le(<=)表示。另外,x1和x2必须是字。 (2).elsee语句(相当于else语句)是可选项,即iff后可以不跟elsee。 (3)条件分支iff的结束用.ifend表示.
上传时间: 2013-12-31
上传用户:风之骄子
DESProcess FILE *mfp,*cfp int ttch=0,xorRes,ttbitdiff=0 char mch,cch float bdiff=0 if((mfp=fopen(mfile,"r"))==NULL) {cout<<"Cannot open the file to compare"<<endl } if((cfp=fopen(cfile,"r"))==NULL) {cout<<"Cannot open the file to compare"<<endl } else { while(!feof(mfp)&!feof(cfp)) { ttch++ mch=fgetc(mfp) cch=fgetc(cfp) xorRes=mch^cch ttbitdiff+=(xorRes&1)+(xorRes&2)/2+(xorRes&4)/4+(xorRes&8)/8+(xorRes&16)/16+(xorRes&32)/32+(xorRes&64)/64+(xorRes&128)/128 } bdiff=float(ttbitdiff)*100/float(ttch*8) } *bitdiff8byte=float(ttbitdiff)*100/float(8*8) return bdiff
标签: DESProcess ttbitdiff xorRes bdiff
上传时间: 2016-07-02
上传用户:1079836864
Make Text-Overflow work on both IE and Firefox If the text inside each line exceed the width of each line, then you will see "..." (ellipsis) shows up at the end of each line. Try to resize the window or change the font size to see if "..." (ellipsis) will show up or disappear. Demo - Listing
标签: Text-Overflow the Firefox inside
上传时间: 2013-12-18
上传用户:lgnf
private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.Y) return Math.PI * 0.5f else return Math.PI * 1.5f else if (APoint.Y == AOrigin.Y) if (APoint.X > AOrigin.X) return 0 else return Math.PI else {
标签: AOrigin APoint Point PointToAngle
上传时间: 2016-10-31
上传用户:zhyiroy
private double PointToAngle(Point AOrigin, Point APoint) { if (APoint.X == AOrigin.X) if (APoint.Y > AOrigin.Y) return Math.PI * 0.5f else return Math.PI * 1.5f else if (APoint.Y == AOrigin.Y) if (APoint.X > AOrigin.X) return 0 else return Math.PI else {
标签: AOrigin APoint Point PointToAngle
上传时间: 2016-10-31
上传用户:sunjet