
Stack Overflow » Visual Studio
150 FOLLOWERS
Stack Overflow is the largest online community for programmers to learn, share their knowledge, and advance their careers.
Stack Overflow » Visual Studio
7h ago
I need Windows SDK 10.0.17763.0 which doesn't show up on the VS2022 setup page.
Then I find the installation from https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
After installing it appears in the Control Panel.
But it doesn't show up in the VS2022 settings, why?
Edit: On the Windows SDK installer, there is only C++ x86 option while I'm working on a x64 program, is that the reason?
Sorry for this Your post is mostly images. Add additional details to explain the problem and expected results. I need to add some rubbish with it ..read more
Stack Overflow » Visual Studio
7h ago
I have a problem, I can't seem to find the solution to automatically save the window layout in Visual Studio. I wanted to always make the document be split vertically in all instances. Meaning, if I open Document2, it should already be split vertically. I also wanted to save the window size and layout from Document1 so I can apply it in Document2. The Save Window Layout feature doesn't seem to solve this problem, it only saves "what" the windows are, not how they are placed.
This is how it looks like if I split window vertically:
This is how it looks like if I create a new file/document ..read more
Stack Overflow » Visual Studio
7h ago
I want to build an application where the elements in the Augmented Reality interface is controlled by an ontology, to give a personalized outcome to the user. (Ex: color, shape, etc.) I have an ontology developed in protege. I want to integrate this to Unity. Unity should query the ontology using any language. Can you please give me an explained step by step methodology to complete this task ..read more
Stack Overflow » Visual Studio
7h ago
I am following Microsoft's instructions to create OBJ files and then link them into an EXE.
https://learn.microsoft.com/en-us/cpp/build/reference/c-compile-without-linking?view=msvc-170
I compile The OBJ files like this:
CL /EHsc /c /std:c++20 SharedDependency.cpp Dependence1.cpp Dependence2.cpp Main.cpp
And I link them like this:
LINK SharedDependency.obj Dependence1.obj Dependence2.obj Main.obj /OUT:Main.exe
And the result is this: (Note: This error message is summarized)
Dependence1.obj : error LNK2005: it has already been defined --> SharedDependency::SomeFuction()
Dependence2.o ..read more
Stack Overflow » Visual Studio
7h ago
I'm having an issue with remote debugging a C# application on a Linux server from Visual Studio. Despite being able to attach to the process, my breakpoints are not being hit, or more specifically - the app seems to stop at breakpoints (it doesn't continue execution), but I don't see the yellow highlight in the code and can't step through the code with F10/F11.
Environment:
Visual Studio on Windows (recently upgraded)
Remote Linux server
C# Console application (.NET 6)
Multiple referenced DLL libraries
New laptop (problems started when I began using it)
Application structure:
My solution co ..read more
Stack Overflow » Visual Studio
7h ago
I've written a pair of .xaml/.targets file to handle the compilation of pixel shaders in WPF.
This is my xaml file:
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<ItemType Name="EffectShader"
DisplayName="Wpf ShaderEffect Shader Compiler"
/>
<ContentType Name="EffectShaderContent"
Ite ..read more
Stack Overflow » Visual Studio
7h ago
I'm just trying to run my windows forms code is visual studio 2022 but it keeps on saying:
Could not copy "obj\Debug\Windows form thing.exe" to "bin\Debug\Windows form thing.exe". Beginning retry 9 in 1000ms. The process cannot access the file 'bin\Debug\Windows form thing.exe' because it is being used by another process. The file is locked by: "Windows form thing (1900), Windows form thing (7644), Windows form thing (26568)"
Does anyone know a fix to this ..read more
Stack Overflow » Visual Studio
7h ago
I tried to include in my project .h file, but i dont know how to use it right. I use VS22 and it doesnt give me quick fixes.
Inventory.cpp
#include <iostream>
#include <string>
#include "Inventory.h"
using namespace std;
const unsigned int inventoryCapacity = 10;
int itemsCount;
string inventoryObjects[inventoryCapacity];
namespace BP {
bool isInvFull()
{
if (itemsCount == 10)
{
return true;
}
else {
return false;
}
}
void main() {
try {
throw exception("Exception ..read more
Stack Overflow » Visual Studio
7h ago
I use MSVS 2022 17.13.0.
I'm trying to use a command file @liblist.txt with the MSVS linker, but I keep getting this error:
1>LINK : fatal error LNK1104: cannot open file '@liblist.txt'
https://learn.microsoft.com/en-us/cpp/build/reference/linking?view=msvc-170#example
I add it in
[Project > Properties > Linker > Command line > Additional Options]
I've checked the path, tried absolute path, folder etc. but no good.
How can I fix this?
Thank you ..read more
Stack Overflow » Visual Studio
7h ago
So, basically I want the enemy to be moving dynamical between the targetpoints, right now the enemy is like teleporting between them. I already tried multiple other methods because I thought that this is the problem, well its not. I put the logic for this in a base class and the method is getting called correctly so I will leave that part out of here.Somebody can help? Thanks :>
public class EnemyBase : MonoBehaviour
{
[Header("Base values")]
private int _health = 0;
private int _damage = 0;
private float _speed = 0;
private EnemyState _currentState;
[Header("Movement ..read more