visual-studio-2013

Using a relative path for a database file in c#, visual studio 2013

你说的曾经没有我的故事 提交于 2021-01-29 18:30:40
问题 inside my code i am using this command: conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source =C:\Users\ori\Documents\Visual Studio 2013\Projects\maxstar01\Database.accdb"); i am in a team of programmers which we all work on our own computers but everyone are using the same folder name "maxstar01" (which inside there is the solution file and all of it's directories and that database file). so i want to use a relative path which will call the database.accdb that sits

Visual Studio c++ Only in Debug Mode LNK 1104 error

烈酒焚心 提交于 2021-01-29 04:03:34
问题 I've just created c++ console application in Visual Studio 2013 Ultimate. When I run code in debug mode: error LNK1104: cannot open file 'C:\Users\example.exe' When I run code in release mode: Build: 1 succeeded Do you have any idea, why would i have LNK1104 on "debug mode" ? 回答1: Ok, I think I found the solution. I am currently using "Bitdefender Total Security 2015" and in the antivirus part, I found the following message So Bitdefender exactly deleted my .exe file everytime I compile in

The source at nuget.org is unreachable?

若如初见. 提交于 2021-01-28 11:54:02
问题 I'm trying to install SignalR in my C# project, but all I get when running install-package Microsoft.AspNet.SignalR is: The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache(...) At line:1 char:1 + install-package Microsoft.AspNet.SignalR + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands

The source at nuget.org is unreachable?

岁酱吖の 提交于 2021-01-28 11:39:32
问题 I'm trying to install SignalR in my C# project, but all I get when running install-package Microsoft.AspNet.SignalR is: The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache(...) At line:1 char:1 + install-package Microsoft.AspNet.SignalR + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands

CreateBuffer throwing an “Access violation reading location”

二次信任 提交于 2021-01-28 07:40:07
问题 I have a function, inside a class called ModelClass, that does the following: bool ModelClass::SetVertices(ID3D11Device* device, VertexType* vertices) { // Error catching variable HRESULT result; // Setup the vertex buffer description D3D11_BUFFER_DESC vertexBufferDesc; ZeroMemory(&vertexBufferDesc, sizeof(vertexBufferDesc)); vertexBufferDesc.Usage = D3D11_USAGE_DEFAULT; vertexBufferDesc.ByteWidth = sizeof(vertices)*24; vertexBufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; vertexBufferDesc

CreateBuffer throwing an “Access violation reading location”

早过忘川 提交于 2021-01-28 07:26:34
问题 I have a function, inside a class called ModelClass, that does the following: bool ModelClass::SetVertices(ID3D11Device* device, VertexType* vertices) { // Error catching variable HRESULT result; // Setup the vertex buffer description D3D11_BUFFER_DESC vertexBufferDesc; ZeroMemory(&vertexBufferDesc, sizeof(vertexBufferDesc)); vertexBufferDesc.Usage = D3D11_USAGE_DEFAULT; vertexBufferDesc.ByteWidth = sizeof(vertices)*24; vertexBufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; vertexBufferDesc

Visual Studio 2013.2 can't build because IIS is locking an assembly

雨燕双飞 提交于 2021-01-27 21:14:39
问题 My ASP.NET MVC 5 application is using my local IIS (Windows 7) which worked great until I had to start using the Microsoft.SqlServer.Types NuGet package. Because the package has native assemblies they have to be specialty loaded at runtime. The problem I'm running into though is that after I rebuild the application and access it through the browser IIS loads and locks the native assemblies. If I make the change and rebuild again, Visual Studio fails and says the assemblies are locked by

Websphere MQ C++ client crashes in VS2013- library/linker issues?

六眼飞鱼酱① 提交于 2021-01-27 16:32:04
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }

Websphere MQ C++ client crashes in VS2013- library/linker issues?

帅比萌擦擦* 提交于 2021-01-27 16:31:40
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }

Websphere MQ C++ client crashes in VS2013- library/linker issues?

主宰稳场 提交于 2021-01-27 16:31:09
问题 I just upgraded a project to VS2013 from VS2010 and now it crashes whenever I send a message via MQ, yet it worked fine under VS2010. I suspected it was something to do with VS2013, so I built one of the demo apps that comes with MQ - imqwrld.cpp which is a simple "hello world" app. This code alone is enough for the debug runtime library to throw an exception: #include <imqi.hpp> // WebSphere MQ C++ int main ( int argc, char * * argv ) { ImqQueue * p = new ImqQueue(); delete p; return 0 }