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

Resizing Controls and Text content

Hello all, I have a SDI application that uses a CFormView class to create a window and this window has 2 buttons and 2 edit boxes. I can resize this window, like minimize and maximize, but the controls...

View Article


[RESOLVED] BitBlt issues with memory DC created from printer DC

i have an issue with a fix i made to allow a flood filled object be printed... so, the full story is we were using the windows GDI FloodFill function, which we noticed doesnt work on printers, so what...

View Article


Help with connecting to ms sql server 2008

Hi everybody, IÂ’m a little bit new at Visual c++, and for my work I need to make a little program(in c++ 2008) that connects to a MS SQL 2008R2 database. So I wander if someone can tell me how I need...

View Article

CString class in non-MFC static library

Hi All, I have a non-MFC static library which I share between a number of different projects, some non-MFC and some MFC. Currently the static library uses a typedef of std::wstring and std::string for...

View Article

CFileDialog doesn't display the file name correctly

I haven't seen this before but on Windows 7 Home Professional and VC 2012 in one particular app, a CFileDialog displays only the rightmost 11 characters plus the extension of the default file name. The...

View Article


Image may be NSFW.
Clik here to view.

Need help resizing panes

I need help from someone who understands the nature of CDockablePane derived windows better than I. I have an SDI with 2 CDockablePane derived windows. I wish to have them resize with their original...

View Article

Error while using cin.get

Hi, Line 76: cin.get(g.handicap+count); Pre compile error dot in between cin and get. no instance of overload function ... Code: // golf.h -- for pe-9.cpp const int Len = 40; struct golf {         char...

View Article

Frozen grid in CView of SDI splitter

I have been working with both Chris Mander's MFC grid and the Ultimate Grid. See for details: The Ultimate Grid Beginner's Guide By The Ultimate Toolbox, 25 Aug 2007...

View Article


help to write c prog

hey ppl, I'm totally new to programming plz help. I'm expected to write a c program for this question for homework. Using these header files #include <stdio.h> #include <conio.h> Ques Write...

View Article


Using Rebar

The following code I used to create a toolbar in rebar.wndOwner is a dialog box. The following is the status 1)Tool bar works in the dialog box, but withhout tool tips which I added in the resource...

View Article

Access violation reading void* assigned dynamically allocated value inside...

Hi guys, I'm hoping someone can explain the behavior of this code for me. I don't understand why the void pointer passed to testb doesn't continue pointing to the allocated integer after the function...

View Article

Should precompiled header files also be included in source header files?

When including a header file in stdafx.h, should that file still be included in the source file where it is actually used? I've done lots of searching but I can't convince myself either way... If it is...

View Article

Creating DLL with Web Browser Embedded

Hello all, I want to develop a DLL that has a web browser embedded in it. In the past i have created MFC dialog app using CDHtmlDialog. With that experience what i want to achieve is create a DLL that...

View Article


Exported DLL symbol validity

I'm building a cross-platform library which links to some other 3rd party libraries at run time (i.e. on Windows, the other libs will be available as DLLs whereas on Linux / OS-X etc they'd be shared...

View Article

Please, need help with C++ codes..!

Write a C++ program that takes as inputs: an employee name, the hourly rate, and the number of hours s/he worked in the last week. The program then outputs all entered information in addition to the...

View Article


length of a string

Does anyone know a way to get the length of a string? I have tried: str.length str.size strlen() Bob Code: // Exercise in string manipulation #include <iostream> #include <string> void...

View Article

Best complete C++ tutorial series on YouTube?

I'm looking into writing games, and I thought I'd start learning C++, now don't assume I'm wanting to write games next week as you'd be wrong, I talking in one, two or three years when I'm fluent in...

View Article


How to use BTNS_AUTOSIZE

I want to control my toolbar dynamically. First I added tool bar with style including TBSTYLE_EX_MIXEDBUTTONS | TBSTYLE_LIST. Then added the tool bar to a rebar. I added tool tips by handling...

View Article

_access function error

Just wonder is it possible that if the file exist, this function below will fail by returning non-zero value? _access( INIFilename, 00 ) 00 - check for Existence only I noticed that sometimes if even...

View Article

parsing a line for words...

Hi, I'm getting this when I compile my program. Then, when the program runs I get an error. I assume it is because I have the warning for this problem. How can get around this error. warning C4172:...

View Article
Browsing all 3042 articles
Browse latest View live