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

Radius and Centre of Circle

Hi, I am drawing a circle using ellipse because there is no explicit command for this. Code:         pDC->Ellipse(CRect(70, 170, 300, 400)); Kindly tell me what is the centre of circle and what is...

View Article


Control for owner-drawing items with 1 or 2 columns ?

Hello, I want to show a list of graphical items in 1 or 2 columns (user selected). I will draw the items (owner-draw). I tried many hours today to find a solution with clistctrl. Now, I am on the way...

View Article


CDHtmlDialog : Not supporting "Canvas" tag in HTML

Hey there, I have a MFC app that uses CDHtmlDialog class. It supports most of the HTML tags, but not the CANVAS tag. If am right, IE 9+ only have support for Canvas tag. Which version of IE is used in...

View Article

Communication between two programs via registry?

Hi, I'm trying to set up some basic communication between two programs via the registry. For this I would like to use the functions Code: int value=10; CString strSection="Data"; CWinApp* pApp =...

View Article

SEH hanlder cause compiler warnings and errors

I use a SEH handler in my code, like this: __try { .. Some codes ... } __except( EXCEPTION_EXECUTE_HANDLER ) { TRACE(_T("Exception")); } but get the following compiler errors: 1>e:\test.cpp(3310):...

View Article


2/4 = 0 ?

how come 2/4 = 0? here is the code: Code: #include <iostream> int main() {         std::cout << 4/2      << '\n'; // ==  2         std::cout << 0.25*2  << '\n'; // ==  0.5...

View Article

foreach loop trouble

Hi ! I would like to know whether foreach instruction is full compatible with VS2012 ? Thanks

View Article

What header for sleep()

Hi ! I have been googling for a long time to find the header used with sleep(). Your help would be great ! Many thanks.

View Article


C++ Memory Mapped Files Trouble

Hello everybody, I have a data buffer project in Windows 7 x64 embedded OS (using Visual Studio 2008), that would work simply like that: One writer application will send data (no network protocols,...

View Article


Radio Button help needed

Hello, I have a group of 3 radio buttons with IDs: Code: IDC_RADIO_ONE IDC_RADIO_TWO IDC_RADIO_THREE Only IDC_RADIO_ONE has the Group property set to True. The rest are false. I have an int declared...

View Article

Is it better Netbeans or Eclipse for learning?

Hi everyone!! I'm learning to develope web appliclations in C++ and Java. I'm using now Netbeans, but some class partners have told me Eclipse is a better IDE for learning. Is it true? I feel...

View Article

Vertical size/height of control bar in MDI app?

Hello, I hope, someone can help me: In a MDI-app with some toolbars and statusbar I created also a controlbar which can be docked to the left side. My problem now: how do I get the exact height of the...

View Article

Suggestion for Account record

Hi all,, A module of my Bank Management System which should display the user account details after successfuly entering his/her details calls to a function: Code: void display_acc(int n) { account acc;...

View Article


Internet Explorer automation

Hello. I`m working with MSVS C++. I want to automate several routine actions in IE page using COM technology. Does anyone know some useful links about this? Code:         CIEAutoCntrItem* pItem = NULL;...

View Article

USB node view

Is it possible to see what usb devices are connected to a hub? an example would be: Onboard usb hub: usb mass storage device webcam imaging device superspeed hub: Mass storage device Printer MTD device...

View Article


Animation problem using double buffering

Hi, I solved the following problem: http://forums.codeguru.com/showthrea...ight=animation but now i have lost that code. I dont know how to do it. Somebody plz guide me how to do animation using double...

View Article

Access Violation to ntdll.dll

Code: if(FAILED(hr=D3DXLoadSkinMeshFromXof( (LPD3DXFILEDATA) pDataObj, TempLoadFlags,                                       pDevice, &AdjacencyBuffer,...

View Article


Getting 6 frames per second from Webcam

Hey there, I want to make a MFC app that will capture 6 frames per second from the webcam connected to the PC. And i want to get the frames as imageData, i.e., as bitmap or PNG. The idea is to get...

View Article

Is this a job for the Shell Name Extension?

I am looking to develop the following: - Map a local drive letter (say, K: ) - Redirect all files/folders on the mapped drive K via my service/program. (That internally will upload/download them...

View Article

suggestions for binding MySql to C++

Hi all, I am working on Bank Management System,,i wanna connect my programm to MySql Can anyone refer me Book(s)/links where i can learn so...i have know how of Mysql already and worked on it

View Article
Browsing all 3021 articles
Browse latest View live