小编fea*_*eoc的帖子

Google App Script 未经验证的应用程序供自己使用和开发

我遇到了未经验证的应用程序的问题。我认为我不需要验证我的应用程序,因为我是它的唯一用户和开发人员,这一点不会改变。为什么它要我验证应用程序以及如何解决此问题?

google-sheets google-apps-script

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

VSCode 远程容器 - 未使用 docker-compose 在开发容器上安装扩展

我无法使用“远程 - 容器”在开发容器中安装扩展。我不知道这是一个错误,我的配置不正确,还是预期的行为。下面是我当前的配置,这两个文件都位于项目的根文件夹中。

docker-compose.yml

version: "3.7"

services:
  api:
    image: node:12
    restart: always
    ports:
      - ${API_PORT}:3000
    volumes:
      - .:/usr/app
      - /usr/app/node_modules
    working_dir: /usr/app
    command: bash -c "yarn && yarn dev"
Run Code Online (Sandbox Code Playgroud)

.devcontainer.json

version: "3.7"

services:
  api:
    image: node:12
    restart: always
    ports:
      - ${API_PORT}:3000
    volumes:
      - .:/usr/app
      - /usr/app/node_modules
    working_dir: /usr/app
    command: bash -c "yarn && yarn dev"
Run Code Online (Sandbox Code Playgroud)

中列出的扩展列表.devontainer.json是我想安装在开发容器中的扩展。任何帮助表示赞赏!

docker visual-studio-code vscode-remote

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

WinApi:CW_USEDEFAULT与CW_DEFAULT

在尝试设置一个新的C++ WinApi项目,而不是让窗口显示(虽然在任务栏中显示一个图标)后,我意识到在调用中CreateWindow(),我正在传递CW_DEFAULT而不是CW_USEDEFAULT到窗口的位置(x并且y,请参阅CreateWindow的文档.我从谷歌搜索中找不到任何关于它们的信息.因此,我的问题是CW_USEDEFAULT和之间的差异CW_DEFAULT,CreateWindow以及它的变化.

c++ winapi

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

std :: find不能使用std :: string

我有一个很奇怪的问题.我正在尝试使用 std::find宽度,std::string但在Visual Studio 2017中编译时出现以下错误:

Error C2446: '==': no conversion from 'const char *' to 'int'
c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.12.25827\include\xutility:3481
Run Code Online (Sandbox Code Playgroud)

产生问题的代码:

#include <algorithm>
#include <string>

int main(int argc, char **argv)
{
    std::string s("Just a test string");
    auto itr = std::find(s.begin(), s.end(), "t");
}
Run Code Online (Sandbox Code Playgroud)

替换"t"std::string("t")生成以下错误:

Error C2678: binary '==': no operator found which takes a left-hand operand of type 'char' (or there is no acceptable conversion) 
c:\program files (x86)\microsoft visual studio\2017\enterprise\vc\tools\msvc\14.12.25827\include\xutility:3481  
Run Code Online (Sandbox Code Playgroud)

c++ string find c++17

-2
推荐指数
1
解决办法
160
查看次数