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

Finding size of a database field

I am writing in C++ using Visual Studio 2015. The program question takes data from a user and stores parts of his input as text fields in an Access database. I want to know the capacity of the database...

View Article


what programming language using to develop the game?

Hello. Please, sorry my english! I have a question. But in the beginning of my experience in programming. Due to the study of programming takes not much time as we would like. In 2012, I began to learn...

View Article


Problem with WINVER compiler constants

Hi, I try to compile a code (with Visual Studio 2015 and Windows 10) so it can run on Windows XP SP3 or +. I have declared the following constants on top of my source files : Code: #include...

View Article

Nested Loops Help

I have a c++ Project I need help with, please note that we have not gone into arrays or the advanced stuff. Here are the instructions: This project uses nested loops. - the outer loop processes...

View Article

SSDP Discovery not working SOAP uPnp

Hey Gurus, I'm trying to write a routine to discover my Belkin Wemo devices in my house (light switches) using uPNP SSDP. Here is my routine: Code: char *searchIGDevice = "M-SEARCH *...

View Article


Whats wrong with my calculation?

Below is the current prompt for this assignment. I'm able to build the program and run it without any errors. I did however in fact find an error in my calculation for growingRatio[i]. With the sample...

View Article

Declare dynamic length array

Hello, I have the following declaration: Code: char name[name_size + 1] = {'\0'}; sprintf(name, "Auto_%s_Workflow", typeName); So I have a variable 'typeName' and a variable 'name'. The varaibale...

View Article

I have developed a number of 32bit applications in Microsoft Visual Studio...

I have developed a number of 32bit applications in Microsoft Visual Studio 2010 (C++). All the apps work fine until I install 3rd party software or USB memory stick drivers . I then get an error...

View Article


Extreme beginner, struggling project

Hey guys, I'm still very new to c++ so when receiving this project, I was pretty lost, the lab we did seem simple, but when he assign this project, i had no idea how to start. I understand the basic of...

View Article


Compare 2 std::string in c++ virtual studio 2015

Hey, I'm trying to compare a std::string with a string out of an array. Somehow it doesn't work. The User types in a word in the main method and it gets delivered to my search method as keyword. in the...

View Article

Disabling Windows Update programmatically

If you're building something like a multimedia app, is there a way for it to temporarily disable Windows Updates (which can be quite processor hungry). i.e. the app could disable updates if it needed...

View Article

Defined as a length of 1 to avoid compiler warning

Hi all, the subject is a cryptic (for me) comment found in a MS struct declaration that can be found in winbio_ioctl.h: Code: // The WINBIO_DATA structure associates a length, in // bytes, with an...

View Article

[RESOLVED] Defined as a length of 1 to avoid compiler warning

Hi all, the subject is a cryptic (for me) comment found in a MS struct declaration that can be found in winbio_ioctl.h: Code: // The WINBIO_DATA structure associates a length, in // bytes, with an...

View Article


Image may be NSFW.
Clik here to view.

C++ Programming Help

Please im a begginer in C++ programming and i need help with 2 programs. If you can, help me please. Thanks. The next flowchart requests an integer greater than 1 as input and factorises it into a...

View Article

Visual Studio Community Edition

I installed Visual Studio Community 2015 (about 5 or 6 months ago). I haven't used it for about a month but today it keeps giving me this error message at startup:- Quote: We were unable to...

View Article


How to access kernel from user processes?

Code: BOOL CALLBACK EnumWindowsProc( HWND hwnd, LPARAM lParam ) {     if (hwnd == (HWND)lParam)   {           printf("Found Virtual Desktop Window\n");           CHAR explorer_path[MAX_PATH];...

View Article

Top-level window frozen in a short period of time?

Code: #include <Windows.h> #include <tchar.h> #include <iostream> #include <sstream> #include <stdio.h> #include "atlbase.h" using namespace std;  #define...

View Article


Save data in .txt file in visual c++

Hi guys! I'm new in programming and I have create a dialog box to insert data( e.g resistivity, permeability, conductors etc.). How can I save these data in .txt file using visual c++ (when I press the...

View Article

How to force the "primary" shell to die last when logging off windows?

I have created a hacked version of explorer when runs side by side with the main shell in the first Virtual Desktop, where the secondary shell runs in the other. The problem I am encountering is when...

View Article

Problem when save data in .txt file Visual C++

Hi guys! I have a project and I have created a dialog box in which I insert data. I tried to save those data in .txt file but when I open the txt I see only symbols and not the values I inserted. Could...

View Article
Browsing all 3027 articles
Browse latest View live