[RESOLVED] Error while statically linking Libsodium
It appears that I'm linking libsodium correctly, but I'm getting linker errors for _sodium_init, I'm using Visual Studio 2015, and the libsodium.lib (prebuilt) for msvc 140 (for vs2015). The project is...
View ArticleSome techniques in C++
in this piece of code bit masking technique and XOR operation are used, could you please explain me about these techniques and what's the alternative ways instead of these methods? Code: --------- for...
View ArticleImportant question
Hello I have written a code like the following: in this code, I have 2 matrixes called check which is like(with 3 rows and 7 columns): Code: --------- 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1...
View ArticleCreate a new stack in which to put every third element of the first stack
Hello! I need some help. I have to do the following task: Create a stack with numbers in the range from -50 to +50. After creating the stack, perform the following actions: create a new stack, in which...
View Article"Cannot Open Source File" that is definitely there
I'm going up the wall with this one. I'm trying to include a certain library, but VS2017 insists it can't find the header file. It's been a long time since I've used Visual Studio or C++, but I was...
View Article[RESOLVED] "Cannot Open Source File" that is definitely there
I'm going up the wall with this one. I'm trying to include a certain library, but VS2017 insists it can't find the header file. It's been a long time since I've used Visual Studio or C++, but I was...
View ArticleHTCvive VR Controller Information C++
Hi, I need to get three informations for each HTCvive controller: Battery status, Is it connected to the steam vr Is it's charging (like is it ) But, i dont have any idea how to do that using c++....
View ArticleDelete all elements that are less than the average value of queue
Hello! I need some help. I must do the following task: create a one-way queue with numbers in the range from -50 to +50. After creating the queue, perform the following: find the average value of all...
View Article[RESOLVED] VMI Provider convert out parameters
Hi, I need to use some methods of the WMI Provider but, one method has a non stardard out parameter. I am try to convert the out parameters of the function "IWbemServices::ExecMethod", the returned...
View ArticleToken pasting
Suppose I want to call a function based on the value of some variable - e.g. Code: --------- if (some_var == 1) { helper1_func (); } else if (some_var == 2) { helper2_func (); } --------- Obviously...
View ArticleNoob question: Copied functions to header file, now tons of errors
Hello, Im a n00b with c++ and was building my entire program in the main.cpp, including all function defenitions. This gave troubles though, because i couldnt call functions from functions that were...
View Articlereturn value in class method
In this code: Code: --------- const int SIZE = 1024; // numero di byte che possono essere memorizzati in ciascun settore class Disco { unsigned int* _vett; // vettore di settori int _quantiSettori; //...
View ArticleMeson and Visual Studio
Is anyone here using Meson in conjunction with MSVC? I'm just trying to get to grips with it by building a Gnome open source library called Glib. I've figured out that I need to open a VS Command...
View Article[RESOLVED] String concatenation
I'm building a project which uses stuff like this:- Code: --------- #define MXFPRIu08 "u" // whatever... fprintf(f, "%03"MXFPRIu08, i); --------- I'm guessing the above should get converted to...
View ArticleMSB4018 - does the linker have an equivalent of STRICT ?
I'm building a library called AAF. I built it once with VS2005 and didn't have any problems but when I try to build with VS2015, the Release versions gives me these errors at the linker stage:- Code:...
View ArticleMy first program 😀
Hey, I'm a beginner in coding and this is my first C++ program, so I just wanted know if all was okay :wave: Code: --------- #include using namespace std; #include #include void my_sleep(int ms) {...
View Articlefallthrough
I'm building a project which needs to get built with VC2005 for various reasons. One of the files has a switch statement looking like this:- Code: --------- switch (argc) { case 9: if (types[8] == 'f')...
View ArticleHow to use C# dll?
myDLL.dll was generated from IKVM. Use in C# project is perfectly fine. HOW to: 1. call a static method in C++. in C# code, it is `com.myApp.Initialiser.initialise(object, string, int)` 2. create a new...
View Articleerror C4013: 'InitializeSRWLock' undefined; assuming extern returning int
Firstly, I'm seeing this error when I try to compile a 3rd-party library. I see it with other function calls too - such as AcquireSRWLockExclusive() / TryAcquireSRWLockExclusive() /...
View ArticleCan't automate Excel from Windows 10 (MFC program)
I'm using Visual C++ Professional Version 2015 update 3. I have a program that automates Excel and works fine in our Windows 7 computers. However, on Windows 10, Excel doesn't even launch...
View Article