Mouse Input Coordinates Not Being Read in C++
Please take a look the code below, its not the complete thing obviously since that'd be too long. Essentially the problem is that when I click the mouse, the program doesn't seem to record the...
View ArticleA question regarding creating a window
This is a typical way to create a window, Code: LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_CLOSE:...
View ArticleCustomize control scrollbar
I get a task: to color the control scrollbar (a gridctrl scrollbar, whatever). In the first attempting I didn't succeded ... So, I started to trying coloring a CListBox scrollbar ... I developed a...
View Articleole32.lib / dll
This is a question about ole32.dll (and .lib) although it could equally apply to other MS libraries with "32" in their name... I want my app to call CoCreateInstance() which (according to that MSDN...
View ArticleChat Program
I would like to write a program Chat Room similar to yahoo chat rooms or cheetah chat room :D Nothing quite as big maybe 5 chat rooms with avatar's. Any tutorials and beginner code programs ? Anything...
View ArticleProblem With Sleep() When drawing ananalog clock
Hi, The question says: Make an "analog clock" that is, a clock with hands that move. You get the time of day from the operating system through a library call. A major part of this exercise is to find...
View ArticleFlight simulator and a dll
Good Day, I am developing a small home cockpit (as a hobbyist and not as professional) with Microsoft Flight Simulator and the Aerosoft Airbus X. I use a VB.NET app and FSUIPC to connect my hardware to...
View ArticleFl::add_idle function
Hello all, For some reason I need to use of Fl::add_idle function. This site introduces it but doesn't offer an example of how to use it. http://www.fltk.org/documentation.ph...ml#Fl.add_idle May you...
View ArticleDialog Window Property Question?
Hi, I'm new to Visual Studio and have been tasked with taking over someone else's C++ code. The Win32 application in question has several complicated dialogs open simultaneously. What is the best way...
View ArticleProblem with ScrollBar on SDI application
Hi All, I have created a SDI application. It have a horizontal splitter in middle for getting two views. There is one dialog is attached to the lower view for adding few controls like static control,...
View Articlesetw( ) I almost understand, but I'm getting some weird results.
I'm using TutorialsPoint C++ examples to figure some things out, and though I've figured out what I can, I cannot tell why my output isn't going the way I want with the setw() "method"? As you can see...
View ArticleDrawing a rubber band rectangle
Hi, I am trying to draw a rubber band rectangle. I have got a following code from a site but its giving an error: Code: class CSampleView: Public CView { ... public: CrectTracker m_tracker;//Changed to...
View Article[Help] Wininet Aplication does not Send to php File.
Good evening, Please help. This code doesnt send parameters to mysql database vis WININET post, i see it send empty fields, what exactly could be the problem my code goes thus Code: #include...
View ArticleUnderstanding Iterators
Hi, I'm working on a improving my C++ skills and am trying program with C++ 11 using iterators. So heres my code: Inputs - grid is ["---", "-m-","p--"] tgt = p Aim is to return the coodinates of p from...
View Article[RESOLVED] Drawing a rubber band rectangle
Hi, I am trying to draw a rubber band rectangle. I have got a following code from a site but its giving an error: Code: class CSampleView: Public CView { ... public: CrectTracker m_tracker;//Changed to...
View ArticleCreating multiple rubber band rectangles
Hi, I am able to create a rubber band rectangle. But i am not able to create two rubber band rectangles at the same time. My code is at: http://forums.codeguru.com/showthrea...band-rectangle Somebody...
View Articleopengl out to wmf
I have a view in an application and i export the display to a wmf file. athe result is correct, but when i active the opengl mode the wmf file seems empty, is this posible. What can i do? thanks a lot....
View ArticleUnicode characters in VC++
Hello, I'm trying to have a button marked by the sqrt sign, '√'. I wrote below code and typed that sign by holding down "alt" and typing 251 using numpad. But result is the question mark instead of...
View ArticleBytes of Image in C++
Hey.. I'm working on a C++ application that deals with Sql Server Database . This query insert an image to the table (on the condition that you should be bulkadmin). Code: CREATE TABLE Files (ID int ,...
View ArticleHow to insert and read image from database (sql server) using MFC ?
How to insert and read images to/from database (sql server) using MFC ? an example or a reference would be appreciated :)
View Article