|
|
A General Purpose Ruler Control |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The sample has no executable, so the source would have to be compiled; VC++6.0 automatically registers the control. Below is a list and description of the interfaces and how they may be utilized. The ruler itself consists of one CWnd derived class, CScale. The implementation is about 2000 lines of code, so I won't explain anything here. The function names are pretty intuitive, so you shouldn't have a problem running through them.
这个例子没有可执行文件,所以必须编译它们。 VC++6.0 会自动地注册这个控件。以下描述了接口,以及它们的使用方法。标尺控件本身由一个 CWnd 的派生类, CScale组成。实现大约是2000多行代码,所以我在这里没有解释很多。函数名字是很直观的,所以运行它们没有问题。
来源: http://www.codeguru.com/controls/rulercontrol.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Programmatically Invoking the OLEDB Data |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
I recently needed to allow a user to have the ability to configure a connection string for one of my applications that uses ADO. After searching relentlessly through the docs, there was absolutely no information available on how to do this, except for a knowledge base article (Q225132) that described a problem with the #import statements when going from MDAC 2.0 to 2.1. This spurred me into writing this short article to demonstrate how you can use the standard OLE DB Data link configuration dialog in your own applications.
用代码调用 OLEDB 数据连接配置对话框
我最近需要一个用户能够为我的ADO应用创建一个连接串。在docs中寻找之后,我发现根本没有可以这样做的信息,除了一个描述了这个问题的基于知识的文章(Q225132),问题是关于从MDAC 2.0到2。1的#import statements的.这刺激我写这篇短文示例怎样才能在你的应用中使用标准的 OLEDB 数据连接配置对话框。
来源: http://www.codeguru.com/mfc_database/datalink.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Blt away with images loaded from resourc |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Includes the CustomBlt module that supports two custom BitBlt functions -- TransBlt for transparent BitBlt's, and TileBlt to tile a bitmap across a surface. Also includes CPictureDC class which allows you to obtain an hDC from a VB Picture object, thus allowing you to Blt away with images loaded from resource files or anywhere else.
包括的CustomBlt 模块支持两个定制的BitBlt 函数-- TransBlt 用于透明BitBlt,TileBlt 用于在表面上平铺位图。也包括了CPictureDC 类,可以让你得到VB Picture 对象的 hDC ,这样可以让你用资源文件或其它来源的文件绘制图像。
来源: http://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Starting Rendering Modes |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This sample create an OpenGL rendering context in a multidocument / view framework and display the most simple representative object : a sphere. A formview on the left permits to check rendering options, like rendering modes (vertex, wireframe, faces), antialiasing, lighting, gouraud shading (in face and wireframe mode), lighting and back colors, scaling, animation (rotation).
这个例子在一个多文档/视图框架中创建一个OpenGL 绘制环境,并显示一个最简单的有代表性的物体:球体。在左边的视图窗体中可以设置绘制选项,如绘制模型(顶点、线框、面),反锯齿、光照、背景阴影(面和线框模式),光照和黑色,缩放,动画(旋转)。
来源: http://www.codeguru.com/opengl/start.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Dynamically Switchable Control Type |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
I frequently find a need to have a control that needs to be represented differently at run-time depending on various circumstances.
The control presented here can be switched at run-time between a number of controls including edit, combobox, static, and checkbox controls. Another advantage is that this control will contain both the label and the 'user' control items (edits/combos/etc), which makes it easier to work with (eg disable) pairs of labels and edit controls for instance
我经常需要一个控件在运行时根据环境以不同的方式来表示。
这里的这个控件可以在运行时在许多控件风格之间切换,包括编辑框、组合框,静态控件和复选框之间切换。另一个优点是这个控件可以包含标签和“用户”控件条目(编辑框/组合框/等等),这样使得它更容易使用标签和编辑框对。
来源: http://www.codeguru.com/controls/MultiCtrl.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Browsing for ODBC Data Source Names (DSN |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This article is the result of some work I did in a recent project. I was improving a configuration program user interface for a complex client-server application where several databases where used. A common configuration option was what DSN (Data Source Name) to use. Since users had found it inconvenient to look the DSN name up using the ODBC configuration tool in the control panel and then type the name manually, we had decided to add a browse for DSN button.
浏览ODBC数据源名(DSN)
这篇文章是我最近的一项工程中做的一些工作的结果。我正在改良一个复杂的主从式用户应用,他用到了好几个数据库。它们的共性是DSN(数据源名)的使用。因为用户发现查在控制面板中用ODBC结构工具查找出DSN很不方便,因此我们决定为DSN做一个浏览按钮。
来源: http://www.codeguru.com/mfc_database/DSNCollection.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
obtaining all pertinent information abou |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Class-wrapped solution to obtaining all pertinent information about logical drives available to the system your application is running on. Shows how to properly use GetDiskFreeSpaceEx, to obtain free, total, and available space.
这个项目中的类封装了应用程序中可以使用的逻辑驱动器的信息。演示了如何正确使用GetDiskFreeSpaceEx取得空闲的、全部的和可用的空间,
来源: http://www.mvps.org/vb/ |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Starting OpenGL in a dialog |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This sample create an OpenGL rendering context in a dialog box and draw a simple cube. We can manipulate the object with the mouse, and change texture file with a popup menu item. A timer animate a rotation. Texture files are .BMP files (2^n * 2^m * 24 bits).
这个例子应用程序在一个对话框中创建一个OpenGL 绘制环境,并绘制了一个示例立方体。我们想用鼠标处理对象,用弹出菜单修改纹理文件。用一个定时器生成动画旋转。纹理文件是.BMP (2^n * 2^m * 24 bits).
来源: http://www.codeguru.com/opengl/texture_mapping.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
A Memory Viewer --- with a powerful clas |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The Memory Viewer displays memory contents starting at a specified address (0x00400000 by default), it shows memory contents as the HEX format in a binary editor.
这个内存查看器可以显示指定地址开始的内存中的内容(缺省是0x00400000 ),它在一个二进制编辑框中以十六进制格式显示内存内容。
来源: http://www.codeguru.com/controls/MemViewer.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Ultra Simple DB Class Interface for ODBC |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The ODBC API has a lot of power and flexibility, but sometimes you just want to get the data without all the effort. Hence, these simple class wrappers. In addition, from insulating you from having to bind buffers and or figure out data type widths and conversions, they have a fairly simple interface. They operate on the premise of dealing with everything as ASCII character data. Oversimplification? You be the judge. Let's get into what some sample code and see how easy it is to get to your data.
简单灵巧的ODBC数据库类接口 (1.1 版)
ODBC API 灵活且功能强大,但有时只是想获取数据,并不需要全部的功能。因此有了这些简单的类封装器。此外,这些类可以让你不必绑定缓存,以及配置数据类型的宽度和转换,所以它们的接口相当简单。它们运行的前提是将所有的数据都作为ASCII字符数据来处理。有点过度简化吗? 你是裁判。让我们看一下一些代码并看一下它是多么的容易的获取你的数据。
来源: http://www.codeguru.com/mfc_database/sqlclasses.html
来源: http://www.codeguru.com/mfc_database/sqlclasses.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|