当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: #include <iostream>#inclu
 

 

    摘要: 诸如copyfileex 这样的函数在使用的时候可能会碰到明明是包含在头文件里的函数但编译不过去,显示如下: error c2065: copyfileex : undeclared identifiererror c2065: copy_file_restartable : undeclared identifier 解决方法如下: for example, to use the fe......
 ·com组件的使用方法    »显示摘要«
    摘要: requirement:1.创建mycom.dll,该com只有一个组件,两个接口igetres--方法hello(), igetresex--方法helloex()2.在工程中导入组件或类型库 #import "组件所在目录\mycom.dll" no_namespace 或 #import "类型库所在目录\mycom.tlb" using namespace mycom;--method ......


获得指定目录下的所有文件的方法!

#include <iostream>

#include <cstring> 【程序编程相关:VC++学习笔记——CListCtrl列

#include <windows.h> 【推荐阅读:用const时应注意的一些地方

【扩展信息:第一章 Hello,MFC

using namespace std;

void listfile(char* szdir)

{

 char  sztempdir[max_path+1];

 strcpy(sztempdir,szdir);

 strcat(sztempdir,"*");

 handle  hfindfile;

 win32_find_data  filedata;

 hfindfile = findfirstfile(sztempdir,&filedata);

 

 if( hfindfile == invalid_handle_value )

 {

  return ;

 }

 else

 {

  do

  {


...   下一页
    摘要: sqlite简介: this is an extension for the sqlite embeddable sql database engine. sqlite is a c library that implements an embeddable sql database engine. programs that link with the sqlite library can ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE