Windows Programming - October 2009 (Page 3)

How to divide Double?
 
I am doing this code: double getArea()//this is for a rectangle. { double area; area = getL...
[5 replies] Last: Thank you very much. I used your code and it works like a charm. I had... (by johnny80)
Closing the active window
 
I used GetForegroundWindow() to get the handle to the current active window, but I need to know how ...
[2 replies] Last: Using your method, BOOL TerminateWindow(__in HWND hWnd) { DWORD ... (by Kiana)
[c\c++] webcam snapshot in memory...
 
i would like to find a way of taking a snapshot from the webcam... HWND hwnd = capCreateCapt...
[1 reply] : Well where you have the line capFileSaveDIB(hwnd, "a.bmp"); could ... (by chrisname)
How to declare an int array within a managed class?
 
I'm using Visual Studio to make a tic tac toe game. I have it working great, but many things are har...
[1 reply] : try using array<int> ^bval; and initialize it in your constru... (by Danielm103)
How do I use a vector in VS2008 .NET framework
 
I'm trying to use a vector instead of an array in my program. It is in the .NET framework and for s...
[3 replies] Last: Hmm, I should probably brush up on my C++/CLI, but I kind of consider ... (by jRaskell)
How to refer to the sender object?
 
Okay I'm trying to write one function to handle all button clicks in my TicTacToe game (it's just a ...
[1 reply] : Did some digging on my own and found the solution: Button^ ctrl = s... (by SnapCrakllPop)
by Gilmar
How to write loop counter in logfile.
 
Hi, Can anybody give me a hint on how to add a counter inside the logfile? For example, if at firs...
[5 replies] Last: Ah, sorry. I didn't read it properly. Can you give a couple of exa... (by kbw)
by Hakate
How to create a .exe file in VS2008 express
 
Hello I dont really know how to create a exe file in VS2008 express. I am using classes to als...
[8 replies] Last: Thanks, I followed your steps and it works both on my pc and the other... (by Hakate)
How can I read 2G bin file to memory?
 
It seems that "new" cannot ask for the memory larger than some kind of number. Is there something I ...
[11 replies] Last: File mapping doesn't magically get arround address limits. (by kbw)
Source Code CD
 
I'm trying to learn Vis C++ from older book, 'Programming Microsoft Visual C++ Fifth Edition. Howev...
[3 replies] Last: whats your email? (by guestgulkan)
Multithreading issue
 
I'm studying multithreading to broaden my programming capabilities. I've read a bit about it, and un...
[1 reply] : There is no message passing in Windows, threads communicate thru commo... (by kbw)
Modifying wchar_t
 
Hey guys, Im attempting to modify a wchar_t but i get an access violation error. For example: ...
[2 replies] Last: Windows provides them. #include <windows.h> ... wchar_t* str = n... (by Duthomhas)
by Giamma
How to obtain Outlook appointments
 
Hi guys in the software I'm developing in c++ I want to obtain all the appointments of a specific c...
[1 reply] : See MSDN samples (SDK, KB) about OL automation or ask on Win32 grp (ht... (by george135)
by Bv202
Bitmaps
 
Hi, I'm trying to work with bitmaps now, but I'm quite confused about it. 1) Use the LoadBitma...
[12 replies] Last: Is it ok to continue using the same memory DC throughout the program a... (by ceraml)
by garob
drive letter
 
Hi This is not really a c++ question but I use two computers and my usb stick for programming but ...
[2 replies] Last: thanks (by garob)
by DBarzo
MIDL2020 : error generating type library : LayOut failed
 
Hi, I'm compiling an IDL file into a type library but I get the error in the object: midl\olea...
[1 reply] : Found it! Like always it is a typing mistake: Changed those line... (by DBarzo)
by cide
Picture dissapear when moved under taskbar, is there a simple solution ?
 
Hi , when i grab a picture from the webcam and display it .. it dissapear when it goes under the ta...
[3 replies] Last: I looked some more time to the code and the examples on the forum here... (by cide)
Can someone teach me how to search from textfile..
 
i am stuck in searching words from textfile..
[6 replies] Last: Just finished editing my codes.. please help.. :O (by nemesiscplusplus)
by punky
EXE header PE offset
 
why some exe does have at PE header value offset the MZ value set instead of the PE value? magic ...
[2 replies] Last: MZ is a DOS program. (by kbw)
typedef int BOOL;
 
found this in WinDef.h ...why?
[3 replies] Last: char could actually be slower as int's size equals to the CPU's word-s... (by R0mai)
October 2009 Pages: 1234
  Archived months: [sep2009] [nov2009]

This is an archived page. To post a new message, go to the current page.