进入Project->Settings->General 下,在下拉框中选“Use MFC
in a Static Library”(使用MFC做为静态链接库);然后添加头文件#include ,并且要放在其它头文件前。否则,会有#error :
WINDOWS.H already included...
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 异常1{ class Program { static void
Main(string[...
分类:
其他好文 时间:
2014-05-19 20:39:32
阅读次数:
309
public static string checkStr(string html) {
System.Text.RegularExpressions.Regex regex1 = new
System.Text.RegularExpressions.Regex...
分类:
Web程序 时间:
2014-05-19 20:31:20
阅读次数:
385
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 静态成员{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-19 10:38:16
阅读次数:
263
setColumnView是可以用,setRowView还是没效果是这样的来个更诡异的Java代码 收藏代码import java.io.*; import
jxl.*; import jxl.write.*; public class JxlTest { public static void .....
分类:
其他好文 时间:
2014-05-19 10:24:28
阅读次数:
167
需求:封装按钮,按钮上面只显示文字。在鼠标移上去、鼠标点击按钮、以及将按钮设为不可用时按钮的背景色和前景色需要发生变化实现:继承Button类,封装如下6个属性:#region
依赖属性/// /// 当鼠标移到按钮上时,按钮的前景色(这是依赖属性)/// public static readonl...
分类:
其他好文 时间:
2014-05-19 09:31:42
阅读次数:
250
[System.Runtime.InteropServices.DllImport("winmm.DLL", EntryPoint = "PlaySound",
SetLastError = true)] private static extern bool PlaySound(string sz....
public class com { /// /// 把参数转为JSON字符串 /// ///
所有的参娄 /// JSON字符串 public static Hashtable StringToJSON(...
分类:
Web程序 时间:
2014-05-19 08:25:40
阅读次数:
311
转自:LIB和DLL的区别与使用共有两种库:一种是LIB包含了函数所在的DLL文件和文件中函数位置的信息(入口),代码由运行时加载在进程空间中的DLL提供,称为动态链接库dynamic
link library。一种是LIB包含函数代码本身,在编译时直接将代码加入程序当中,称为静态链接库static...
分类:
其他好文 时间:
2014-05-18 20:36:28
阅读次数:
500
package edu.sjtu.erplab.io;import
java.util.Random;public class RandomTest { public static void main(String[]
args) { int max=20; int...
分类:
编程语言 时间:
2014-05-17 18:04:42
阅读次数:
239