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

Need Help with the assignment ASAP!

The following features need to be added. to program. 1. The if statements to decide when the game is won by a player having 3 squares in a row.(2 pts) 2. Do not allow a state to be chosen more than...

View Article


CWnd::CreateEx fails on Windows 7 x64?

Code: BOOL CBiSplitterWnd::Create(CWnd *pWnd, UINT bswStyles, UINT nID /* = AFX_IDW_PANE_FIRST */) {         ASSERT(pWnd != NULL);         ASSERT(bswStyles & SPLITTER_STYLES);...

View Article


Problem with run agin loop

I'm having problem with the loop that asks the user if she/he want to run the program again. When I input something else then Y or N the program gets in an infinite loop, how can I fix that? Code: int...

View Article

Please help as soon as possible please.

Given the array int x [ ] = {1,2,3,4,5}, write a loop that replaces every other element with the value 2, starting with the first element. Can someone please write this code for me? Thanks,

View Article

Is it possible to theme the whole desktop in one OpenThemeData call?

OpenThemeData only themes one window at a time, this window must have class name like BUTTON, EDIT etc If the desktop itself has a HWND, so can I pass the explorer/desktop HWND to OpenThemeData and...

View Article


Problem with struct and vector

The problem that I have is when I try to merge firstN3 and lastN3 together to a new string. As you can see when I cout firstN3 and lastN3, I get the right output. But when I Code: cout <<...

View Article

Problem with shuffle vector of structures

I'm trying to shuffle the order of the people in my list but I can't get it to work. Code: struct Person {     string firstname;     string lastname;     string sign;     float length; }; int myrandom...

View Article

Double strikethrough

Hi, ALL, Is it possible to have a double strikethrough font? Unfortunately a LOGFONT structure has a boolean StrikeOut variable which can be either true or false - no third value. So what is the...

View Article


Image may be NSFW.
Clik here to view.

Incredible DLL decompiler: DLL to C

Recently I found an incredible DLL decompiler: DLL to C This tool can convert a DLL into compilable code. It can generate data structures for all data sections and disassemble the code section. Part of...

View Article


Is it possible to make this function?

How to write such function so that want every 20 seconds program would write time to the log file. How to make this function? Advise me please.

View Article

[RESOLVED] How to remove or exclude chm help

Hi! Over 13 years ago I was a fulltime Visual C++ programmer. I haven't programmed in 13 years but I have this private project which I'm now working on again a little bit. I've found out that while I...

View Article

Migrating from VS2005 to VS2015 Still Tries to Link MFC 8

Hi... I am trying to migrate a large MFC solution from VS2005 to VS2015. The solution contains 170 projects. After a lot of work, all projects compile and 168 of them link. One that does not link is...

View Article

Save and read vector to textfile

I have this program that let you to different things with a list. I would like a option that lets you save the list to a text file and also read from a text file when it's saved. I have problem...

View Article


Moving Parent Dialog while moving Child Dialog MFC

How to move the parent Dialog while moving the child dialog. Child Dialog is shown infront of parent and covers the parent dialog. I want to move the parent while child is moving so that parent is just...

View Article

How to detect a specific browser window from a custom action?

I am developing a Custom Action by using Windows Programming. I need to check opened web pages (from IE, Chrome or Firefox) and search for a specific window. Searching for window title is not useful...

View Article


Allocating and copying memory in one go...

This code will copy the contents of src to dest Code: void SomeFunc(void *src, size_t size) { void* dest;         if (memcpy (dest = malloc (size), src, size))         {                 // Do something...

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] unresolved external symbol public void...

Currently I'm working on EventManager for my game engine. In class, I made a function called "registerListener". First version of function which has no problem only takes 2 arguments: event type and...

View Article


Problem on programming by using VS2012

Hi programmers, in these, after several years on using Visual Studio 6, I migrate to Visual Studio 2012 and I start with troubles. I suppose that I lost several informations in these years, but I...

View Article

template function without class T

I'm building a program which was originally written for gcc. One of the header files contains some conversion functions which look like this:- Code: template <> inline std::string to_string (bool...

View Article

[RESOLVED] Problem on programming by using VS2012

Hi programmers, in these, after several years on using Visual Studio 6, I migrate to Visual Studio 2012 and I start with troubles. I suppose that I lost several informations in these years, but I...

View Article
Browsing all 3021 articles
Browse latest View live