⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_39237.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:39237 发表者:网上追跳 发表日期:2003-05-09 10:32:46
<br>主题:VC问题集!
<br>内容:大虾,你好,我想请问一些关于VC的东西,如能得到你的答覆,我将万分感谢。<BR>1。在VC中,如何将自己写的程序编译成可执行的文件,我说的可执行是指离开了VC的编译环境也能正常运行的意思。因为我每次的程序离开了VC的编译器就不能正常运行。我用的是MFC。<BR>2。在VC中,如何将一个类进行完整的删除。<BR>3。如何更改一个程序的数据集的可读属性,我在自己写的程序中,数据集本是可读写的,但是每次运行需要更改的时候都报错,说程序的数据集是只读的,搞不懂,请指教,谢谢!<BR>4. 在用一个对话框调用另一个对话框的同时,怎样将本身给隐藏或者是关闭。
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:鸽子 回复日期:2003-05-09 10:39:55
<br>内容:编译连接时采用 静态库 release
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:林建华 回复日期:2003-05-09 12:41:36
<br>内容:1.用静态调用mfc<BR>2。把.h文件和.cpp文件重工程重删除<BR>3。不明白说什么<BR>4。 ShowWindow(SW_HIDE);
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:北极乞丐 回复日期:2003-05-09 13:48:07
<br>内容:1. 步骤 : build-&gt;batch build -&gt;Release 既可 也就是静态调用<BR>2. 步骤删除该类的XXX.cpp和XXX.h以及在其他源程序中用到的#include "XXX.h"<BR>&nbsp;&nbsp; 和与其相关的内容.<BR>3. 什么数据集?是不是文件?不明问题意思.<BR>4. 补充林兄:给出msdn有关内容:<BR><BR>BOOL ShowWindow ( int nCmdShow ); <BR>Parameters<BR>&nbsp;&nbsp;nCmdShow <BR>&nbsp;&nbsp; Specifies how the CWnd is to be shown. It must be one of the following values: <BR>SW_HIDE&nbsp;&nbsp; Hides this window and passes activation to another window. <BR>SW_MINIMIZE&nbsp;&nbsp; Minimizes the window and activates the top-level window in the system list. <BR>SW_RESTORE&nbsp;&nbsp; Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. <BR>SW_SHOW&nbsp;&nbsp; Activates the window and displays it in its current size and position. <BR>SW_SHOWMAXIMIZED&nbsp;&nbsp; Activates the window and displays it as a maximized window. <BR>SW_SHOWMINIMIZED&nbsp;&nbsp; Activates the window and displays it as an icon. <BR>SW_SHOWMINNOACTIVE&nbsp;&nbsp; Displays the window as an icon. The window that is currently active remains active. <BR>SW_SHOWNA&nbsp;&nbsp; Displays the window in its current state. The window that is currently active remains active. <BR>SW_SHOWNOACTIVATE&nbsp;&nbsp; Displays the window in its most recent size and position. The window that is currently active remains active. <BR>SW_SHOWNORMAL&nbsp;&nbsp; Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. <BR>Return Value<BR>Nonzero if the window was previously visible; zero if the CWnd was previously hidden.<BR><BR>Remarks<BR>Windows CE does not support the SW_MAXIMIZE, SW_MINIMIZE, SW_RESTORE, SW_SHOWDEFAULT, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, or SW_SHOWMINNOACTIVE values for the nCmdShow parameter.<BR><BR>Example<BR>This is the example from the CWnd::CalcWindowRect method<BR><BR>// Uses CalcWindowRect to determine size for new CFrameWnd<BR>// based on the size of the current view. The end result is a<BR>// top level frame window of the same size as CMyView's frame.<BR>void CMyView::OnMyCreateframe() <BR>{<BR>&nbsp;&nbsp;CFrameWnd* pFrameWnd = new CFrameWnd;<BR>&nbsp;&nbsp;CRect myRect;<BR>&nbsp;&nbsp;GetClientRect(myRect);<BR>&nbsp;&nbsp;pFrameWnd-&gt;Create(NULL, "My Frame");<BR>&nbsp;&nbsp;pFrameWnd-&gt;CalcWindowRect(&amp;myRect, CWnd::adjustBorder);<BR>&nbsp;&nbsp;pFrameWnd-&gt;MoveWindow(0, 0, myRect.Width(), myRect.Height());<BR>&nbsp;&nbsp;pFrameWnd-&gt;ShowWindow(SW_SHOW);<BR>}<BR><BR>Requirements<BR>&nbsp;&nbsp;Windows CE versions: 1.0 and later<BR>&nbsp;&nbsp;Header file: Declared in Afxwin.h<BR>&nbsp;&nbsp;Platform: H/PC Pro, Palm-size PC, Pocket PC<BR><BR><BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:网上追跳 回复日期:2003-05-09 14:48:20
<br>内容:谢谢以上三位大虾,我试试,但“北极乞丐”兄最后的我看不懂,不好意思。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:网上追跳 回复日期:2003-05-09 15:05:33
<br>内容:我上面说的“如何更改一个程序的数据集的可读属性,我在自己写的程序中,数据集本是可读写的,但是每次运行需要更改的时候都报错,说程序的数据集是只读的,搞不懂,请指教,谢谢!”,我也不知道是啥,但每次运行程序的如“添加”按钮等时就报错说是只读的不行,所以还请各位再看看,谢谢!<BR><BR>  还有4中的“ShowWindow(SW_HIDE); ”是加在进入另一个对话框的那个变量那儿嘛,应该不会错吧,是嘛?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:林建华 回复日期:2003-05-09 15:40:18
<br>内容:把拟所有的文件的只读去掉,肯定有几个文件只读没有去掉<BR>如果在要隐藏的对话框里,你在那里要隐藏,就在那里用ShowWindow(SW_HIDE);<BR>否则用dlg.ShowWindow(SW_HIDE);<BR>dlg是在你要隐藏的对话框的对象
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:网上追跳 回复日期:2003-05-10 12:39:51
<br>内容:ShowWindow(SW_HIDE);不行,不好意思。<BR>另外我把所有的只读属性均去掉了的,我再找找,等一下贴两幅图上来让你们看一下可有会清楚一点,谢了!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -