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

[! output SDKPATH_LIB64] in Additional Library Directory option

I found a path [! output SDKPATH_LIB64] specified in this option (Additional Library Directories). And some source code related to this Code:...

View Article


Slider not working properly in a dialog MFC.?

Hi, I have a slider control on a dialog box. I am playing a video file and slider moves according to the video elapsed. Suppose I have set the slider range to 100. Now till some point say 90, the...

View Article


AfxBeginThread

Something I am not being able to understand. I am using VC2005. In MFC I am creating threads repeatedly. The thread is basically doing nothing. Its an empty block. So, there should not be any memory...

View Article

ftp file size

My question is...can this be fixed to work right?????????????????? Code: int index;         CString strText;         index = m_dir.GetCurSel();         m_dir.GetText(index,strText);...

View Article

struct usage and setup

Hi, I have included a small program that revolves around struct's. This program works to a certain extent. I have three questions about the struct form and how it is used: 1.) Is there a way to enter...

View Article


Need help with a grid over a bitmap in a scrollview

Hello... I have a CScrollView that displays a bitmap and I'm trying to draw a grid that I can turn off and on by check box and when the mouse is over a section of the grid that square highlights... I...

View Article

adding to visual c++ 2008 express

hi every one iam trying to write network program with vc++ (windows form application) but the problem is :mad::mad::mad: when iam try to include <winsock2.h> the complier give this massge:...

View Article

Array sort code help!!

I need help with writing a function called swap that sorts the elements of an array in order from highest to lowest values where they descend and ascend. A particular thing about this function is that...

View Article


Problem getting thumbnails

Hi everyone, I'm very new to C++ so please go easy on me. I'm using a very simple DLL to get a thumbnail for a file and add it to an imagelist. The problem is, whenever I pass a pidl that points to a...

View Article


[RESOLVED] Need help with a grid over a bitmap in a scrollview

Hello... I have a CScrollView that displays a bitmap and I'm trying to draw a grid that I can turn off and on by check box and when the mouse is over a section of the grid that square highlights... I...

View Article

Processing Enter and Esc in CEdit

I am using a CEdit control as a child in a CListCtrl for purpose of making each column editable. The application is a dialog based app. My problem is... I have overwritten OnOK and OnCancel in the main...

View Article

win32 drawing shape and StrokeAndFillPath(hDC) please help

I am trying to draw a shape or font on dialog and then fill the outline. I have 2 buttons on this 2 buttons I have the following code Code:                                 case IDC_BUTTON1:...

View Article

Writing to HKLM registry in Windows 7

When I write to the Windows 7 Registry at HKEY_LOCAL_MACHINE, I get a return code of 5 which is the "access denied" message when I execute RegCreateKeyEx. This happens even if the User has...

View Article


std::set and struct - can they work together?

This works... Code: std::set<int> IntSet; int hello = 6; IntSet.insert (hello); but this doesn't work... Code: typedef struct {           void *p;           unsigned int n;         } my_struct;...

View Article

Have Mercy 1st Post Visual C#

I moderate a few forums..so I know how aggravating noobs are. Anyway.. Trying to form a basic Calorie Counter App.. (Visual Studio 2010) My issue is that it appears my methods are not being called...

View Article


Positioning of window on Desktop

Hi All I have a CFormView derived window which I would like to position at run time. In particular when the user clicks a button I would like to shfit the CFormView window and open up a new Dialog...

View Article

update Dlg CStatic

mfc dialog based: Code: //CImageView.cpp: void CImageView::OnMouseMove(UINT nFlags, CPoint point) {     CPoint ptImg = GetScrollPosition() + point;     sprintf(buffer,"%d %d %d", ptImg.x, ptImg.y,...

View Article


Wildcards! Which one?

Im working on a simple file list program that list folders and files using CFileFind. Heres how the program goes! 1. User types a directory in a edit box 2. Presses button and files and folders get...

View Article

Printing a document

I have to develop an application that will print the document and based on the result whether the printing was a success or a failure should display the status. Some of the important futures are 1) It...

View Article

How to know when mouse over a control in a dialog

Hello all... I forget how to know when mouse is over controls in dialog... I want to show a message in status bar when mouse over each control... Thx so much...

View Article
Browsing all 3021 articles
Browse latest View live