visual-studio

C4996, fopen deprecated: Why? (NOT: How to suppress) [closed]

坚强是说给别人听的谎言 提交于 2021-02-08 20:44:20
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Improve this question What is unsafe with fopen that's more safe with fopen_s ? How can fopen be used in a safe way (if possible)? (I don't want to know how to suppress the warning - there are enough stackoverflow articles that answer that question) Edit: Question was closed

C4996, fopen deprecated: Why? (NOT: How to suppress) [closed]

狂风中的少年 提交于 2021-02-08 20:41:59
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . Improve this question What is unsafe with fopen that's more safe with fopen_s ? How can fopen be used in a safe way (if possible)? (I don't want to know how to suppress the warning - there are enough stackoverflow articles that answer that question) Edit: Question was closed

How do I print Unicode to the output console in C with Visual Studio?

非 Y 不嫁゛ 提交于 2021-02-08 19:45:12
问题 As the question says, do I have to do in order to print Unicode characters to the output console? And what settings do I have to use? Right now I have this code: wchar_t* text = L"the 来"; wprintf(L"Text is %s.\n", text); return EXIT_SUCCESS; and it prints: Text is the ?. I've tried to change the output console's font to MS Mincho, Lucida Console and a bunch of others but they still don't display the japanese character. So, what do I have to do? 回答1: This is code that works for me (VS2017) -

.editorconfig in shared Git repository

两盒软妹~` 提交于 2021-02-08 18:05:56
问题 I have prepared my .editorconfig file which I want to use on multiple Git repositories. Each repository holds a Visual Studio solution (C#). My first thought was to put the .editorconfig file in its own repository and then include it in all "solution repositories" as submodule. The problem however: The submodule will be in a subfolder. The contained .editorconfig will thus not be applied to the whole project/solution (but only to the subfolder and its children). It seems to me that I cannot

.editorconfig in shared Git repository

时间秒杀一切 提交于 2021-02-08 17:57:15
问题 I have prepared my .editorconfig file which I want to use on multiple Git repositories. Each repository holds a Visual Studio solution (C#). My first thought was to put the .editorconfig file in its own repository and then include it in all "solution repositories" as submodule. The problem however: The submodule will be in a subfolder. The contained .editorconfig will thus not be applied to the whole project/solution (but only to the subfolder and its children). It seems to me that I cannot

Visual Studio 2013 - Source Not Available

99封情书 提交于 2021-02-08 16:34:35
问题 While I am Debugging whenever I click Break All Button it opens a new tab window which says this: Source Not Available -source information is missing from the debug information for this module It works fine Edit and continue while debugging but why does the above happen? I don't want this tab window to be displayed every time I click Break All. Just don't say It's a Microsoft new Bug! Does anyone have an Idea how to fix that because It's annoying. Thanks! 回答1: It means that at the time you

How safe is this swap w/o pushing registers?

这一生的挚爱 提交于 2021-02-08 15:18:30
问题 I'm very new to Assembly and the code below is supposed to swap two integers via two different functions: first using swap_c and then using swap_asm . However, I doubt, whether I need to push (I mean save) each value of registers before assembly code and pop them later (just before returning to main ). In other words, will the CPU get mad at me if I return different register content (not the crucial ones like ebp or esp ; but, just eax , ebx , ecx & edx ) after running swap_asm function? Is

How safe is this swap w/o pushing registers?

走远了吗. 提交于 2021-02-08 15:18:21
问题 I'm very new to Assembly and the code below is supposed to swap two integers via two different functions: first using swap_c and then using swap_asm . However, I doubt, whether I need to push (I mean save) each value of registers before assembly code and pop them later (just before returning to main ). In other words, will the CPU get mad at me if I return different register content (not the crucial ones like ebp or esp ; but, just eax , ebx , ecx & edx ) after running swap_asm function? Is

How safe is this swap w/o pushing registers?

守給你的承諾、 提交于 2021-02-08 15:17:18
问题 I'm very new to Assembly and the code below is supposed to swap two integers via two different functions: first using swap_c and then using swap_asm . However, I doubt, whether I need to push (I mean save) each value of registers before assembly code and pop them later (just before returning to main ). In other words, will the CPU get mad at me if I return different register content (not the crucial ones like ebp or esp ; but, just eax , ebx , ecx & edx ) after running swap_asm function? Is

How does the Visual Studio 32-bit linker find the 64-bit linker?

拜拜、爱过 提交于 2021-02-08 14:59:40
问题 I have a moderately large DLL, and when I link it, I get the error: LINK : the 32-bit linker (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\ link.exe) ran out of heap space; restarting link with the 64-bit linker (C:\Program Files\Git\usr\bin\link.exe) (line breaks added for readability) As you might expect, using the Posix program to create symbolic or hard links with command line options intended for the Microsoft linker doesn't end well. (Specifically, it returns /c/Program