Skip to main content
0 votes
1 answer
142 views

I have Visual Studio 2022 and this line of code using (Excel.Application xlApp = new Excel.Application()) throws an error CS1674 'Application': type used in a using statement must implement 'System....
Charles Fleischmann's user avatar
1 vote
2 answers
93 views

Why do gcc, clang and msvc successfully compile the following code? (godbolt) namespace impl { class A; } // namespace impl namespace api { using namespace impl; } // namespace api class B { ...
Igor G's user avatar
  • 2,668
1 vote
1 answer
93 views

From cppreference : From the point of view of unqualified name lookup of any name after a using-directive and until the end of the scope in which it appears, every name from namespace-name is visible ...
Rajdeep Sindhu's user avatar
0 votes
1 answer
37 views

We're on Visual Studio Code, .NET 8 & Angular. I changed the structure of my project and now I cannot use using directive in my app, it's driving me crazy. Here is my structure: Structure Expended ...
Adrien Le Breton's user avatar
3 votes
1 answer
247 views

I last used C++ at the 98 with boost/C++11 simulation. I am reading Stroustrup's "A Tour of C++, Third Edition" to help introduct the things I will need to learn more about. Following ...
Varsuuk's user avatar
  • 39
1 vote
0 answers
47 views

The C# doc on the using directive says The using directive allows you to use types defined in a namespace without specifying the fully qualified namespace of that type. I understood this to mean ...
joseville's user avatar
  • 1,013
0 votes
0 answers
25 views

I have a VS issue, VS2022 but it also happened in the previous version. In fact its been happening for a few years. When I do certain operations, often moving files within VS, I find I get a load of ...
Craig's user avatar
  • 585
-1 votes
1 answer
81 views

I am trying to make some sort of easy way to define mcu that I use, and by defining mcu, different header files should be included. I tried doing it with #if and #elif directives : #include "...
Dominykas's user avatar
  • 161
1 vote
1 answer
48 views

In the following code will fail to compile because, despite the chain of public inheritance, HasFlag is not visible in DerivedFoo. class BasicFoo { public: bool HasFlag() const { return m_flag; } ...
Adrian McCarthy's user avatar
2 votes
1 answer
159 views

The following code (a simplified example from a more complex code) fails to compile with gcc 11.3.0 #include <array> #include <memory> #include <tuple> namespace tools { template &...
francesco's user avatar
  • 7,617
0 votes
0 answers
39 views

Using the using-directive I'm able to select a certain set of methods from the base class to put into a different access scope. Is this also possible for individual overloads of the method? Something ...
glades's user avatar
  • 5,356
-2 votes
2 answers
1k views

Heyo, basically I was writing this simple function to ask you how many cars you have, inputing the amount in the array, and assigning the names of the cars to the array aswell. Also made a for loop to ...
Sweep's user avatar
  • 11
0 votes
0 answers
553 views

I have a project with some interfaces that contains some type alias in it, for example like below: namespace UsingTest { using MyType = System.Collections.Generic.List<int>; public ...
sorosh_sabz's user avatar
  • 3,053
1 vote
1 answer
79 views

I have a .NET Framework 4.7.2 web application. I am receiving the following yellow screen error from some of my Views and Partial Views but not all of them: Expected a "{" but found a "...
bowserm's user avatar
  • 1,056
2 votes
3 answers
97 views

This is just short inquiry if it is at all possible to somehow import base class constructors without all the template bloat. Consider this example where I'm inheriting from a templated std::variant: ...
glades's user avatar
  • 5,356

15 30 50 per page
1
2 3 4 5
20