小编blo*_*ood的帖子

how to search the computer for files and folders

i need a way to search the computer for files like Windows Explorer. i want my program to search lets say hard drive c:. i need it to search C:\ for folders and files (just the ones you could see in c:\ then if the user clicks on a file on the list like the folder test (C:\test) it would search test and let the user see what files/folders are in it.

c++ windows file

13
推荐指数
2
解决办法
4万
查看次数

如何开发像FRAPS这样的程序?

我想制作一个捕捉视频的程序.

  • 捕获视频的最佳方式是什么?
  • 我知道C++,我正在学习装配.我在装配书中发现我可以从视频卡中获取数据.那会是最好的方式吗?
  • 我知道FRAPS挂钩程序,但我希望我的程序能够拍摄整个屏幕的视频.

我想要一些快速的东西,如果可能的话,内存使用率很低.要求是程序必须可以在其他计算机上使用,尽管硬件不同.

c++

9
推荐指数
1
解决办法
3313
查看次数

有没有将程序集转换为C++的程序?

是否有程序将程序集转换为C或C++?我做了很多搜索,但找不到任何有用的东西.有一个名为"Boomerang"的程序; 它看起来很棒,只是想要我想要的,但是当我尝试使用它时,它非常不稳定并且崩溃了.(回旋镖)

有没有其他免费程序可以做到这一点?

c++

7
推荐指数
1
解决办法
2万
查看次数

如何在字符串中添加int

我有一个字符串,我需要添加一个数字,即一个int.喜欢:

string number1 = ("dfg");
int number2 = 123;
number1 += number2;
Run Code Online (Sandbox Code Playgroud)

这是我的代码:

name = root_enter;             // pull name from another string.
size_t sz;
sz = name.size();              //find the size of the string.

name.resize (sz + 5, account); // add the account number.
cout << name;                  //test the string.
Run Code Online (Sandbox Code Playgroud)

这工作...有点但我只得到"*名称*88888"和......我不知道为什么.我只需要一种方法将int的值添加到字符串的末尾

c++ string

5
推荐指数
2
解决办法
4298
查看次数

如何将时间保存到文件中?

我有一个将数据保存到文件的程序,我想在该日志上放置当前日期/时间的时间戳,但是当我尝试将时间写入文件时,它不会显示,但我写入的其他数据会显示。

#include <iostream>
#include <windows.h>
#include <fstream>
#include <string>
#include <sstream>
#include <direct.h>
#include <stdio.h>
#include <time.h>

using namespace std;

string header_str = ("NULL");


int main()
{

for(;;)
{


        stringstream header(stringstream::in | stringstream::out);   

        header << "datasdasdasd_";

         time_t rawtime;

         time ( &rawtime );

        header << ctime (&rawtime);
        header_str = header.str();

        fstream filestr;

        filestr.open ("C:\\test.txt", fstream::in | fstream::out |   fstream::app | ios_base::binary | ios_base::out);

        for(;;)
        {
            filestr << (header_str);

        }

        filestr.close();


}

return 0;
}
Run Code Online (Sandbox Code Playgroud)

有人知道怎么修这个东西吗?

c++ time

3
推荐指数
1
解决办法
1万
查看次数

如何让我的程序将用户登录到Windows?

我一直在研究一个程序,如果有人插入Usb,将输入用户名和密码,但我不知道如何输入密码的Windows登录.所以我的想法是让我的程序运行,这样就可以找到usb是否插入,如果是这样的话,它将使用keybd_event输入密码并点击回车.我怎么能让我的程序运行所以我可以这样做?

c++ windows login

3
推荐指数
1
解决办法
237
查看次数

如何确定.exe是否在c ++中运行?

如何在给定进程名称的Windows上运行可执行文件,例如program.exe?

c++ winapi executable

3
推荐指数
2
解决办法
7529
查看次数

如何将WIN32_FIND_DATA转换为字符串?

我使用WIN32_FIND_DATA来存储数据findfirstfile输出.我希望文件位置(C:\文件)作为字符串,但我不知道如何从它获取它或任何其他数据.

编辑:这是我的代码

PTSTR pszFileName; 
PTSTR pszFileName2[100];
if (search_handle) 
{ 
    do 
    {
        pszFileName = file.cFileName;
        pszFileName2[loop] = pszFileName;
        Sleep(100);
        loop++;

        std::wcout << file.cFileName << std::endl;
    }
    while(FindNextFile(search_handle,&file)); 

    CloseHandle(search_handle); 
}
Run Code Online (Sandbox Code Playgroud)

c++ windows

1
推荐指数
1
解决办法
7256
查看次数

如何用代码打破互联网连接?

嘿,我知道在某些电脑上你可以用一个按钮切断无线网络,我想用我的桌面做到这一点,但它不是无线的.有没有办法在代码中阻止我的电脑上网,然后解锁.无论如何我能做到这一点?

c++ windows

0
推荐指数
1
解决办法
2122
查看次数

标签 统计

c++ ×9

windows ×4

executable ×1

file ×1

login ×1

string ×1

time ×1

winapi ×1