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 ArticleTrouble 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 ArticleProgramming Network Connection.
Hi, I want to write a program that Start and Stop a Network Connection (LAN connection) in C++. Id 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 ArticleProgramming 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 ArticleRe-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 ArticleHelp 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 ArticleProper 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 ArticleError 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 ArticleHow 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 ArticleLine 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 ArticleCompile 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 ArticleExit 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 Articlepointing 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 ArticleDecompile 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 ArticleHow 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 ArticleOpenCV 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 Articlestrncpy_s
error: 'strncpy_s' was not declared in this scope . compiling on ubuntu (linux). what is it?
View ArticleWhat 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