有没有办法在可视化环境中使用Win32 C ++源码?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了有没有办法在可视化环境中使用Win32 C ++源码?相关的知识,希望对你有一定的参考价值。
我有c ++项目的源代码“DDF195”,我试着在表单操作和样式上做一些改动。
我需要知道如何在视觉环境中打开表单?我刚发现这个关于项目的文件。
================================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : DDF195 Project Overview
===============================================================================
The application wizard has created this DDF195 application for
you. This application not only demonstrates the basics of using the Microsoft
Foundation Classes but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your DDF195 application.
DDF195.vcproj
This is the main project file for VC++ projects generated using an application wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
application wizard.
DDF195.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CDDF195 application class.
DDF195.cpp
This is the main application source file that contains the application
class CDDF195.
DDF195.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++. Your project resources are in 1033.
resDDF195.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file DDF195.rc.
resDDF195.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
For the main frame window:
The project includes a standard MFC interface.
FrameWndMainForm.h, FrameWndMainForm
These files contain the frame class CFrameWndMainForm, which is derived from
CFrameWnd and controls all SDI frame features.
resToolbar.bmp
This bitmap file is used to create tiled images for the toolbar.
The initial toolbar and status bar are constructed in the CFrameWndMainForm
class. Edit this toolbar bitmap using the resource editor, and
update the IDR_MAINFRAME TOOLBAR array in DDF195.rc to add
toolbar buttons.
我只是设法修复一些错误,如Cbrush使用和一些错过的库,并可以运行项目,现在我需要在窗体视图中进行一些更改!在解决方案中,我可以找到一些带有.h和.cpp后缀的文件与frmMain相同。提前致谢。
源代码来自:https://www.rohde-schwarz.com/产品
答案
你好8小时后我可以打开窗体视觉。 在解决方案资源管理器>目标项目>资源文件> [名称] .rc>双击如果我们打开rc文件作为代码我们得到错误它是用另一个应用程序打开,关闭VC中的所有代码选项卡然后再次尝试新的树状菜单出现,在我们可以在对话目录中找到并打开所有表单,然后在表单上编辑事件我们应该使用cpp文件。 特别感谢@Ron和@drescherjm
以上是关于有没有办法在可视化环境中使用Win32 C ++源码?的主要内容,如果未能解决你的问题,请参考以下文章
在windows中配置pip安装源, 使用终端管理python虚拟环境, 自定义django的日志配置, 使用logging模块记录异常信息, 数据库用户及权限管理