Microsoft Visual Studio Community 2019 Version 16.8.4.
This is a CLR Project (.NET Framework 4.5).
I'm not sure about the origin of this bug, so I cannot fill in a bug report to its respective program.
I either found a bug on Visual Studio Community 2019 or AxWMPLib::AxWindowsMediaPlayer. When adding a custom control derived from AxWMPLib::AxWindowsMediaPlayer in the Designer, if you switch the Language of the form by the Designer then it gets all blank and you are forced to close the Designer. For another custom controls like derived from System::Windows::Forms::* that bug doesn't happen.
This is my ClassLibrary1.dll e.g:
#pragma once
using namespace System;
namespace ClassLibrary1 {
[System::ComponentModel::ToolboxItem(true)]
public ref class MyMediaPlayer : public AxWMPLib::AxWindowsMediaPlayer
{
public:
MyMediaPlayer() {}
};
}
Problem solved on version 16.8.6. So it was actually a Visual Studio bug.
I am writing getter function in my typescript classes in visual studio. I like getter function because I feel it cleans up my code, there is one situation I want to fix though.
class Foo {
doWork(){
console.log(this.bar);
this.bar = 2;
}
get bar(){
return 1;
}
}
the first line in doWork is correct and there is no complaints from visual studio. Its the second line that I want to fix. When the code is transpiled it throws an error in the client like it should but visual studio doesnt know to complain and underline the second line. I was wondering if there was some visual studio setting that could get it to say that the second line is incorrect
This bug was solved in TypeScript version 2.0. For more insformations read TypeScript's GitHub issue https://github.com/Microsoft/TypeScript/issues/12.
You need to upgrade your TypeScript compiler. Download new TypeScript installer from http://www.typescriptlang.org/index.html#download-links (Visual Studio 2015 link) and just install.
I have a really annoying problem with class diagram in Visual Studio 2010 Professional.
Here's an example:
I have the main class called MyBaseClass which is inherited by MyClass which on the other hand is inherited by MyComplexClass written up manually in the code.
While I try to run Class Diagram generator in VS it's presented in the nested way in a single "block" of class Program.
How can make it look more tree-like(chart) with inheritance lines, just like the most popular/standard display of a class diagram?
I had some code that I developed on Ubuntu and now I am trying to compile it on Windows 7 (MS VS 2010).
vector<float> tmp;
....
tmp = {3.0,4.5,9.4};
This gives me syntax error
error C2143: syntax error : missing ';' before '{'
Is this because Visual studio doesn't support this feature ? or should I be enabling some switch in the properties. I have the "Platform Toolset" property set to "v100."
Thank you.
The C++0x features are enabled by default on the Visual Studio 2010 C++ compiler. It takes no extra switches for example to use lambdas, auto, etc ... If you're getting that error it's because in all likelyhood it's not supported.
EDIT
Based on this MSDN article, initializer lists are not one of the 6 supported features in 2010
http://msdn.microsoft.com/en-us/magazine/ee336130.aspx
the Visual C++ compiler in Visual Studio 2010 enables six C++0x core language features: lambda expressions, the auto keyword, rvalue references, static_assert, nullptr and decltype
Visual Studio 2010 doesn't support initializer lists.
Look here for the supported C++0x features in Visual Studio 2010
Visual Studio 2012 doesn't support them, too.
You can find he C++11 features that are implemented in Visual Studio 2012 / VS11 here and here.
The first implementation of initializer list is available in the Visual C++ Compiler November 2012 CTP.
The first real release of initializer lists will be in Visual Studio 2013.
Even if they were there, this code would not work because it assigns an initializer list, which is not yet a vector, to an existing object named 'tmp'. You can assign to vectors like this:
vector<int> tmp = vector<int> {...}; // calls constructor, initializes then assigns
or
std::initializer_list<int> iniList = {1,2,3,4,5,6};
but not
std::vector<int> tmp;
tmp = {...}; // calls assignment operator
By the way: the feature is still missing in VS2012.
It seems I am not able to call a dummy function created in F# from C# and/or VB.Net in Visual Studio 2010 Beta 1.
Most references dug up by Google resolve issues arising in older versions of Visual Studio and CTPs of F#.
It would rock if somebody could post a small howto. Thanks in advance.
F#:
// in Program.fs, last file in project
let Foo() =
printfn "Hello from F#"
C#:
Program.Foo();
F#:
namespace MyFSharpCode
type MyType() =
static member Foo() =
printfn "Hello from F#"
C#:
MyFSharpCode.MyType.Foo();
You will need to make the F# code publicly available to other callers by encapsulating it in a type.