小编Bog*_*nko的帖子

与"LPCWSTR"类型的参数不兼容

#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include <dos.h>
using namespace std;

class Dir
{
public:
    char* cat;
    Dir()
    {
        cout << "(C:/*)\n";
        cat = new char[50];
        cin >> cat;
    }

    void virtual ShowFiles()
    {
    }

};


class Inside : public Dir
{
public:
    void virtual ShowFiles()
    {
        HANDLE hSearch;
        WIN32_FIND_DATA pFileData;

        hSearch = FindFirstFile(cat, &pFileData);
        if (hSearch != INVALID_HANDLE_VALUE)
            do
            {
                //  if ((pFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
                cout << pFileData.cFileName << "\n";
            } while (FindNextFile(hSearch, &pFileData));
            FindClose(hSearch);
    }
}; …
Run Code Online (Sandbox Code Playgroud)

c++ visual-c++

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

node-opus 安装问题

我在 Windows 10 上安装 node-opus 时遇到问题:

  • 带有 Windows 10 和 Windows 8.1 sdk 和工具 + C++ 的 Visual Studio 2015;
  • npm v. 3.8.5;
  • 蟒蛇2.7;

当我尝试在我的项目中安装我的 node-opus 时,它说我构建错误:

> ref@1.3.2 install F:\node-js-app\bots\ContentBot\node_modules\ref
> node-gyp rebuild


F:\node-js-app\bots\ContentBot\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_m
odules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  binding.cc
..\src\binding.cc(5): fatal error C1083: Cannot open include file: 'node.h': No such …
Run Code Online (Sandbox Code Playgroud)

c++ node.js npm node-gyp

5
推荐指数
0
解决办法
1725
查看次数

标签 统计

c++ ×2

node-gyp ×1

node.js ×1

npm ×1

visual-c++ ×1