visual-c++ Questions

4

I am using the BRIEF descriptor in OpenCV in Visual C++ 2010 to match points in two images. In the paper about the BRIEF-descriptor is written that it is possible to speed up things: "The BRIEF...
Giuditta asked 17/4, 2012 at 9:5

7

Solved

I'm creating a dialog with the resource editor of Visual C++. When I run the test button of the editor, components of the dialog are displayed with a modern look, while when running the applicati...
Strangles asked 22/6, 2009 at 7:37

1

Is there an equivalent of the GNU "strip" tool for Windows? I'd like to strip out the names of any internal symbols from a static library, so that running dumpbin /symbols mylib.lib will no longer...
Soundless asked 16/10, 2016 at 22:20

4

Solved

is there a way to find a USB device with specified VID and PID on windows without involve calling to WDK functions?
Dextrad asked 29/9, 2011 at 15:2

1

The following code compiles with g++ 14.2 and clang++ 18.1, but fails with MSVC 17.10. class Base { public: using peak = Base; Base() = default; }; class Derived : public Base { protected: usin...

0

Consider following code: #include <variant> class A {}; class B {}; template<typename... Ts, typename Variant> bool constexpr is_of(const Variant& variant) { return std::visit( ...
Griner asked 23/8 at 15:23

1

I am having a hard time to make out whether the command line tool cl.exe is what people refer to when they are talking about "the MSVC compiler". Are the two the same thing or do you use cl to con...
Hammerlock asked 18/12, 2018 at 12:39

1

The code below behaves incorrectly. When f<0> or f<5> is called, it prints as if k = true, but the if statement behaves as if k = false. When f<1> is called, it does the opposite....

2

Solved

For code: #if defined(FOO) && FOO(foo) #error "FOO is defined." #else #error "FOO is not defined." #endif MSVC 19.38 prints: <source>(1): warning C4067: unexpec...
Margertmargery asked 30/6 at 13:41

4

Is there some function like GCC's __builtin_constant_p() for Microsoft Visual Studio? As I understand, the function returns non-zero if the argument is constant, like a string literal. In the answ...
Romina asked 4/1, 2014 at 9:8

1

I am trying to run a function in Excel from a dll made via C++. I have followed the steps in the Microsoft DLL creation overview and successfully gotten the DLL/client example working. I've also fo...
Aluminothermy asked 23/12, 2020 at 4:27

5

If debug information is stored in a program database (not as part of an executable), is there any reason not to always build with it (e.g., MSVC's /Zi)? In CMake, the default configurations are, ...
Sitology asked 7/12, 2017 at 20:56

1

Solved

Recently I installed the latest Visual Studio 2022 v17.10 to build my programs, and initially all went well. But after some other program installation, my programs started failing immediately on st...
Ermelindaermengarde asked 9/6 at 9:28

2

Solved

I have a solution (available on Git at this link) including one project (producing a DLL library) and a native unit test. Visual Studio Enterprise 2015 with VC++ On Windows 10 The structure of ...
Kelsiekelso asked 7/7, 2018 at 19:19

2

Solved

Simplified program as follows struct S { S() {} S(const S &) {} S(S &&) = delete; }; S x; S y = false ? S() : x; is accepted just fine by GCC and Clang, but the latest Visual Studi...

5

Solved

I have a solution in C:\full path here\VS2010\blender.sln This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite)...
Churchwoman asked 10/8, 2011 at 15:20

6

Solved

This is the CMake output: -- The C compiler identification is MSVC 16.0.30319.1 -- The CXX compiler identification is MSVC 16.0.30319.1 -- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLI...
Shepperd asked 31/5, 2015 at 2:41

3

Solved

I have just upgraded Visual Studio 2022 to the latest version 17.10, and found that my program using CUDA v12.0 does not compile because of the error in NVIDIA GPU Computing Toolkit\CUDA\v12.0\incl...
Eliseoelish asked 22/5 at 7:35

7

Solved

I'm working on a project that requires me to compile C++ code using MSVC, but I am working mostly with VSCode. As such, I was wondering if there is a way for me to add the Developer Powershell as a...
Kiowa asked 6/5, 2020 at 1:41

3

I am trying to install Visual C++ Build Tools. But while installing I keep getting this error during setup A setup package is either missing or damaged I even tried copying respective package from...
Outlet asked 8/11, 2016 at 6:44

1

My program adds float arrays and is unrolled 4x when compiled with max optimizations by MSVC and G++. I didn't understand why both compilers chose to unroll 4x so I did some testing and found only ...
Melonie asked 19/6, 2022 at 5:11

5

Microsoft Visual C++ Express does not include the built-in resource editor that comes with the professional versions. Are there any good, free, alternatives out there that let you visually edit tho...
Heavyset asked 19/12, 2008 at 19:15

8

Solved

I'm trying to convert the string produced from the __DATE__ macro into a time_t. I don't need a full-blown date/time parser, something that only handles the format of the __DATE__ macro would be gr...
Omentum asked 19/11, 2009 at 17:17

3

Solved

I have a file in my project which contains the project version number. I have to make the content of this file available as a preprocessor definition in my code. What I need is to somehow pass the...
Salahi asked 19/3, 2014 at 10:50

8

I'm making my application thread-safe. One of the steps is to synchronize access or eliminate usages of global variables. I'm using Visual Studio. I can't find any good way to find all global varia...

© 2022 - 2024 — McMap. All rights reserved.