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

Finding Machine IDs

Is there a way I can extract Machine / Hardware ID and OS Version using VC++?

View Article


quick answer pls

My program works, but when I run the program again it and type new input. The screen also prints the input from the previous iteration. Code:   #include <iostream> #include <string> using...

View Article


How to delete records in .txt file

So i get the concept of how to do this but i'm just not doing it right. I have to ask the user if they want to delete any records. The user can enter -1 to finish deleting records. I have to write the...

View Article

Trouble getting C++ program to print list using Iterator and Operator...

Hello All, First time here. I was hoping you could help me with my program. I'm trying to use the given Iterators to overload my = operator to print my list to screen. I keep getting Link2019 errer...

View Article

decrypt exe file maked in Visual C++

Hi! i have an executable that is encrypted; it is made in Visual C++. Can someone to help me to decrypt it? what i must to look for? I have some kind of files (.req extention) that have the content...

View Article


Image may be NSFW.
Clik here to view.

LCT File To BMP Image

Hi, I have an *.lct file. I like to read *.lct file and save an bmp image. I can not read this file using usual file read. Code: void CLCTtoBMPDlg::OnBnClickedReadlctfile() {         CFileException...

View Article

Help with a really simple program

This is what i need(I made a short video): http://screencast.com/t/UsPjDW4Y Code: #pragma once namespace FirewareEvolution {         using namespace System;         using namespace...

View Article

Image may be NSFW.
Clik here to view.

Help C programming Homework

please help my homework i just little understand about my homework Create a C program that read two sentence 1.For the second sentence, calculate how many a.Alphabet b.digits c.hexadigit 2.Reverse the...

View Article


static class member in multithreaded environment

HI Guys, I have a class having static member.I have get and set methods which will Get and Set Values to this variable. In a multithreaded application does it have any thread safety issues. Class a {...

View Article


help with classes pls

Can someone send me a tutorial where I can learn about classes, objects and constructors? The professor will talk about about these topics this upcoming week but I just want to learn this now :) In...

View Article

Getting Free Disk Space of certain directory

Code: _int64 free_space_64bit; PULARGE_INTEGER lpFreeBytesAvailable, lpTotalNumberOfBytes,lpTotalNumberOfFreeBytes; //char currentPath[MAX_PATH]; //GetCurrentDirectoryA(MAX_PATH, currentPath);...

View Article

How to tell if Windows partition is active?

My goal is to know if Windows is installed on an active disk partition. Any ideas?

View Article

Dbstatus_e_cantcreate

Please go through the following code. I am using OLEDB Cunsumer Templates. I am getting DBSTATUS_E_CANTCREATE for the status of picture field. Looks like OLEDB Provider is incapable of giving 2...

View Article


Image may be NSFW.
Clik here to view.

C++ circular buffer

I'm having some issues with my code. For the produce function i am getting an error saying 'no instance of overload function produce() matches the argument list' and also for the lines...

View Article

Class of String Collections

Is it legal in VC++ to create a class composed only of string colections. If it is how can I create it in VC++ and add it to my project? It has great value if it can be done

View Article


Change text and bkg color of CComboBox

I have a derived CComboBox class, where I tried to change text and background of edit from CComboBox, just like this: Code: HBRUSH CMyComboBox::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) {...

View Article

WinInet, accesing HTTPS server with optional certificate

I'm trying to use WinInet (via the MFC wrappers) to read pages off a HTTPS server that is set to accept but not require certificates. It either authorizes via a certificate or uses basic user/password...

View Article


Help: Release build hangs during linking

It compiles fine but hangs during linking. The last message I got is Code generation. Sometime when I cancel it, I got LNK1257 code generation failed Can anyone advise on what can be possible reasons...

View Article

How long is your build?

Developers are spending more and more time of their days compiling. How long is your build?

View Article

Code works only on computer, when it was compiled

Hello. For some reason this code dont work on other computers, but work on computer, where it was compiled. Any idea why? Code: #include <windows.h>       int WINAPI DllThread() {         for...

View Article
Browsing all 3021 articles
Browse latest View live