visual-studio-2015

Formatting differences between sprintf() and wsprintf() in VS2015

你说的曾经没有我的故事 提交于 2020-02-06 07:43:30
问题 I am moving some code from multibyte to unicode, and finding my string formatting coming out wrong. It looks like Visual Studio 2015 handles the width argument specifier '*' differently between sprintf() and wsprintf(). Is this a compiler bug or side-effect, or am I missing something really obvious? Code below, with output: char cOutA [ 64 ]; wchar_t wcOutA [ 64 ]; sprintf ( cOutA, "Multibyte = %.*f\n", 3, 2.12345 ); wsprintf ( wcOutA, L"Unicode = %.*f\n", 3, 2.12345 ); printf ( cOutA );

Compiler Optimizations - Function has no address

喜你入骨 提交于 2020-02-05 05:15:08
问题 I have not used much pointers to member functions but I think that found some dangerous scenarios when using such pointers. The problem comes when compiler decides not to assign address to function, because of some optimization. It happened with VS 2015 even in Debug, x86 (with disabled Optimization - /Od). I am refactoring one old system, moving some code in a common static library (common.lib) so to be able to be used from several projects. Even if not the best pattern, the old

Visual Studio 2015 : SQL Data Source : Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand properties are valid

喜夏-厌秋 提交于 2020-02-04 01:25:44
问题 I have the following development environment for ASP.Net WebPage VS 2015 Professional Version, using .Net Framework 4.0 MySQL Server 5.6, MySQL .Net Connector 6.9.5 MySQL for Visual Studio 2.0.2 I am able to connect to the MySQL database server from Visual Studio Server Explorer. I am trying to create a SQL DataSource for MySQL Database. When I go through the configure data source wizard, it works fine by populating the tables and columns for each table in "Configure Select Statement form",

Visual Studio 2015 : SQL Data Source : Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand properties are valid

不羁的心 提交于 2020-02-04 01:25:10
问题 I have the following development environment for ASP.Net WebPage VS 2015 Professional Version, using .Net Framework 4.0 MySQL Server 5.6, MySQL .Net Connector 6.9.5 MySQL for Visual Studio 2.0.2 I am able to connect to the MySQL database server from Visual Studio Server Explorer. I am trying to create a SQL DataSource for MySQL Database. When I go through the configure data source wizard, it works fine by populating the tables and columns for each table in "Configure Select Statement form",

Cannot Authenticate to one VisualStudio.com TFS in Visual Studio 2015

∥☆過路亽.° 提交于 2020-02-03 01:57:26
问题 I am running Visual Studio 2015. It is registered on my machine under my personal Microsoft account. Running on Windows 10 Professional. I can connect to my personal tfs at visualstudio.com with no issue. I can connect to a corporate tfs at visualstudio.com with no issue, under a second Microsoft (Office365) account. I have a third corporate tfs at visualstudio.com that it refuses to connect to, which uses a third Microsoft (Office365) account. My corresponding MS account is actually the

Difference between vcruntime140d_app.dll and vcruntime140d.dll

允我心安 提交于 2020-02-02 13:11:47
问题 I'm unable to execute my Qt application because Qt5Widgetsd.dll depends on a vcruntime140d_app.dll, but my VS2015 installation only has a vcruntime140d.dll and I'm not able to find much information about vcruntime140d_app.dll on google. Does anyone know what the difference between the two are, why Qt5Widgetsd.dll depends on vcruntime140d_app.dll instead of vcruntime140d.dll and how I could get my hands on vcruntime140d_app.dll? I have tried reinstalling VS2015 and running the vcredist

Difference between vcruntime140d_app.dll and vcruntime140d.dll

家住魔仙堡 提交于 2020-02-02 13:04:51
问题 I'm unable to execute my Qt application because Qt5Widgetsd.dll depends on a vcruntime140d_app.dll, but my VS2015 installation only has a vcruntime140d.dll and I'm not able to find much information about vcruntime140d_app.dll on google. Does anyone know what the difference between the two are, why Qt5Widgetsd.dll depends on vcruntime140d_app.dll instead of vcruntime140d.dll and how I could get my hands on vcruntime140d_app.dll? I have tried reinstalling VS2015 and running the vcredist

Difference between vcruntime140d_app.dll and vcruntime140d.dll

有些话、适合烂在心里 提交于 2020-02-02 13:04:37
问题 I'm unable to execute my Qt application because Qt5Widgetsd.dll depends on a vcruntime140d_app.dll, but my VS2015 installation only has a vcruntime140d.dll and I'm not able to find much information about vcruntime140d_app.dll on google. Does anyone know what the difference between the two are, why Qt5Widgetsd.dll depends on vcruntime140d_app.dll instead of vcruntime140d.dll and how I could get my hands on vcruntime140d_app.dll? I have tried reinstalling VS2015 and running the vcredist

Setting linkage type for C++ library installed via Nuget

允我心安 提交于 2020-02-02 05:26:46
问题 This answer mentions the following method to link to the static version of a C++ library [in this case, "freeglut"] installed via Nuget: Project->Properties->Configuration Properties->Referenced Packages->freeglut->Linkage (select static) With Visual Studio 2015 I can't find "Referenced Packages". The only explicit reference to Nuget packages that I have is the packages.config xml file. If I go to the "Manage Nuget packages" section of the project I can install or un-install but I can't find

Visual Studio 2015 suddenly don't want to create new variables in classes [closed]

放肆的年华 提交于 2020-01-30 12:05:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm struggling with the issue almost whole day, I didn't find any answer in the internet. I know this fix is just to shift one small thing, however I have not idea which one. Uninstall (using TotalUninstaller) of visual studio (community 2015) didn't fix mine problem. That's it for the word of introduction ... I