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

I"m a NOOB...Why isn't my code working!?

2 days ago I got the book C++ How to Program /8e by Paul & Harvey Deitel. In the course of working my way through the book I got stuck on chapter 3 Section 7: Separating Interface from...

View Article


[RESOLVED] I"m a NOOB...Why isn't my code working!?

2 days ago I got the book C++ How to Program /8e by Paul & Harvey Deitel. In the course of working my way through the book I got stuck on chapter 3 Section 7: Separating Interface from...

View Article


real time plotting of latitude and longitude

hello, can anybody help me with any application or open source software (vc++ or vb.net or c#.net) that can display a high resolution map and i can input real time latitude and longitude of points...

View Article

Mfc..how to change font of string with menu button

I need some help.i want create menu button to change font of CString displyed in main window. We can see string "SAMPLE",and when i press menu button that i created i want to string "SAMPLE" to display...

View Article

Code reuse by handling CEdit ON_WM_SETFOCUS handler

In my application I need to to bring up a keyboard dialog when a user clicks any of the edit boxes in the application. Therefore I have OnSetFocus() implemented in all over the application (dialogs)...

View Article


[RESOLVED] Conditional breakpoints in VC6

I'm having to debug a program that was originally written using VC6 (fortunately I still have VC6 installed on an old machine). Setting break points is quite similar to VC2005 etc but I can't seem to...

View Article

Connect between Visual C++ 2008 and SQL Server 2005

hi, I use Visual Studio 2008. I wonder how to connect the Visual C++ to my SQL server (.mdf extension). in seems easy to connect visual basic and visual C# from data source to their project. but in...

View Article

question about polymorphism in c++

Hello, im starting out in c++ and i want to know why this code prints out base Code: struct base {     virtual void foo(void){         cout<<"base"<<endl;     }  }  struct derived :...

View Article


Don't know why program keeps crashing

I am reading in values from a file, and am not sure what's wrong with my code? My main issue is within the area in bold, can anyone tell me what's wrong? Thanks. Code: void createList(intNode*&...

View Article


[RESOLVED] Can't load 64-bit key using RegLoadKey in 32-bit service

I need to open up and modify a user's registry key from a 32-bit service (note that the user is not logged in at the time.) I do the following: Code: //For simplicity error checks are not shown //I...

View Article

Gifdecoder,BitmapSource and System.Windows.Controls::Image in mfc

hi. first of all sorry for my bad english. i need make a CBitmap or a streamdata from a System.Windows.Controls::Image(rendered out put)in a SDI mfc application (supporting \clr). here is my codes:...

View Article

C programming Help

Hello all I just like to ask that what is the scope of c programming, what all topics should be covered and it is kinda bothering me … and has anyone studied from this course...

View Article

How to enumerate font styles for a given font

I recently switched from Visual C++ 6.0 to Visual C++ 2008. With Visual C++ 6.0, I used a callback method to get available font styles for a given font. I don't think that is working correctly anymore....

View Article


GetSaveFileName: memory usage?

Hello, I have a question: before I call GetSaveFileName the memory usage is: 1657MB free, largest free memory block: 1080MB after calling GetSaveFileName: 1641MB free, largest free memory block: 640MB...

View Article

CFileFind and Windows 8

I am writing c++ code in Visual Studio 2008. I just got a computer with Windows 8. Now, the program takes a long time to run 'CFileFind'. It works, but just takes a few minutes rather than seconds. I...

View Article


Need Help with c++ with application development

Basically the question is to develop an application that allows: Create an application which stores information about people, along with a task list. The user should be able to Store people's...

View Article

[RESOLVED] MDI Child Splitter crashes on closing last view

I previously posted on how to create an MFC MDI Child splitter. Thread: Problem splitting child window in MFC MDI program and a small demo has been attached to that thread....

View Article


Static analysis of C++Builder and WinRT projects

I'm addressing developers with a specific request. Our plans for the PVS-Studio 5.00 static code analyzer are to implement integration with the C++Builder environment and support for the C++/CX...

View Article

How to send a windows message from C# to C++ (MFC)?

Hello mates, I'm trying to send a windowsmessage from an app in C# (Compact Frame) to another one in C++ (MFC), both of them in a PDA. In the receiver app (MFC) I realize that I receive the message but...

View Article

Show memory leaks in dll?

Hello, when ending my app in the debugger, memory leaks will be shown like this: Detected memory leaks! Dumping objects -> C:\PROGRAM FILES\VISUAL STUDIO\MyProjects\leaktest\leaktest.cpp(20) : {18}...

View Article
Browsing all 3026 articles
Browse latest View live