Passing an indefinitely long succession of formatted read/write parameters
Thank you for your much help in the past. https://en.wikipedia.org/wiki/Borland_C%2B%2B I wrote a program in Borland C++ (which was last heard of about 1997), and it included this text /*-----*/ void...
View ArticleStrange difference between Debug and Release compilation
In the program that I have been converting from Borland C++ (which was written before Unicode appeared) to Visual C++ (about 15 years too late, I regret), a strange situation has developed: It treats...
View Article[RESOLVED] Problem with Resource API !!
In Find resource API. FindResource(..) API the Second parameter i don't understand. I am trying to extract using FindResource and others API. here is the sample code: hRes = FindResource(hExe,...
View Articleproblem with Resource V1.1
In Find resource API. FindResource(..) API the Second parameter i don't understand. I am trying to extract using FindResource and others API. here is the sample code: hRes = FindResource(hExe,...
View Article[RESOLVED] Compiler can't find 'openssl/e_os2.h'
I've been compiling a dialog based program for a number of years using Win 7 (64-bit) Visual Studio 2010 Ultimate. Just this afternoon, for the very first time ever, the compiler complains: Quote:...
View ArticleMemory corruption tool for MSVC
Hi, ALL, I'm trying to create an application with MSVC 2010 Pro. Unfortunately the application crashes. I tried to recreate the problem by creating simple console application or simple MFC-based...
View ArticleFunction Template and vector
Hi, I'm trying to figure out how to use a generic function template to simply return a vector array of ints or doubles or whatever else I want. Here is the code: template <typename...
View ArticleEstablishing non-definable functions and for statement in functions
Hi. I know the title sounds weird, but I need to know if there is a method of declaring a function if it's simply being used to display a string of text. There's only a cout statement, no variables are...
View ArticleAnyone confidant in SDL2?
Hello im learning to use SDL2 to program a pacman like game. Im having trouble I have a autism spectrum disorder and instructors who are not at all descriptive or illuminating. Ive taught myself quite...
View ArticleSaving files with identical file names problem
Some of the more sophisticated application like MS Word, Google Chrome, will save files to a folder directory with the same file names. They accomplish this by appending an parenthesized number to the...
View ArticleProblem with loop for with 0.1 increment
I'm running this simple codes using Visual Studio 2010. The output only list out the value of x=0 until x=1.9. I supposed it should be until x=2.0. Tried to change to x+=0.4 and it works fine. Any help...
View Articlevoid (as in "no arguments")
Although it's considered old fashioned now, I do still see this occasionally (where void indicates that a declared function takes no arguments):- Code: int some_func(void); This morning however, I came...
View ArticleWhen is a constexpr function not constexpr?
Consider Code: constexpr int fc(int i) { return i * 3; } .... fc(4); int c = 8; fc(c); fc(4) should be evaluated at compile time because the argument to fc is known at...
View Articleboost::shared_ptr (returning the equivalent of NULL)
I'm adapting a program to be built with MSVC. At one point it contains a function which returns a boost::shared_ptr to an object of type Processor Code: return boost::shared_ptr<Processor> (new...
View ArticleProblem with using CDialog from CPropertyPage
Hi, I have CPropertySheet which contain multiple CPropertyPage as tabs. In one of the CPropertyPage i have a button and clicking on the button launches a CDialog. i am trying to get the control to...
View ArticleATL and MFC mixture and linker errors
Hello I hope someone here can help me. I have to update an old test tool with CPPUnit which includes some classes that are rewritten. The new classes use the ATL Libary so CStrings are in real...
View ArticleVS 2015 display issue
I was updating some turn of the century code when I ran into this anomaly using Visual Studio 2015 Community c++. It appears to be a display issue because I have an app that produces source...
View Articlesocket send doesn't return
In a socket based program I found that send is blocking the thread. It doesn't return even after a long time. It doesn't happen always. I have read that if TCP/IP buffer is full this may happen i.e.,...
View Articlerecording vidio stream from vlc
hi everyone, i want to do a c++ program that receive a stream from vlc and save it in a disk(D:\\vidéo.mp4)i supose i have to use udp sockets to get this stream but i have no idéa how to do so ,i...
View ArticleRun-Time Check Failure #2 - Stack around the variable 'ucValue' was corrupted.
After reading from the file we are facing the issue, at the end of the loop, Run-Time Check Failure #2 - Stack around the variable 'ucValue' was corrupted. the file UserConfig.ini contains, Time1 1000...
View Article