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

Showing the time for a user while entering some characters

Im working on my project for college and i want to know how to add sth similar to a chronometer for user to see how much time have passed while entering some characters using cin.getline...

View Article


My code is going out of bounds

I am really unsure how to keep within the boundries and still perform the function I need. My code functions normal when I have both categories 'buy' and 'sell' in the queue which is my main goal and I...

View Article


How to disable optimization Visual C++ 2010?

I want to disable optimization in Visual C++ 2010. In gcc on Linux I could just use the -O0 switch, but in Visual C++ 2010 there are two categories of optimizations, one in the C/C++ pane and the other...

View Article

Unhandled exception Microsoft C++ exception: std::bad_alloc at memory location.

Unhandled exception Microsoft C++ exception: std::bad_alloc at memory location. Is this a general problem with the debugger. The vs version 2012 or with my code? Thank you Naomi

View Article

How to reinstall VS-2012

Hi, I uninstalled VS ultimate 2012 yesterday using force installation. Now i am trying to install it again but its saying that trial period has ended. Its asking me to enter the product key.I have...

View Article


[RESOLVED] How to reinstall VS-2012

Hi, I uninstalled VS ultimate 2012 yesterday using force installation. Now i am trying to install it again but its saying that trial period has ended. Its asking me to enter the product key.I have...

View Article

Copying one bmp file to another using fstream, Access violation reading...

I would like to copy one bmp file to another using plain fstream (none 3-rd party library). I've managed to come up with something but I keep getting error: Quote: Unhandled exception at 0x504A3442...

View Article

[RESOLVED] unfamiliar function declaration

I am experimenting with the c++11 regex and came across an item missing from my limited c++ knowledge. From this article: http://msdn.microsoft.com/en-us/magazine/dn519920.aspx I am unfamiliar with...

View Article


Clannad Visual Novel bugs help!

Hey there! :) I have just recently started playing the Clannad Visual Novel (Full Voice version) and I have started to notice some bugs within the game. I have looked all over the place for fixes on...

View Article


Is there any way to change the background color of a messagebox?

Here is what I did, Code: oldHook = ::SetWindowsHookEx(WH_CALLWNDPROCRET, CallWndRetProc, NULL, ::GetCurrentThreadId()); MessageBox(...); UnhookWindowsHookEx(oldHook); Then within the callback function...

View Article

C++ tictactoe against computer

Hello. I# m trying to write a tictactoe game against the computer. I have an issue with my for computer move. If I place a marker on the field. It doesent react. After I set the second one it starts to...

View Article

Reading an NFC DEVICE

Is it possible to read NFC card reader in VC++/MFC. Is it possible to develop a callback function that will read the NFC device, and see once the card is inserted, it takes that value from the card and...

View Article

No problemo, just a hello

Hi... Just want to say hi to everyone here. I coded with BP7-for-Windows before, well perhaps 10-15 years ago so I guess everything related to Windows programming is lost:o Recently, I feel a growing...

View Article


print error

why i only printed the last input i entered Code: void kk::display { for(counter =0; counter < id; counter++); { cout<<"\nData is: " <<temp<<endl; } }

View Article

MFC Proper usage of sending message to dialog to activate

I have finally got around to developing C++ & MFC using Visual Studio 2012, to build a full GUI Windows application (not sure if I have made the right choice). Though admittedly in two months time...

View Article


cannot compile wizard generated project

I'm using visual studio 2010 i run visual studio and choose File->New->Project->Visual C++->MFC->MFC Application and Follow the wizard, select a dialog based app, then use all default...

View Article

WSAStartup best practices?

I'm writing a network-related module for a larger project. It's cross-platform, and the Windows implementation uses Winsock2. I'm having some trouble figuring out the best way to handle the need to...

View Article


Windows Program UI

I am trying to develop software for windows 7-8.1 and I want to code in C++. I have Visual Studio 2013. I know C++ on a (Console application) Intermediate level, and I feel stuck. I have a few...

View Article

Old school SetWinMetaFileBits() fails after ~4K iterations. What am I missing...

I'm suspect it might have something to do with the handle, but I can't find any good documentation on this. Basically I have an old, legacy VC++ 6.0 app that does some work with the old metafile...

View Article

ActiveX for video server

Hello, I would like to know in which way is the best to make ActiveX control for video. ActiveX control will need at least show picture and be able to go back in past, change resulation of picture and...

View Article
Browsing all 3027 articles
Browse latest View live


Latest Images