visual-c++ Questions
6
Solved
I have a vector that stores pointers to many objects instantiated dynamically, and I'm trying to iterate through the vector and remove certain elements (remove from vector and destroy object), but ...
Runyan asked 13/6, 2009 at 19:27
4
Solved
I am unaware of a win32 api function/functions used to query the local PC processor's current speed. I wish not to use WMI because it seems unlikely to be feasible on all PCs.
Rempe asked 25/9, 2011 at 6:47
10
Solved
I'm trying to install a package on Python, but Python is throwing an error on installing packages. I'm getting an error every time I tried to install pip install google-search-api.
Here is the erro...
Kamerad asked 8/10, 2020 at 11:26
1
Solved
This code works in GCC and Clang, bug not on MSVC:
#include <concepts>
#include <utility>
struct S {};
const S&& f();
S g();
static_assert(std::same_as<decltype(false ? f(...
Sinistrodextral asked 19/4, 2024 at 14:13
17
Solved
Suddenly, my Visual Studio Express 2010 C++ stopped rebuilding my project.
When I first hit F7 the project builds and runs fine (heck, it's a hello world example).
Then I make some changes and hit ...
Taker asked 25/8, 2012 at 17:25
5
Solved
So I can do something like
#ifdef MSVC
//do compiler specific code here
#endif
Dearing asked 1/5, 2011 at 18:18
1
I'm using Anaconda and I have installed PyTorch using the following command: pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
Now I'm getting the fo...
Egyptian asked 7/8, 2022 at 0:59
10
Solved
I'm using a library from CGAL which during the linking stage of my code compilation produces a lot of linking warnings of this form:
warning LNK4099: PDB 'vc80.pdb' was not found with 'gmp-vc80-mt...
Planogamete asked 19/3, 2009 at 9:53
2
Solved
The below code results in a deadlock upon exiting main()
#include <stacktrace>
#include <iostream>
#include <thread>
#include <semaphore>
#include <chrono>
using name...
Blurb asked 26/3, 2024 at 3:23
7
Solved
Value of constant variable can be changed through pointer tricks, but is it possible to do something like this :
class A (){
int x;
public:
void func () const {
//change value of x here
}
}...
Exquisite asked 21/9, 2015 at 1:48
1
Solved
I've stumbled across an oddity in MSVCs codegen, regarding structures that are used as return-values. Consider the following code (live demo here):
struct Result
{
uint64_t value;
};
Result makeR...
Crapulous asked 28/3, 2024 at 14:56
2
I was building a flutter desktop app using vs code and all sudden was presented with this error completely unfamiliar with.
anyone with a solution on how to handle this, I appreciate
following is ...
Submarginal asked 24/8, 2022 at 7:48
3
Solved
Is there anyway to install or have VC++ Debug Runtime Distributable without installing Visual Studio ?
Just to run a dll that has been compiled in debug mode using VS2013 on another machine that ha...
Sideband asked 19/8, 2014 at 12:47
3
Solved
I am trying to debug a program that manipulates a file. For example, I set the file-pointer to offset 4 (using a base of 0), but it seems to be starting at offset 5 instead.
To try to figure out w...
Watercourse asked 17/7, 2013 at 18:5
1
What does long and short mean in the context of sections in the object file? It seems to refer to its size, but there is no documentation on it. Here we see the section name .rdata$T is long, but I...
Semifluid asked 20/3, 2021 at 16:42
1
In visual studio (2015), is there a way to prevent getting results from 'enc_temp_folder' when performing a 'find/replace in files'?
This is very irritating since I have to go through twice the nu...
Giulietta asked 26/3, 2018 at 13:45
1
This code compiles with MSVC from VS 2022 in C++20 mode. It failes in C++23 mode. (/std:c++latest)
#include <memory>
struct A;
struct B {
B();
~B();
std::unique_ptr<A> ptr{nullptr...
Sverdlovsk asked 22/2, 2024 at 11:29
1
Solved
Calling member function of an incomplete type compiles in gcc and does not compile in clang and msvc
Here is an example:
struct TestClass {
void testFunction() const {}
static TestClass* ptr_;
constexpr static auto funcPtr = +[](){ ptr_->testFunction(); };
};
TestClass* TestClass::ptr_ = ne...
Osbert asked 29/2, 2024 at 9:7
2
VST3 SDK: Problematic construction of std::string member in ClassInfo object causes program to crash
The Problem:
I'm trying to use the VST Hosting utilities included in the SDK to load a plugin. The code is as shown:
#include "vst/v3/Vst3CommonIncludes.h"
int main()
{
std::string vst3...
Elana asked 27/8, 2023 at 5:28
9
Solved
I have a compile error in my simple MFC window application generated from wizard with several lines of code:
error C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy...
Kee asked 17/3, 2014 at 9:15
0
Here is some simple program (reduced version when I was writing data for some unit tests):
#include <initializer_list>
#include <iostream>
#include <string_view>
#include <vect...
Intercessor asked 16/2, 2024 at 16:58
3
Solved
argc parameter in main function doesn't include redirection Command('<','>').
But, I faced a confusing problem with using double quote.
shell(CMD)
I expected argc is 3 and Yes!
a.exe aa bb ...
Dodecanese asked 7/2, 2024 at 12:1
2
so I was trying to install this package Eur-Lex on Python and had this error :
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\...
Serried asked 25/7, 2023 at 15:4
1
I'm having a hard time opening the interactive resource editor in a MFC CMake project that otherwise compiles and runs just fine.
The project files are laid out as follows:
.
├── CMakeLists.txt
├──...
Dysphasia asked 27/9, 2018 at 13:0
3
Solved
Is it possible to crash a regular user-mode process on Windows-7 without getting the Windows Error Reporting (WER) dialog? (When and if WER is normally enabled and no specific flags are applied.)
...
Speight asked 7/1, 2013 at 11:49
© 2022 - 2025 — McMap. All rights reserved.