Skip to main content

All Questions

1 vote
1 answer
208 views

How to build Google test in Visual Studio 2013?

Updated question: I am trying to build Google test in VS 2013 Pro. Because it supports C++11, so I downloaded Google test version 1.8.1 in https://github.com/google/googletest/releases/tag/release-1.8....
gnase's user avatar
  • 630
0 votes
0 answers
262 views

Curl Upload Stuck

I'm using curl-7.65.0 (Static) with Microsoft Visual Studio 2013. I have the following method to upload files to the FTP server. bool uploadFile(string sourcePath, string url, string & error) { ...
M.H.'s user avatar
  • 263
0 votes
1 answer
312 views

How to print on physically printer a JPG file in C++

I need some help. I wrote print function on Linux with cups API. Now I must print jpg or other image file on Windows with C++ code. I have to do this silently without any dialogs/GUI. I can't find any ...
duri's user avatar
  • 61
0 votes
1 answer
76 views

Vector of Objects that have vector of unique pointers

I have a vector ex:TestStructVec of objects for ex:TestStruct, where object contains a vector of unique pointers ex: uptrVec. struct TestClass {}; struct TestStruct { std::vector<std::...
jyostna chintala's user avatar
0 votes
0 answers
37 views

missing ';' before 'boost::interprocess::offset_t' and missing type specifier - int assumed (boost 1.74.0, Visual Studio 2013) [duplicate]

I have an issue compiling code for a c++ project using the boost library. Everything works as expected with Visual Studio 2019, however, I also need this to work with Visual Studio 2013 in another ...
Mierpo's user avatar
  • 244
0 votes
1 answer
278 views

c++ lambda can't convert to int

I attempting to use a nested lambda as follows: int main() { auto x=[](int a){ return [a](int b){ return a+b; }; }; int xx = x(1)(2); (void)xx; ...
AdamPengC's user avatar
0 votes
1 answer
130 views

Log Something Once New File Is Created After Backup In Log4CPlus

Greeting I'm using the Log4CPlus library for logging. I want to log the application version and release date once the new log file is created after backup (DailyRollingFileAppender). How can I do ...
M.H.'s user avatar
  • 263
3 votes
1 answer
192 views

Variadic template with explicit arguments and sizeof... Visual Studio 2013

I was trying to enumerate a variadic tuple, so that i can perform certain operations on each of its elements. #include <iostream> #include <tuple> #include <utility> template <...
PVRT's user avatar
  • 520
2 votes
0 answers
352 views

Why I have multiple threads created at launch of my program?

I realized by doing a simple multithreading program that multiple threads were created at the start of my program. I saw that Windows 10 used a parallel loader of dll which created me 4 threads: 3 of ...
Furx_Dev's user avatar
0 votes
0 answers
43 views

Can't define std::function variable from the virtual method pointer in vs2013

In my project I am trying to define std::function variable from the virtual method pointer: #include <functional> class VirtualClass { public: virtual void foo(int x) = 0; }; class ...
David's user avatar
  • 187
0 votes
1 answer
326 views

Deep copy a class having a self reference pointer

I have a class Employee with pointer variables tag and values of type char and a self reference pointer children. We also have another two integer variables "numAttributes" and "numChildren". "...
hema chandra's user avatar
1 vote
0 answers
97 views

Invalid union member in VS2013 but not 2015

I have a class class myTestClass { public: int a; myTestClass(); ~myTestClass(); private: float b; }; Which I am trying to add to a union union myUnion { myTestClass mt; int ...
MikeS159's user avatar
  • 1,954
0 votes
2 answers
1k views

C++ std::bind to std::function, what went wrong in VS2015?

I was a user of VS2013 and I often use initialization as follows and it was working like a charm: MyClass::MyClass myRoutine(){ std::function<double(double)> oFunc = std::bind(&Myclass::...
Canardini's user avatar
  • 171
0 votes
1 answer
694 views

VisualC++ Tensorflow C API Wrapper causes LNK2019

I am currently writing a VisualC++ 12 Tensorflow Wrapper to enable Inference Tasks for the Tensorflow Object Detection API. However, I get some linking errors of the Type LNK2019 ("unresolved external ...
ITiger's user avatar
  • 1,081
0 votes
1 answer
234 views

How to correct store LPTSTR in map

I need to store values from registry in map. I have such code: map<int, LPTSTR> mymap; for (i = 0, retCode = ERROR_SUCCESS; i<cValues; i++) { cchValue = MAX_VALUE_NAME; ...
Pahan's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
22