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

Text on screen and print preview

Hi all, after so many years. I must take an old MFC project in VC++ 6.0 and make changes. The problem is text size in screen is different from size in print preview. for example with this font Code:...

View Article


How to sort a combobox after it has been created ?

I have a combobox which doesn't have the CBS_SORT style and after adding some items I'd like to offer the ability for the user to sort it alphabetically by clicking on a given button. How can I sort...

View Article


A specific DebugCRT version

Where / how do I obtain a particular version of the Debug CRT? Specifically, I'm looking for DebugCRT 8.50727.6195. Only one of my development machines has it and the others don't (although I think...

View Article

Sending email using C++

I am experimenting with sending email directly from an .exe created by Visual Studio 2010, using C++. I've taken some code originally posted by Andreas Masur (with minor modifications) as a starting...

View Article

error C2440: '=' : cannot convert from 'const char *' to 'char *

Hi, I want to do following , but it gives error C2440: '=' : cannot convert from 'const char *' to 'char *. ............ string str("VRML"); char *sss[]; sss[0]=str.c_str();...

View Article


Dialogue box button not working

Dialogue box in the program is displayed but button will not respond. I created dialogue box using resource wizard, code in Resource.rc for dialogue box is generated as below Code: IDD_DIALOG1 DIALOGEX...

View Article

Problem with rapidly pasting from the clipboard under Windows 7

Ok, I'm a relatively novice programmer, but I designed an app for work that lets you enter data in a much more efficient way, then it needs to paste this data into the very curmudgeonly interface we...

View Article

Just Started Learning C++

And I can't figure out why this doesn't do anything once I 'BUILD' it. I even added the PAUSE in there and still nothing even poops up. What's wrong with the code or? http://i.imgur.com/lHN3JBV.png...

View Article


Add header files & lib files at runtime?

Hi, I was created a dynamic library (Used win32 App) & compiled with no error. Then i was created my main application (MFC) & paste the .h,.lib,.dll files from the source path(dll App Path) to...

View Article


MSBUILD commands for C++ VS2010

Hi All, I'm working on project migration in which a VS2003 C++ project is migrated to VS2010. The VS2003 project was built using NMAKE whereas the VS2010 project should use MSBUILD. Based on the NMAKE...

View Article

C++ Books For A Beginner

I've decided to learn Maya and C++. I need to learn them both at a professional level for my company that I should be starting this year. I was told the best way to learn C++ is not to use websites but...

View Article

Image may be NSFW.
Clik here to view.

[RESOLVED] Dialogue box button not working

Dialogue box in the program is displayed but button will not respond. I created dialogue box using resource wizard, code in Resource.rc for dialogue box is generated as below Code: IDD_DIALOG1 DIALOGEX...

View Article

Asynchronous reading

Hey everyone. I am new to windows programming, in particular Visual C++, as I am a long time web developer. I am developing a windows forms app in express 2010, and I am struggling to figure out how to...

View Article


Quick question on const char[] to wstring

Hello, I am wondering if I have the following parameter to pass in to a function Code: void Load(std::wstring filename); This statement is wrong. Code: Load("Data\\Mesh.x"); I don't want to pre-declare...

View Article

Unhandled Exceptions different in 64bit? / vs2008

I have a program that works fine in 32bit mode on vs6. but in 2008 64bit it sometimes gets an unhandled exception crash in the following code (PostMessage line):- Is something different in 64bit...

View Article


C++ Pointer Help

I'm trying to figure out the value of pointers after the following code snippet Code: int s[8] ; int *iptr1, *iptr2 ; int **iptr3 ; for (int i = 0 ; i < 8 ; i++) s[i] = 7 - i ; iptr1 = s ; iptr2 =...

View Article

Shell sort won't work in this program (the algorithm itself works just fine)

Code: #include <iostream> using namespace std; class CD { public:         static const int num = 100;         char publisher[num], title[num], location[num];         int year; public:...

View Article


Bitmap Display from Buffer received by TCP socket

I want to display my image on window without saving it. When data is received window size changes but there is no display on window. My Code is: Code: int iBufferLength;         int iEnd;         int...

View Article

Hunting for memory leak problems

D3DX: MEMORY LEAKS DETECTED: 159 allocations unfreed (3312 bytes) D3DX: Set HKLM\Software\Microsoft\Direct3D\D3DXBreakOnAllocId=0x2fd0 to debug Hello, When I raise the level of the debugging, the...

View Article

Window Menu - active documents

Hello, I have a strange problem. Whenever I open the first document in my MDI application, it is listed as #2 on the Window menu list of open documents. The next one appears as #3 and so on. #1 shows...

View Article
Browsing all 3027 articles
Browse latest View live


Latest Images