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

CSliderCtrl::SetPos() Problem

Hi community, i have a problem to set sliderposition programmaticaly, it would be great if someone can help? This is my try: //pointer to my slider control: // On the begining the range ist 1 to 10 //...

View Article


Trouble while building

Hi ! I have written many lines of code involving many headers. When building the project I get many linking errors. These errors are not so hard to finf : LNK 2001 and LNK 2019 : the compiler is unable...

View Article


Programming Network Connection.

Hi, I want to write a program that Start and Stop a Network Connection… (LAN connection) in C++. I’d like to know if there is a good book about Programming Network Connection in C++ or C# or a web site...

View Article

[RESOLVED] Run Time Assertion

Hi, Following function is causing run-time assertion. I am using VC6.0 professional version. My OS is Win7.0. I am calling the function from OnDraw. OnDraw does not contain any other code other than...

View Article

Programming Logic: Drawing (radius sized) lines from centre to boundary of...

Hi, I am facing a programming logic problem. I want to draw radius sized lines from centre of circle to the circle boundary. My code is: Code: int x1, y1, x2, y2, i, r, old_xc,old_yc, x,y; int xc, yc;...

View Article


Re-Arrange controls in CControlbar, when?

Hello, I have to rearrange my controls in a controlbar based on the new size resulting from dock/undocking of the bars or resizing of the mainframe. Is there a message I can use? How to determine the...

View Article

Help with Vector input/couting

Hello, I am 3/4 weeks into programming curriculum, so this should be a relatively easy question! I am trying to write a program that counts specific words that a user inputs "Howdy/howdy/Whoop/whoop"...

View Article

Proper array memory management in C++

I have an application that randomly displays images on a screen. There's a capture button, and when user clicks on that button, the image that is currently displayed is stored into a buffer. User can...

View Article


Error with ReadFile and Overlapped

Hi I have a problem with ReadFile and overlapped. first I use ReadFile with overlapped with 0 Code: ZeroMemory(&overlapped ,sizeof(OVERLAPPED)); hDevice = CreateFileW(zwpath, GENERIC_READ |...

View Article


How to make wptree compile with std::wstring?

this compiles with VC++ 2012 Code: std::string readASCIIString(const ptree& tree, std::string location) {         std::string str = tree.get<std::string>(location.c_str());         return...

View Article

[RESOLVED] Programming Logic: Drawing (radius sized) lines from centre to...

Hi, I am facing a programming logic problem. I want to draw radius sized lines from centre of circle to the circle boundary. My code is: Code: int x1, y1, x2, y2, i, r, old_xc,old_yc, x,y; int xc, yc;...

View Article

Line graph using single line values from bitmap

Hi, I was loaded a bmp file in my mfc window and stored rgb data in a file.My image size is 320x240. Is possible to pick a single point (location) from that bmp image (Not the whole window)? i like to...

View Article

Compile time errors for OpensSSL in a Visual C++ Project

Hi all, I am trying to build a VC++ project in Visual Studio 2010. http://sourceforge.net/projects/shairport4w/ This project has a dependency on openssl libraries. How can I successfully build this...

View Article


Exit application using thread in MFC SDI

I have a SDI application. I created a method OnClose to handle ON_WM_CLOSE of CMainFrm. This onclose() function calls a method in cmyview.cpp. Here, I created a thread that calls global function and...

View Article

pointing to CButtons in the constructor

I have 22 CButtons and I'm trying to set each one to the corresponding position in a CButton array of size 22 in the constructor. Code: *buttons[0] = m_button1; This code gives me an error in the...

View Article


Decompile C++ application/sourcecode?

Hello , being new in this Forum and very new in programming in C++ I hope the get some help in this Forum. A EXE-file generates some ISAM-files (ISAM was developed by IBM many years ago). Now we need...

View Article

How to use ATL 7.0 string conversion macros?

I have a problem in using ATL 7.0 string conversion macros. My codes looks like this, which uses ATL 3.0 string conversion macros in the past: Void Myfunc() { USES_CONVERSION; LPSTR lpszA; LPWSTR...

View Article


OpenCV in MFC App

Hey there, I have a C++ app that uses OpenCV. Currently i am statically linking the OpenCV libs into my app. This is adding an extra overhead of 6+ MB. Ideally i would like to remove some of the...

View Article

strncpy_s

error: 'strncpy_s' was not declared in this scope . compiling on ubuntu (linux). what is it?

View Article

What is the fastest way to dump information to the console or the output window?

I used to use OutputDebugString, and not using it now because it only allows to strings to be outputted, are there any methods that I can dump virtually anything to the console? cout << thing...

View Article
Browsing all 3029 articles
Browse latest View live


Latest Images