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

[RESOLVED] For Loop/Indexing

Hello to all, Working on a particular problem and have everything squared away except for one thing. Basically i need to create a for-loop that loops 20 times; And each time it loops, you read a name...

View Article


Help reading txt in a linked list

I need help because my code saves the txt correctly but at the time of reading it, returns the linked list empty. HTML Code: #include "Empleado.h" Empleado::Empleado() {         cedula = "";...

View Article


Output

FOR ALL QUESTIONS IN THIS PRACTICE EXAM REFER TO THE FOLLOWING: //What does this program print? #include <iostream> using namespace std; #define foo1( a ) (a * a) inline int foo2( int a ) {...

View Article

Deck of Cards Game Help

Write a program that will operate on a deck of 52 cards. Your program will: 1. Deal them into four random hands of 5 cards each a. The four hands need to be kept in an array for later use. 2. Sort each...

View Article

Migrating from VS2013 to VS2015

I don't know if they are compatible or not. Hope that all programs that I wrote also compile in VS2015 And also there are some programs that were shifted from VS2010 to VS2013 Has anyone experienced...

View Article


can not call CDC::StrokePath() twice?!

Hello, I have a problem with calling StrokePath() twice. Code-example: ---- BeginPath() .... EndPath() -Create and select Pen- StrokePath() -> everything fine! -select another Pen- StrokePath()...

View Article

MFC with VS Express

I have a dialog based MFC application (factory automation) that needs to be run in debug on the target machine, but the Express version of VS 2010 doesn't support that. Before I ask IT to buy another...

View Article

Image may be NSFW.
Clik here to view.

__asm equivalent for 64 bit?

Hi, I am trying to compile killtt (http://www.codeproject.com/Articles/...-More-Tooltips) for 64 bit Windows (since 32 bit version doesnt kill tooltips in 64 bit applications) with Visual Studio 6 but...

View Article


Image may be NSFW.
Clik here to view.

Error C4308 need help

'Error C4308: negative integral constant converted to unsigned type.' Im new to C++ and programming in general. I'm trying to get my program to work but this error comes up that i don't know how to...

View Article


Parameters are not being accepted for my printArray function

When I try to call printArray with data it will not let me compile or run my program I don't know what else would go in the parameters to allow the program to work. Anything helps thanks. Header: Code:...

View Article

MSDN code is incorrect?

Hi, ALL, The code sample at this link contains an error: Code: void printStatementResult(SQLHSTMT hstmt) {   int bufferSize = 1024, i;   SQLRETURN retCode;   SQLSMALLINT numColumn = 0, bufferLenUsed;...

View Article

Need help with C Code to print out Combinations in a Pick 3 Game

A very good day to you Sir ! I hope your day is going Great ! Below is the C Code to print the Combinations of numbers from an Array for a PICK 3 Game The Code only does Singles ... Can some kind soul...

View Article

Sending Web request

How can we send Web Request (http GET and POST) in VC++, without using the managed .net framework? Can someone demonstrate it with a sample source code?

View Article


If a windows process has stopped running, how can I debug it?

If the program has already been compiled into an exe, and it has stopped running and I don't have the source code, and thirdly, it can be a very complex piece of code, how can I fix this program? I...

View Article

Why does MSVC insist on const_iterator ?

In my header file:- Code: class DummyBackend {         // c'tors and stuff private:         typedef std::set<DummyPort *> PortIndex;         PortIndex _ports; public:         void function1...

View Article


reason for a code written in C and matlab giving different output

The codes (C and matlab) are exactly same (operations wise) and same value of epsilon is used in both the codes. Still they give different output, what could be the reason for it.

View Article

Adding/Searching/Editing Arrays - Serendipity Booksellers Project

Hello everyone. I was wondering if there was anyone that could help me with this code. Under the invtmenu.cpp file, I need to be able to add a book, look up a book, edit a book, and delete a book....

View Article


NAN / INF etc

Using VC8 I'm trying to compile some code that was originally written for gcc. One of the source files has an array of const float which looks like this Code: static const float _demolition[] = {...

View Article

create a c++ program that simulates File Allocation Table

Hi everyone ! Im a Java developer and i started to learn c++ and since i dont know much about FAT file system could anyone help me or tells me from where i should start or where i can find something...

View Article

Strings in VC Form buttons

Experienced Boreland C programmer moving to VC - it's about time! So I dragged over a data structure from a DOS application, included it in the *c++ file and the it compiles. Now I want to use that...

View Article
Browsing all 3021 articles
Browse latest View live