Issue I am working on a C project and can not figure out how to pass command line arguments to my main function in Visual Studio 2010 Express Edition. I want to debug – how do these command line arguments
Continue readingTag: c
[SOLVED] Use Resharper with the C language in Visual Studio?
Issue I recently started studying at university which granted me a student license for all JetBrains products. I thought it would be an excellent chance to try Resharper for C# and C++. I am now taking a course in C.
Continue reading[SOLVED] Is there any option to switch between C99 and C11 C standards in Visual Studio?
Issue I am new to Visual Studio Environment and I am using VS2017 Pro. I wanted to write simple program in C and compiled with both c99 and c11 standards. In Visual Studio, I could only find compiler switches for
Continue reading[SOLVED] Error linking C code when including SQLite
Issue On Visual Studio Code, Mac OS version 10 I am trying to compile (debug C/C++ file) a C code to connect to SQLite3 database. The compile ends with error : ld: library not found for -lsqlite clang: error: linker
Continue reading[SOLVED] Native C.dll on Windows referenced by .NET 6 App only works when Visual Studio with C++ Desktop Extension is installed
Issue I use an OpenSource library (https://github.com/libusb/hidapi) to send commands to our device firmware via HID over USB…more precisely I´ve compiled the C-Code of the hidapi-Windows-project and call its native methods by DllImport-Attibute in a Wrapper-Class of my .NET 6
Continue reading[SOLVED] how can fix The system cannot find the file specified at visual studio 2022
Issue This is the old picture, not as same as the code below. #include<stdio.h> #include<conio.h> #include <math.h> int main(void) { int num, lower, upper; double squareroot; int square; int cube; // input value do { printf("the lower value limit is
Continue reading[SOLVED] How add all libs src and main c files to same VS2022 project
Issue I am tinkering with this C MXChip IoT project. This may be a supid question but hacking and navigating the code is difficult because there is no single project with all libraries and src files. Is there a way
Continue reading[SOLVED] Is there any difference between the vsnprintf function under xcode and the vsnprintf of other platforms?
Issue I wrote a very simple test code to test vsnprintf, but in xcode and visual studio environment, the results are very different. The test code is as follows: #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string.h> #include <cstdarg> void p(const char*
Continue reading[SOLVED] Inconsistency of the C6386 warning in Visual Studio 2022
Issue I was writing some cstring-based code while I ran into this Visual Studio warning that I cannot seem to get rid of properly (i.e. without using a #pragma). This answer basically solved this warning for me in the past.
Continue reading[SOLVED] Dereferencing pointers stored in registers (visual studio)
Issue I’m debugging an app and need to see the memory region pointed to by a value stored in rcx. Normally, for code, this would be done by selecting the variable (pointer) and adding a quick watch along with the
Continue reading