摘要: #include // for IObjectSafety; in ActiveX SDK //........................................................................ //ISafeObject DECLARE_INTE... 阅读全文
posted @ 2012-12-06 15:53 废弃账号 阅读(150) 评论(0) 推荐(0)
摘要: 1、文件的创建-(IBAction) CreateFile{//对于错误信息NSError *error;// 创建文件管理器NSFileManager *fileMgr = [NSFileManager defaultManager];//指向文件目录NSString *documentsDi... 阅读全文
posted @ 2012-12-06 15:42 废弃账号 阅读(335) 评论(0) 推荐(0)
摘要: - (IBAction)Open:(id)sender { UIActionSheet *menu = [[UIActionSheet alloc] initWithTitle:@"select" delegate:s... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(81) 评论(0) 推荐(0)
摘要: 1、打开摄像头 - (IBAction)Open:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; if([UIImagePic... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(241) 评论(0) 推荐(0)
摘要: 1.js脚本(添加到ARCamera上) #pragma strict function Start () {} function Update () {} function ScreenImage(){Application.CaptureScreenshot("Screensho... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(100) 评论(0) 推荐(0)
摘要: @interface UIProgressHUD : NSObject - (void) show: (BOOL) yesOrNo; - (UIProgressHUD *) initWithWindow: (UIView *) window; @end @interface H... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(110) 评论(0) 推荐(0)
摘要: CFile cfile; cfile.Open(_T("aa.jpg"),CFile::modeRead|CFile::typeBinary); int dwLo=(int)cfile.GetLength(); BYTE *pss=new BYTE[dwLo]; ZeroMemory(pss,dw... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(210) 评论(0) 推荐(0)
摘要: 1.create 命令wsdl2h -o a.h up.WSDLsoapcpp2.exe -C -x a.h2.添加文件soapTestSoap12Proxy.hsoapTestSoapProxy.hsoapH.hsoapStub.hstdsoap2.hsoapClientLib.cppso... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(190) 评论(0) 推荐(0)
摘要: - (IBAction)Open:(id)sender { UIAlertView* dialog = [[UIAlertView alloc] initWithTitle:@"Enter Name" message:@"" delegate:se... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(127) 评论(0) 推荐(0)
摘要: UIAlertView *alert; - (IBAction)Open:(id)sender { alert = [[UIAlertView alloc] initWithTitle:@"msg" message:@"s... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(98) 评论(0) 推荐(0)
摘要: #include // for IObjectSafety; in ActiveX SDK //........................................................................ //ISafeObject DECLARE_INTE... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(111) 评论(0) 推荐(0)
摘要: private string mysqlYunfeng = ConfigurationManager.ConnectionStrings["mysqlwxs"].ConnectionString;http://115.com/file/e75kwnc4 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(78) 评论(0) 推荐(0)
摘要: http://zzili.blog.163.com/blog/static/193620024201272554948935/ 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(117) 评论(0) 推荐(0)
摘要: typedef int (*func)();void CtestDlg::OnBnClickedButton1(){ // TODO: 在此添加控件通知处理程序代码 HINSTANCE hDllInst = LoadLibrary(L"MSVCP70.DLL"); func fc; fc ... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(88) 评论(0) 推荐(0)
摘要: 大家在开发基于gps位置的应用的时候在天朝会遇到火星坐标的问题,有手机直接获取的gps坐标显示到google地图上是有很大误差的,这是由国家给gps坐标加了偏移而形成的火星坐标,所以真是的gps坐标必须经过转换才能在地图上显示出来正确的位置。。。。而这个转换是保密的。前几天我也是为了这个问题发愁,... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(189) 评论(0) 推荐(0)
摘要: 巴士快递,作为河南大德广告的智能客户端软件,除了提供了比平面媒体更加丰富,更加多层次的信息内容,也加入了更多本地化的,结合郑州特色的社会信息内容。比如漂在江湖栏目,就紧贴郑州当地特色提供了找工作、找房子、找对象的信息,还有让我们的用户分享一下身边发生的有趣的事情等可以和用户互动的栏目。巴士快递旨... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(157) 评论(0) 推荐(0)
摘要: 河南,位于中国中东部、黄河中下游,因大部分地区位于黄河以南,故称河南。远古时期,黄河中下游地区河流纵横,森林茂密,野象众多,河南又被形象地描述为人牵象之地,这就是象形字“豫”的根源与河南简称“豫”的由来。《尚书·禹贡》将天下分为“九州”,豫州位居天下九州之中,故有中原、中州之称。 河南,是中... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(136) 评论(0) 推荐(0)
摘要: 1.同步下载文件 NSString *urlAsString = @"http://files.cnblogs.com/zhuqil/UIWebViewDemo.zip"; NSURL *url = [NSURL URLWithString:urlAsStrin... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(82) 评论(0) 推荐(0)
摘要: String nowPath = @"taxi.db"; void SelectStu() { using (SQLiteConnection cn = new SQLiteConnection(@"data source=" + nowPath ... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(72) 评论(0) 推荐(0)
摘要: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //定义UIScrollView... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(151) 评论(0) 推荐(0)
摘要: #define SYSTABBARITEM(TITLE, INAME, TAG) [[UITabBarItem alloc] initWithTitle:TITLE image:[UIImage imageNamed:INAME] tag:TAG] NSMutab... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(69) 评论(0) 推荐(0)
摘要: //self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"主页" style:UIBarButtonItemStylePlain target:self action:@selector... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(123) 评论(0) 推荐(0)
摘要: 我在CSDN有个新家 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(95) 评论(0) 推荐(0)
摘要: _ns1__FileUpload request; request.fileNameGuid = &std::string(fileName.GetBuffer(0)); CFile cfile; cfile.Open(fileName,CFile::modeRead|CFile::typeBin... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(99) 评论(0) 推荐(0)
摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if (!dragEnable) { return; } UITouch *touch = [touches... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(90) 评论(0) 推荐(0)
摘要: #include //以提供对CDatabase 类的支持 #include #pragma comment(lib,"odbccp32.lib") //为了使用ODBC API的函数 SQLConfigDataSource#include CDatabase m_database;//... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(274) 评论(0) 推荐(0)
摘要: vacuum 清空记录 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(102) 评论(0) 推荐(0)
摘要: -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ UIButton *leftBtn = [UIButton butt... 阅读全文
posted @ 2012-12-06 15:31 废弃账号 阅读(93) 评论(0) 推荐(0)
摘要: 1、QT下控制台实现GSoap,需在pro中添加以下文件 SOURCES += main.cpp \ soapClient.cpp \ soapC.cpp \ stdsoap2.cppHEADERS += \ stdsoap2.h \ soapH.h \ st... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(289) 评论(0) 推荐(0)
摘要: -(UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 { UIGraphicsBeginImageContext(image2.size); //Draw image2 [... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(156) 评论(0) 推荐(0)
摘要: -(void)OpenThree:(id)sender;[btn addTarget:self action:@selector(OpenThree:) forControlEvents:UIControlEventTouchUpInside];[btn setTag:1];-(void)Open... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(133) 评论(0) 推荐(0)
摘要: UIImage *image =[self getImage:[[NSBundle mainBundle] pathForResource:@"video" ofType:@"mp4"]];+(UIImage *)getImage:(NSString *)videoURL{ ... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(109) 评论(0) 推荐(0)
摘要: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [NSThread sleepForTimeInte... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(123) 评论(0) 推荐(0)
摘要: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //return YES; return (interfaceOrientation... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(165) 评论(0) 推荐(0)
摘要: UIImageWriteToSavedPhotosAlbum(viewImage,nil, nil, nil); 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(74) 评论(0) 推荐(0)
摘要: #import _weiboText.layer.borderWidth =1.0; _weiboText.layer.cornerRadius =5.0; 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(92) 评论(0) 推荐(0)
摘要: - (IBAction)FindUs:(id)sender { self.UsMap.hidden = NO; CLLocationCoordinate2D coord; coord.latitude = 34.7993; coord.longitu... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(126) 评论(0) 推荐(0)
摘要: NSString *musicPath = [[NSBundle mainBundle] pathForResource:@"净土" ofType:@"mp3"];... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(89) 评论(0) 推荐(0)
摘要: UIDevice *device = [UIDevice currentDevice];//创建设备对象 NSString *deviceUID = [[NSString alloc] initWithString:[device uniqueIdentifier]]; ... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(117) 评论(0) 推荐(0)
摘要: [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];//使用timer定时,每秒触发一次,然后就是写selec... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(87) 评论(0) 推荐(0)
摘要: Did data on end- (IBAction)textFieldDoneEditing:(id)sender { [sender resignFirstResponder]; } 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(75) 评论(0) 推荐(0)
摘要: private string mysqlYunfeng = ConfigurationManager.ConnectionStrings["mysqlwxs"].ConnectionString; public FriendGPSList ReturnF... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(166) 评论(0) 推荐(0)
摘要: if (sqlite3_open([[[[NSBundle mainBundle] pathForResource:@"wxs" ofType:@"db"] retain] fileSystemRepresentation], &database)==SQLITE... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(82) 评论(0) 推荐(0)
摘要: 30.8872 =====》——>300.8872*60 = 53.232 ——>530.232*60 = 13.9230: 53' 13.92"30: 53' 13.92"=======》30+53/60+13.92/3600=30.887199同经度两点之间距离dla=30.887m *... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(277) 评论(0) 推荐(0)
摘要: @property (retain, nonatomic) IBOutlet UIScrollView *ScrollView; [ScrollView setScrollEnabled:YES]; [ScrollView setContentSize... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(70) 评论(0) 推荐(0)
摘要: ATFrom: UIViewAnimationTransitionCurlUp UIViewAnimationTransitionCurlDown UIViewAnimationTransitionFlipFromLeft UIViewAnimation... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(71) 评论(0) 推荐(0)
摘要: // Do any additional setup after loading the view from its nib. UIBarButtonItem *one = [[UIBarButtonItem alloc] initWithBarButtonSyst... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(69) 评论(0) 推荐(0)
摘要: 1.图片缩放 QPixmap *pBackBuffer = new QPixmap(m_newShopList->at(i).shopImgUrl); QPixmap qimage; qimage = pBackBuffer->scaled(QSize(80,70... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(92) 评论(0) 推荐(0)
摘要: QWidget *widget1 = new QWidget; QVBoxLayout *lay = new QVBoxLayout; lay->setSpacing(10); for (int i = 0;i setFixedSize(30,20); lay->ad... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(60) 评论(0) 推荐(0)
摘要: QListWidget *list1=ui->listWidget_Off1; QListWidget *list2=ui->listWidget_Off2; list1->setIconSize(QSize(100, 100)); list1->s... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(155) 评论(0) 推荐(0)
摘要: 一.基本知识目前主流的智能手机大部分都支持GoogleMap地图程序,而手机上的地图程序确实能给我们的出行带来很大的方便。在iPhone中利用MapKit框架可以很方便的显示Google地图,并且可以在地图上添加标注。二.具体介绍1.MKMapView的显示(1)创建MKMapViewCGRect... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(80) 评论(0) 推荐(0)
摘要: ui->tabWidget->setGeometry(2,3,473,857); //设置大小 ui->tabWidget->setTabPosition(QTabWidget::South); //设置标签位置 ui->tabWidget->setDocumentMode(true); ... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(94) 评论(0) 推荐(0)
摘要: //响应键盘按键(在noteRichEdit框中按回车键换行)BOOL CAddMarkDlg::PreTranslateMessage(MSG* pMsg){if(pMsg->message == WM_KEYDOWN){if(pMsg->wParam == VK_RETURN){m_markE... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(247) 评论(0) 推荐(0)
摘要: CToolBar m_ToolBar; CImageList m_imglstToolbar ; CStatusBar m_StatusBar ; /* 功能:初始化工具栏*/void CDlgNewMail::InitToolbar(){ m_ToolBa... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(185) 评论(0) 推荐(0)
摘要: //////////响应 #pragma mark - UIActionSheetDelegate - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonInde... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(85) 评论(0) 推荐(0)
摘要: ///获取touch位置 CGPoint touchPoint=[touch locationInView:self.view]; NSString *str=[NSString stringWithFormat:@"%f",touchPoint.x]; myLabel.text =s... 阅读全文
posted @ 2012-12-06 15:30 废弃账号 阅读(114) 评论(0) 推荐(0)
摘要: NSTimer timer =[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFired:) userInfo:nil repeats:YES];-(void)timerFired:(NST... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(117) 评论(0) 推荐(0)
摘要: CGRect webFrame = [[UIScreen mainScreen] applicationFrame]; webFrame.origin.y += kTopMargin + 5.0; // leave from the URL input field and its la... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(116) 评论(0) 推荐(0)
摘要: 1,document 中的路径 最麻烦的一种: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsD... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(206) 评论(0) 推荐(0)
摘要: iOS从4.0之后支持后台播放声音了。下面是实现声音文件播放,并且用户关闭屏幕之后仍然能够播放声音文件。具体的实现方法如下: 在plist文件中加入下面的字段: 声明内容如下: Info.plist中添加UIBackgroundModes键值,它包含一个或多个string的值,包括 a... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(90) 评论(0) 推荐(0)
摘要: UIAlertView *myAlert = [[UIAlertView alloc]initWithTitle:@"显示时间" message:tmpStr delegate:self cancelButtonTitle:@"取消" otherButtonTitles:nil]; //Al... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(99) 评论(0) 推荐(0)
摘要: ////////////////////////////获取当前选的 NSInteger selectedRow=[myPickerView selectedRowInComponent:0]; ////////////////////////////////显示 -(NSInte... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(81) 评论(0) 推荐(0)
摘要: NSString *audioPath =[[NSBundle mainBundle]pathForResource:@"aaa" ofType:@"m4a"]; NSURL *url = [NSURL fileURLWithPath:audioPath]; NSError *erro... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(68) 评论(0) 推荐(0)
摘要: viewWillAppear: Called when the view is about to made visible. Default does nothing视图即将可见时调用。默认情况下不执行任何操作viewDidAppear: Called when the view has been... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(175) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; std::string tmp; std::ifstream infile("d:/aa.txt"); if ( !infile ) return; while (getline(in... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(114) 评论(0) 推荐(0)
摘要: #include "stdio.h"#include "windows.h"#include using namespace std;unsigned long sum = 0;////////////////////////////////////////////////////////////... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(421) 评论(0) 推荐(0)
摘要: using System;using System.Runtime.InteropServices; namespace zzzili{ class Test{ [DllImport("dllTest.dll")] public static extern in... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(80) 评论(0) 推荐(0)
摘要: #include#include#include"mysql.h"#pragma comment(lib,"libmysql.lib") void main(){ char*user="root",*pwd="admin",*dbname="test"; MYSQL mysql; MYSQL_R... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(155) 评论(0) 推荐(0)
摘要: 1.隐藏分割条 和 禁止拖动分割条 class CMySplitterWnd : public CSplitterWnd{public: int m_cx; int m_cy; void HideSplitter(); void ShowSplitter();public: CMySpli... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(124) 评论(0) 推荐(0)
摘要: 禁止窗口最大化等按钮 修改PreCreateWindow()函数如下: BOOL CWndMain::PreCreateWindow(CREATESTRUCT& cs) { if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; c... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(480) 评论(0) 推荐(0)
摘要: BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext){ CSplitterWnd m_wndSplitter; CSplitterWnd m_wndSplitter2; m_wndSpl... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(145) 评论(0) 推荐(0)
摘要: 在CMainFrame的OnCreate()中添加如下代码: //去掉标题栏及其他样式SetWindowLong(this->m_hWnd,GWL_STYLE,0);//去掉边框及其他样式SetWindowLong(this->m_hWnd,GWL_EXSTYLE,0); //取消菜单栏... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(285) 评论(0) 推荐(0)
摘要: 新建一个MFC单文档程序,默认都有四个菜单栏:文件、编辑、视图和帮助。怎么把这四个菜单栏删除掉呢?有两种方法: 第一种方法:重载框架类的Create函数,具体代码如下: BOOL CMainFrame::Create(LPCTSTR lpszClassName, LPCTSTR... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(117) 评论(0) 推荐(0)
摘要: 方法一:调用CWinApp类的成员函数SetDialogBkColor来实现。 ---- 其中函数的第一个参数指定了背景颜色,第二个参数指定了文本颜色。 下面的例子是将应用程序对话框设置为蓝色背景和红色文本,步骤如下: ---- ① ... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(1334) 评论(0) 推荐(0)
摘要: 图像列表控制(CImageList)是相同大小图像的一个集合,每个集合中均以0为图像的索引序号基数,图像列表通常由大图标或位图构成,其中包含透明位图模式。可以利用WINDOWS32位应用程序接口函数API来绘制、建立和删除图像,并能实现增加、删除、替换和拖动图像等操作。图像列表控制提供了控制图... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(248) 评论(0) 推荐(0)
摘要: void CXXDlg::InitToolbar(){ //创建图像列表 m_imglstToolbar.Create(32,32,ILC_COLOR24|ILC_MASK,1,1); //向图像列表中添加图标 m_imglstToolbar.Add(AfxGetApp()->LoadIcon( ... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(94) 评论(0) 推荐(0)
摘要: 1、有关IPicture加载图片后直接Render到内存DC的问题(HBITMAP 转换 IPicture) Picture的方法get_Handle可以直接得到图片的句柄 IPicture *pIPicture; HBITMAP hBitmap; ... pIPicture... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(135) 评论(0) 推荐(0)
摘要: 1. RECT lp,rp; this->GetParent()->GetWindowRect(&rp); this->GetWindowRect(&lp); lp.left = lp.left - rp.left; lp.top = lp.top - rp.top; lp.right = l... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(119) 评论(0) 推荐(0)
摘要: 现在Windows编程一般都使用窗口程序设计,即GUI模式。但有时我们需要输出一些信息用于调试或查看某些状态,以前我都是在窗口上加一个Edit控件,然后把需要的信息输出到Edit控件里,但这样严重影响了应用程序的美观。现在,我们可以在应用程序里自己开一个控制台(就像DOS窗口一样),然后重定向输入... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(103) 评论(0) 推荐(0)
摘要: Win7更改文件类型图标 使用过win7的人,肯定都知道win7没有一个现成的提供你更改文件图标的工具。比如.*.rmvb、*.doc,我们并不想使用其原先的默认图标;或者是某个软件因为下载的是硬盘版,所以没有进行文件关联,从而进行关联的时候,致使这类文件图标并不美观,等等。因为这些原因的... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(1086) 评论(0) 推荐(0)
摘要: 一、 简介屏幕抓图程序在处理图形中应用广泛。作为Windows XP及以后版本操作系统的图形处理内核,GDI+在二维几何图形处理、图像显示与转换和字符排版等方面简直是传统GDI程序员的一种解脱。但是,至少在目前情况下,GDI+尚不能完全代替GDI。与GDI相比,它至少还存在以下不足:不支持从内存到... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(579) 评论(0) 推荐(0)
摘要: 资源下载地址:http://download.csdn.net/detail/zzzili/4177527 #ifndef _CMYSTATIC#define _CMYSTATIC #include "StdAfx.h"#include "gdiplus.h"#pragma commen... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(270) 评论(0) 推荐(0)
摘要: CWebBrowser2 * pBrowse = (CWebBrowser2 *) GetDlgItem(IDC_EXPLORER1);COleVariant sLoc("http://localhost");pBrowse->Navigate2(sLoc, NULL, NULL, NULL, N... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(405) 评论(0) 推荐(0)
摘要: ////生成树根MSXML::IXMLDOMElementPtr pDocElement=pDoc->createElement("China"); pDoc->appendChild(pDocElement); ///添加节点MSXML::IXMLDOMElementPtr pNewChil... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(139) 评论(0) 推荐(0)
摘要: int i = 1; int y = 0;try{i = i/y;throw new ArgumentException(); }catch(Exception ee){Console.WriteLine(ee.ToString()); Console.WriteLine("error"); }... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(80) 评论(0) 推荐(0)
摘要: #include "Winuser.h"#pragma comment(lib,"user32.lib") CPopDlg m_popDlg; m_popDlg.Create(IDD_DIALOG1,this); int x= GetSystemMetrics(SM_CXSCREEN);... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(377) 评论(0) 推荐(0)
摘要: NOTIFYICONDATA nd; BOOL CPlaySoundDlg::OnInitDialog(){ CDialogEx::OnInitDialog(); // 设置此对话框的图标。当应用程序主窗口不是对话框时,框架将自动 // 执行此操作 SetIcon(m_hIco... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(103) 评论(0) 推荐(0)
摘要: WinExec("cmd /c dir c:\\new\\*.txt >c:\\new\\txtlist",SW_HIDE); 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(118) 评论(0) 推荐(0)
摘要: 1.初始化图片列表 CTreeCtrl CImageList m_imglstTreeFolder; m_imglstTreeFolder.Create( 16 , 16 , ILC_COLOR24 | ILC_MASK , 1 , 0 ) ; m_imglstTreeFolder.Add... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(131) 评论(0) 推荐(0)
摘要: 1、new 是c++中的操作符,malloc是c 中的一个函数2、new 不止是分配内存,而且会调用类的构造函数,同理delete会调用类的析构函数,而malloc则只分配内存,不会进行初始化类成员的工作,同样free也不会调用析构函数3、内存泄漏对于malloc或者new都可以检查出来的,区别在... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(202) 评论(0) 推荐(0)
摘要: 在编译配置里添加一个x64的就可以了。 从菜单【编译(Build)】->【配置管理(Configuration Manager)】 在弹出的窗口里的右上角有个【可用工程平台(Active solution platform)】下拉框,打开可以看到有个【新建】菜单,点击打开【新建工程平台】的对话... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(399) 评论(0) 推荐(0)
摘要: // ssss.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include "windows.h"#include "string.h" //MFC-only stri... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(682) 评论(0) 推荐(0)
摘要: BOOL HasChineseChar(CString Cstr){int nLen = Cstr.GetLength();unsigned char ch1, ch2;for(int i = 0; i != nLen; ++i){ch1 = Cstr[i];if (ch1 >= 0xA0){re... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(312) 评论(0) 推荐(0)
摘要: LONG lStyle; lStyle = GetWindowLong(m_list.m_hWnd, GWL_STYLE);//获取当前窗口风格 lStyle &= ~LVS_TYPEMASK; //清除显示方式位 lStyle |= LVS_REPORT; //设置报表风格 SetWindowL... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(426) 评论(0) 推荐(0)
摘要: #include #include int killpro(CString a){ PROCESSENTRY32 pe32; pe32.dwSize =sizeof(pe32); HANDLE hpro=::CreateToolhelp32Snapshot(TH32CS_SNAPPROC... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(151) 评论(0) 推荐(0)
摘要: using System.Data.OleDb;using MySql.Data.MySqlClient;using System.Data;using System.Data.SqlClient; void LinkMySql() { strin... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(74) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(98) 评论(0) 推荐(0)
摘要: 【XML】可扩展标记语言 (Extensible Markup Language, XML) ,用于标记电子文件使其具有结构性的标记语言,可以用来标记数据、定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言。 XML是标准通用标记语言 (SGML) 的子集,非常适合 Web 传输。XML... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(1180) 评论(0) 推荐(0)
摘要: bit/位 取值0...1byte(字节)=11111111(2)=255(10)=FF(16)WORD(单字)=2Byte=0...65535 =FFFFDWORD(双字)=2WORD=4Byte=0...4292967295=FFFFFFFFint(4字节),long(4字节),flo... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(95) 评论(0) 推荐(0)
摘要: /** 功能:BYTE组转IplImage,并可实现图像的上下倒置*入参:pImg,BYTE数组指针。byteSize BYTE数组大小,width图像宽,height图像高*返回:转化后的IplImage指针*/IplImage * Byte2IplImg( BYTE *pImg,long by... 阅读全文
posted @ 2012-12-06 15:28 废弃账号 阅读(143) 评论(0) 推荐(0)