Posts

Showing posts with the label visual-studio

What does “Version” mean when viewing reference properties in Visual Studio?

Image
What does “Version” mean when viewing reference properties in Visual Studio? I am currently battling "DLL hell" in Visual Studio 2017. For unknown reasons, I suddenly got a problem with System.ValueTuple, where the error I get is the classic problem that have been asked many times before: Could not load file or assembly 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. I cannot really figure it out, as I have dont think I should have any reference to 4.0.2.0. VS tells me the following: What I dont get is how the "Version" of the System.ValueTuple says 4.0.2.0, when I have installed version 4.4.0 according to the path of the DLL and according to NuGet Manager. So, why is it like this? You have installed the version 4.4.0 of the NuGet package that doesn't necessarily contain an assembly with version 4.4.0.0. ...

Compile windows via c++ code error

Image
Compile windows via c++ code error When I compiled windows via c++ code of book(5th), meet this error Error C2373 '__pfnDliNotifyHook2': redefinition; different type modifiers 20-DelayLoadApp c:usersdtdownloadswindows-via-c-code-january-29-200820-delayloadappdelayloadapp.cpp and debug option setting: I can't understand why. Something error I set? It's not something you did wrong. The latter versions of the SDK declare the notify hook globals as const. There is a macro you can define to remove the const from the PfnDllHook type alias so you can do... what you're doing. I can't for the life of me recall it, and I'm not at my Windows box right now, but if you hop to the definition of PfnDllHook I bet you'll find out what it is. It's probably close by. – WhozCraig Jul 2 at 3:39 ...

Statically linking Visual Studio dlls to dynamically linked sfml project

Statically linking Visual Studio dlls to dynamically linked sfml project I have an SFML, Visual Studio project that needs to be linked using the /MT option in the runtime library settings because I want to avoid having to install the microsoft redistributable to every computer that runs the program. When I added sfml to the project, it appeared to work fine in its dynamic form. However, when I tried the program on another computer, it told me that I had missing visual studio dlls. I understand that in order to link sfml statically to the project I would have to rebuild it with different runtime libraries. My question is why would it be able to correctly compile with sfml dynamically linked to the project and have the project set to /MT at the same time if it failed to statically link the necessary visual studio dlls to the project? My problem is that dynamically linking sfml and statically linking the runtime libraries results in the program requiring the re...

C++ Visual Studio overloaded function error: no instance of overloaded function matches the specified type

C++ Visual Studio overloaded function error: no instance of overloaded function matches the specified type CLARIFICATION: This project is being done in Visual Studio, with an stdafx.h file used. FText is an alias for string, as established in the file stdafx.h: #include <string> using FText = std::string; using int32 = int; stdafx.h is included in the View.cpp class. ORIGINAL QUESTION: So, I am trying to create several print methods which print a string based on one or two parameters: a number parameter that indicates which message to print, and an input to be used in the message. As of now, I have three instances of the method "print", as shown below: ///A method that prints a message //give it a number to tell it what message to print. void Display::print(int message) { switch (message) { case 0: std::cout << "Welcome to Cows and Bulls, a simple word-guessing game. n"; break; case 1: //(I omit...

npm references in Visual Studio 2017: how to deal with “exclamation - not-istalled”

Image
npm references in Visual Studio 2017: how to deal with “exclamation - not-istalled” Situation: I have tried: 1. "VS/Solution Explorer/npm/context-right-click-menu/Restore Packages.." 2. npm install 3. npm install kind-of (concreate not installed package) nothing helps. Actually I'm not suffer from it, but feel I need to know what is going on. 1 Answer 1 npm init fix this and other asterix problems (together or without del npm_modules , npm istall ). npm init del npm_modules npm istall I do not know why we should time to time repeat npm init but this works. npm init By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Remove trailing zeros and replace comma [closed]

Remove trailing zeros and replace comma [closed] This is my string: T13 M98P8000; T14 G0G90X0,000Y-14,000 M3S1818F181 G0G43H13Z-19,750M8 G1Y14,000 But I like this string: T13 M98P8000; T14 G0G90X0.Y-14. M3S1818F181 G0G43H13Z-19.75M8 G1Y14. I need a function thats delete the last charakter if equal "0", but it is ímportant that i have the "," or "." sign ater : Examples: before: 20,000 after: 20, before: 20,500 after: 20,5 before: 20,520 after: 20,52 To trade , in . I use: , . File.WriteAllText(path, File.ReadAllText(path).Replace(",", ".")); That's possible. :-) Then i try to use this: File.WriteAllText(path, File.ReadAllText(path).TrimEnd('0')); (Not Check :-( ) Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question...

object reference not set to an instance of an object upon creating a new Android project

Image
object reference not set to an instance of an object upon creating a new Android project I get this when I want to create a new Android project. 1 Answer 1 Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the Visual Studio installer again until all Android SDK errors go away. Android Studio Android SDK Make sure Visual Studio is closed and install the most recent stable version of Xamarin for Visual Studio . I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS didn't work for me under Tools -> Android -> Settings -> Xamarin for Visual Studio Updates.) Make sure you have Java SDK version 7 installed on your machine. You also must use the 32-bit version even if you have a 64-bit machine. This was key! Java SDK Install the Android SDK . Standalone version , not Android Studio + Android SD...

Cannot GET / error

Image
Cannot GET / error looked for couple of hours, on how to solve that, but no luck. I am using VS 2017 preview edition, and trying to open ASP.NET core 2.0 web application, that uses Angular template when i open the site (f5 or ctrl-f5), the web-browser getting opened with the message Cannot GET / I don't know what causing that and how to fix that, tried to clean/rebuild/restart VS/change project port number/restart the computer, what else can I do to solve that? i found out here that Cannot Get / actually point to an error in app.. (weird) i spent couple of hours looking for all different solution. What i did is from the Client app folder i run the command ng serve and it pointed me to the error.. (i forgot to introduced some variable (i run the app from VS, so it does the ng serve automatically, and said nothing about that error) – E.Meir Jul 1 at 11:01 ...