Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3039 articles
Browse latest View live

most simple app for Visual Studio

Windows 10, Visual Studio 2008 and 2012 I want to create a simple app that is nothing more than this: main() { for( int i = 1; i < 10; i++ ) { GetCursorPos( &position ); Change_Position(...

View Article


Taskbar visibility

Hello, I have an application (A) which can host a MFC application (B) inside. A creates the B process, finds the window handle of B, calls SetParent to make B a child window and MoveWindow to adjust...

View Article


Event Planner Program

#include <stdio.h> #include <stdlib.h> #include <windows.h> //This is an Event Planner Program /* Computer Science IA Unit 2 */ typedef char Data;// Character information of event to...

View Article

VS 2015 and standard headers

Hello, I'm first time trying to compile old C sources with VC14 and it seems some standard headers are missing math.h It appeared as present yet as in VC12. What is replacement of this? Thanks

View Article

Forum application/program programming project (outsource) -- recruiting coders

The project consists of a monitoring program for forums. The primary operations consists of reading (downloading posts,pages,replies, ect.), writing (uploading posts,pages,replies, ect.), direct...

View Article


scep PKIOperation decode and response encode

Hi There, I am looking for preferably a C/C++ implementation example what can do SCEP PKIOpration decoding (with ssl library or calling openssl externally) and what then can create the answer to put to...

View Article

Prevent screen saver from activating

Windows 10, visual Studio, c++ There are some times when I want to prevent the screen saver for activating when there has been no input from the user. But not all the time. What is the most simple way...

View Article

how to dynamically set the CRecordset Fieldtype ?

Hi the problem i am having is that when i try to get Code: short nFields = rs.GetODBCFieldCount();                         CDBVariant b= new CDBVariant[nFields];                         for (short...

View Article


program entry point? no int main () or int winmain () ?

So I'm very new to visual c++ but know c++ in general..I was trying to read and understand the source code of a program I found online...so starting from the main.cpp...but I'm not clear where I should...

View Article


Doing Unit Testing

I am making some ids for the tiles of a grid in a game. And I want to make a unit test module for regression testing. But the data sometimes differ, I want to say test, when I give the unit test an id...

View Article

C Programming for a Stack Also How to use Code Tags

/* The following program must be completed to perform the following 1. Implement a Stack ADT using and integer array 2. Write a main function to help test the stack */ #include <stdio.h> #define...

View Article

Preprocessor string (with space characters)

I've just noticed this problem with MSVC8 (I'm not sure if it also affects later versions...) Suppose I open my project settings and navigate to Configuration Properties->C/C++->Preprocessor. I...

View Article

Linker Error While migrating from VS 6 to VS 13

Hi , I am migrating my old visual studio 6.0 MFC AppWizard Project (XP Based) to Visual Studio 2013. I have made the needed changes , compiles without errors or warning. While Linking it gives...

View Article


Two Flowcharts

Hi Guys, I have problem width draw two flowcharts. Please help me draw this flowcharts.Thanks!!!! First: Code: for (i = j = n - 1; i >= 0; --i)         {                 if (arr[i] != 0)...

View Article

How to draw a sphere with directx 9

Hi I have drawn a cube using visual studio c++ and directx 9. Now I would like to draw a spere. Could you please send any example or tutorial how to draw other complex 3D objects? Regards

View Article


std::map::at() versus std::map::find()

Using VC8 I'm trying to compile a program originally written for the gcc compiler. At one point it uses std::map::at(). MSVC does support std::map::at() but it wasn't introduced until VC10. So the...

View Article

pdb-eam me up scotty?

I want to look at some crash dumps but can't due to mismatched dates between executibles and pdb files. Apparently there was some data lost at some point and the restore software must have striped a...

View Article


How to close the main application by clicking on the console?

I spawned a console from the main application as a log window. But when I clicked on the x of the main app, the application just won't stop execution. When I clicked on the x of the console, it does...

View Article

List iterator is not incrementable

On the line Code: for (std::list<MSG_Object*>::iterator i = m_delayedMessages.begin(); i != m_delayedMessages.end(); ++i) { The i variable has become 0xcdcdcdcdcd, It doesn't happen immediately,...

View Article

Hotkeys in C++ app suddenly stop working

Hi. We have a problem with our software that we’re struggling to fix. The app is a MFC C++ media player for Windows, the FTW Transcriber: http://www.theftwtranscriber.com/ Program users can use hotkeys...

View Article
Browsing all 3039 articles
Browse latest View live