上一页 1 ··· 6 7 8 9 10 11 下一页

2007年6月22日

一个lib和dll的例子 来自MSDN

摘要: 环境:Visual studiTo create a new static library project From the File menu, select New and then Project…. From the Project types pane, under Visual C++, select Win32. From the Templates pane, select Win32 Console Application. Choose a name for the project, such ... 阅读全文

posted @ 2007-06-22 14:10 IT@民工 阅读(149) 评论(0) 推荐(0) 编辑

2007年6月21日

DLL和LIB区别和联系.

摘要: 在Windows下有.LIB和.DLL两种后缀形式的库这两者之间有什么区别和联系呢?lib是库的简称,共有两种一种包含了函数所在DLL文件和文件中函数位置的信息,代码由运行时加载在进程空间中的DLL提供。称为动态链接库dynamic link library另一种包含函数代码本身,在编译时直接将代码加入程序当中。称为静态链接库static link library区别: lib是编译时需要的,dll是运行时需要的。联系:在动态库的情况下,有两个文件,一个是引入库(.LIB)文件,一个是DLL文件,引入库文件包含被DLL导出的函数的名称和位置,DLL包含实际的函数和数据,应用程序使用LIB文件链 阅读全文

posted @ 2007-06-21 23:44 IT@民工 阅读(167) 评论(0) 推荐(0) 编辑

2007年6月20日

创建一个完整Win32程序

摘要: 创建一个Win32程序的步骤:1 WinMain函数的的定义2 创建一个窗口2.1.1 设计一个窗口类2.1.2 注册窗口类2.1.3 创建窗口2.1.4 显示及更新窗口3 进行消息循环4 编写消息过程函数WinMainint WINAPI WinMain (HINSTANCE hInstance,// handle to current instance,given by OSHINSTANCE hPrevInstance,// handle to previous instance ,Null in Win32LPSTR lpCmdLine, // pointer to command l 阅读全文

posted @ 2007-06-20 22:50 IT@民工 阅读(222) 评论(0) 推荐(0) 编辑

2007年6月18日

Platform SDK data types

摘要: Windows Data TypesThe data types supported by Microsoft® Windows® are used to define function return values, function and message parameters, and structure members. They define the size and meaning of these elements. For more information about the underlying C/C++ data types, see Data Type 阅读全文

posted @ 2007-06-18 23:34 IT@民工 阅读(162) 评论(0) 推荐(0) 编辑

windows data type

摘要: Data TypesThis topic lists the data types most commonly used in the Microsoft Foundation Class Library. Most of the data types are exactly the same as those in the Windows Software Development Kit (SDK), while others are unique to MFC.Commonly used Windows SDK and MFC data types are as follows: ... 阅读全文

posted @ 2007-06-18 23:29 IT@民工 阅读(117) 评论(0) 推荐(0) 编辑

2007年6月7日

XML序列化的实例

摘要: 关于XML序列化的简单例子: public partial class Form1 : Form { public Form1() { InitializeComponent(); }//选择保存路径 private void button1_Click(object sender, EventArgs e) { saveFileDialog1.Filter = "XML文件|*.xml"; if (saveFileDialog1.ShowDialog() == DialogResult.OK) textBox1.Text=saveFileDialog1.FileName; 阅读全文

posted @ 2007-06-07 22:05 IT@民工 阅读(209) 评论(0) 推荐(0) 编辑

2007年6月6日

GetDesktopWindow和GetWindow区别

摘要: GetWindowThe GetWindow function retrieves a handle to a window that has the specified relationship (Z order or owner) to the specified window. HWND GetWindow( HWND hWnd, // handle to original window UINT uCmd // relationship flag);GetDesktopWindowThe GetDesktopWindow function returns a handle t... 阅读全文

posted @ 2007-06-06 19:47 IT@民工 阅读(475) 评论(0) 推荐(0) 编辑

2007年6月5日

GetWindowLong函数详解

摘要: 函数功能描述:用这个函数能够获得指定窗口的信息函数原型:LONG GetWindowLong( HWND hWnd,int nIndex )参数:hWnd:指定窗口的句柄nIndex:需要获得的信息的类型 值 功能nIndex取值如下:GWL_EXSTYLE 得到扩展的窗口风格GWL_STYLE 得到窗口风格GWL_WNDPROC 得到窗口回调函数的地址,或者句柄。得到后必须使用CallWindowProc函数来调用 GWL_HINSTANCE 得到应用程序运行实例的句柄GWL_HWNDPARENT 得到父窗口的句柄GWL_ID 得到窗口的标识符GWL_USERDATA 得到和窗口相关联的32 阅读全文

posted @ 2007-06-05 20:34 IT@民工 阅读(629) 评论(0) 推荐(0) 编辑

2007年6月3日

通过通过分别配置 PagerStyle 和 PagerSettings 属性,自定义页导航的样式和设置

摘要: 关键代码段:<PagerSettings Mode="NextPreviousFirstLast" Position="TopAndBottom" FirstPageImageUrl="~/Images/First.gif" LastPageImageUrl="~/Images/Last.gif" NextPageImageUrl="~/Images/Next.gif" PreviousPageImageUrl="~/Images/Prev.gif" /> < 阅读全文

posted @ 2007-06-03 12:39 IT@民工 阅读(714) 评论(0) 推荐(0) 编辑

ASP.NET2.0中通过web.config设置数据库连接串

摘要: Web.config代码:<?xml version="1.0"?><configuration><connectionStrings> <add name="Pubs" connectionString="Server=localhost;uid=sa;pwd=123456; database=pubs;" providerName="System.Data.SqlClient" /> </connectionStrings> <system.we 阅读全文

posted @ 2007-06-03 01:29 IT@民工 阅读(129) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 下一页

导航