saga
Feb 14 2006, 08:31 AM
| | ok my problem is how do i make or assign a keyboard accelerator with modal dialog boxes since the message loop is inside the function call of DailogBox() functions, unlike the modeless dialog box in which you are the one who will create the message loop for the dialog box...
is it even possible? |
Comment/Reply (w/o sign-up)
Trap FeedBacker
Oct 19 2007, 09:07 AM
@see: http://support.microsoft.com/kb/100770 "How to use accelerator keys and a main menu on the dialog box in Visual C++" -wiRe
Comment/Reply (w/o sign-up)
iGuest-pooja
Aug 15 2008, 04:33 PM
how to display mbr contents in readable form to view the partition table on console in vc++
Win32: Dialog Box And Accelerator
I have written a code to read the mbr. But this displays in ascii. How to convert it into a form which is readable to locate the ext2 fs on the system... // kk.Cpp : Defines the entry point for the console application. // #include "stdafx.H" #include<windows.H> #include<stdio.H> #include<conio.H> Int _tmain(int argc, _TCHAR* argv[]) { HANDLE hDriver; hDriver= CreateFile(TEXT("\\\\.\\PHYSICALDRIVE0"),GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,0,OPEN_EXISTING,0,0); printf("%d",hDriver); if (hDriver == INVALID_HANDLE_VALUE) // cannot open the drive { printf("%d",GetLastError()); } char data[513]={0}; DWORD dwBytesRead=0; if( FALSE == ReadFile(hDriver, &data, 512,&dwBytesRead, NULL)) { printf("Could not read from file (error %d)\and", GetLastError()); CloseHandle(hDriver); return 0; } if (dwBytesRead > 0) { data[dwBytesRead+1]='\0'; // NULL character _tprintf(TEXT("Text read from (%d bytes): \and"), dwBytesRead); printf("%s\and", data); } else { _tprintf(TEXT("No data read from file \and")); } CloseHandle(hDriver); Getch(); return 0; } -reply by pooja
Comment/Reply (w/o sign-up)
(G)ali
Jul 30 2009, 03:09 PM
win32 console app
Win32: Dialog Box And Accelerator
I use Microsoft Visual Studio 9.0 to create win32 console application but when I execute
That program I encounter with one message based on my program is not valid win32 application.
Please help me.
Thank you.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : win32, dialog, box, accelerator, win32, api, programming
- I Want To Learn Programming
(7)
Finding The Rgb Color Of An Image
Using any programming language (6) hello friends i am doing a project , in that i am inneed to fine the mean RGB value of a particular
image , is there any program in any language which can do this ? the input to the program will be
any image ( can be linked in the program) and the putput must be the mean RGB value of that
particular image , is this Possible ? If so please post the Coding , no matter in what ever language
it may be written.Thanks in Advance....
Why Must We Learn Object Oriented Programming
help me to understand the benefit of OOP (8) As a software laboratory assistant, I teach the class of Object Oriented Programming. Everything
went well until one day a student of mine ask me a simple problem like this Q/A: him : Why must we
use Object oriented Programming? I thought the usual one could do almost everything. me : Well, in
Object Oriented Programming we could make a class, so basically eveything could be made to an
'object' in our mind. him : That's why I'm asking, why must we made everything an
object? What's the difference? me : In Object Oriented Programming, Encapsulation ....
Alright, I'm Taking Computer Programming As A Class In School.
(10) Is there anything I should personally be worried about or anything I really need to know? I'm
pretty much good with computers and such and pretty much spend my whole life on them, lol.....
Discussion On Dynamic Programming
(3) Dynamic Programming is one of the powerful programming approach now a day. DP applicable when sub
problems share sub sub problems. (No independent sub problems). Solve each sub problem once, save
the answer, and when needed use the previously computed result. Like for Fibonacci series. To get
f(n+1) we need addition of f(n), f(n-1) and for f(n) we need f(n-1), f(n-2). so to get f(n+1) we
need f(n) and f(n-1) and again for f(n) we need f(n-1) and f(n-2). In this approach we are
calculating same thing more then once . That is a very bad idea. But what if we store the data....
C Programming Video Tutorials
This is for all the memebers out there looking or need some mroe help (3) Hello per this is for the memeber that want to start programming in " C "... C is a
very powerful Programming Lang In fact mayb to powerful.. Well there is 138 Videos in the
TUT.. I Have uploaded the it so per .rar is per chapter /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> P@ssword for ALL .rar files
is : sid3arm chapter #1 = Introduction to C ** Download link ** chapter #2 = A
basic C program ** Download link ** chapter #3 = Basic Elements of a C Program **
Download link ....
C Or C++ Easy Programming Generator
You need a program? (6) Hi i just had a stupid question on how to program is C or C++. I would like to know if there is any
program like Photoshop to create C codes or how to put them together. If someone could show me it
would be great. I appreciate it as i love computers and want to be like a wiz at it and also
everything related to it. I know that this is crazy and i have heard that from people they tell me
you're a GFX person stay there but i want to explore. Thanks if helped.....
How Many of You Use the C Programming language?
(23) Just wanted to know how many of you are currently using C language for programming. If you can tell
what sort of programs you do, it would be useful. ....
C Programming: Arrays
A Clear Description of Arrays (4) C programming provides a capability that enables a user to design a set of similar data types,
called Arrays. For understanding the arrays properly, let us consider the following program CODE
main() { int x; j=5 j=10; printf("\nj= %d",x); } No doubt, this program will print the value
of j as 10. This is because when a value 10 is assigned to j, the earlier value of j, i.e. 5, is
lost. Thus, ordinary variables are capable of holding only one value at a time. However, there are
situations in which we would want to store more than one value at a time in a single ....
Beginners Guide To C/c++ Programming?
(3) ok so I was wondering if anyone knows where I can find a good, c/c++ dummy friendly guide? my main
reason for want to learn it so that I can make .cab files that do registry edits for ppc. I know
this should be easy to do, Any help would be greatly appreciated. Thx in advanced, Mike....
C/c++ Programming Experince
How long does it take before programming useful programs? (3) I've been teaching my self C++, slowly but surely. Everything I try to program is just mediocre,
and much simplier to use something already made. How long does it take before I can start
programming useful decent programs?....
Detailed C Beginner Tut
basis for learning any application programming language (2) QUOTE The best way to learn programming is to dive right in and start writing real programs.
This way, concepts which would otherwise seem abstract make sense, and the positive feedback you get
from getting even a small program to work gives you a great incentive to improve it or write the
next one. Diving in with ``real'' programs right away has another advantage, if only
pragmatic: if you're using a conventional compiler, you can't run a fragment of a program
and see what it does; nothing will run until you have a complete (if tiny or trivial) prog....
Dos Programming, Undocumented Dos, And Dos Secrets
(3) This web site is devoted to DOS programming for those of us who still enjoy programming in DOS some
of its containt are Disk/Files - Programming the disk and/or file info. DOS - DOS programs, DOS
prompt, DOS compilers, etc. Encryption/Compression - Encryption and Compression. Games - Programming
Games. Hardware/System programming - Memory, BIOS, CMOS, and other Hardware/System items.
Input/Output Devices - Mice, Joystick, Keyboard, Modem, Printer, etc.. Misc - Item that don't
fit in any/all the other subjects. Sound - Sound programming Video/Graphics - Graphics progr....
Dos Game Programming In C For Beginners
(1) There are a number of tutorials available for the intermediate game programmer, but there are very
few good tutorials for beginners who have never drawn a pixel on the screen. A quick search on the
net reveals hundreds of sites devoted to 3D, polygons, texture- mapping and other advance topics,
but the beginner has no where to get started. This tutorial is for C programmers who want to get an
introduction to game programming. find this tutorial at Dos Game Programming in C for Beginners
....
256-color Vga Programming In C Site
(0) what some say is the best VGA programming site on the web VGA Basics Setting the video mode,
plotting a pixel, and mode 0x13 memory. Primitive Shapes & Lines Drawing lines, polygons,
rectangles, and circles. Also, Bresenham's algorithm, fixed-point math and pre-computing tables.
Bitmaps & Palette Manipulation The BMP file format, drawing bitmaps, and palette manipulation. Mouse
Support & Animation Animation, mouse motion, and mouse button detection. Double Buffering, Page
Flipping, & Unchained Mode Double buffering, page flipping, structure of unchained mode,....
Win32 Api Problem
Win32 API Problem (4) the problem is that i want to be able to make my program automatically load to memory or execute as
soon as windows start up. the only solution i know is to put a link in the startup folder for all
user or an specific user.... is there any other possible way using Win32 API function calls that do
the trick.. like some part in the windows registry were you add the path and file name of programs
you want to execute at start up? i need only pure Win32 API function calls since im not using
visual basic but a bloodshed win32 compiler. MFC gives me headache. /smile.gif" s....
Programming A Malloc
(1) A little background about what I am doing is this: I have an array which holds a linked list
containing the memory that is currently taken from the system. Each index I have like 16 size
memory or less can be stored only in index 0, index 1 is for memory inbetween 16-32, index 2 is for
memory inbetween 32-64, etc all the way up to 2048 which is the max allocatable memory. Now the way
my malloc is to work is that it first will run through my list to see if any memory is available
that is greater than or equal to the size I need, if there is any at all it will return it....
Where To Start Learning C++ Programming Language
Resources for C++ (4) I'm planning on learning c++ but I'm having some problems. First, I need a compiler.
I've downloaded Digital Mars (www.digitalmars.com) but how the heck do I compile something????
There's this other free compiler that loooks great but seems hard to install. Does anyone know a
good freeware compiler??? Also does anyone know what some good tutorial resources are? I've
found a few sites, but does anyone know a really good one? Or maybe a good book? But my main
problem is with the compiler. Can't get anything done without one.......
Never Ending Books For C++ Programming
C++ Programming Books (3) /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Hello Friends As I m
doing MCA so I have so many ebooks for u. Anybody that wants C++ Programming Knowledge ,can get from
these books,it includes all basic and expert features programming.So here is the collection Only For
Trap17 Users.If u like this Post Please reply. Thanx ....................
Vesa Programming Viewer In D O S
Graphics in C/C++ (3) Hello friends, I wanna make an image viewer in DOS...can any one help me how to deal with high
resolution screens in DOS uning mouse using VESA interrupts. Please help.. thanks acumentech....
Vesa Programming Viewer In C
Graphics in C (2) Hello friends, I wanna make one image viewer program in C please help me how to deal with high
resolution video using VESA programming. Thanks acumentech....
Life In Programming?
wheres this headed? (12) Hey guys im 16 and really like programming (although im fairly new at it) ive already taken a year
of basic html and what not. This year im taking a class in c++ and VB next year i hope to take java
and php. However next year will be my senior year and i will have to start applying for colleges
and im trying to convince my parents that there ARE jobs in computers its hard for them to do this
they like to stay locked up in there own little world **cough cough** stone age **cough** so what i
was wondering is what jobs are actually out there for this kinda stuff what are ....
Good Books On C++ Game Programming
I need some books! (5) I am looking for some good books on game programming in c++ if any body out there has any
suggestions feel free to post them. Oh by the way should i start out with an easier language like
BASIC or should I just work on c++. Ineed some help people please reply fast. Tahnx
David H /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
Game Programming
(17) I'm looking into going into game programming and I want to know if there is another programming
language I should learn to go along with C++? Or should I just learn C++(Master Blaster of C++,
Master Shake of C++, Lord and Master of C++, Jedi Master of C++) and then learn(more)/master it in
college? Thanks, Kvarner express....
D Programming Language
(9) hi friends, surprised... was that a type???? It is not a type... I know this is a C/C++
programming language forum.. Just wanted to share something I came across today... A new
programming language based on C and C++ is being developed.. It would have all the power of C/C++,
in other words as the spec says "retains the ability to write high performance code and interface
directly with the operating system API's and with hardware." The specification of the language
and alpha phase compilers are available at www.digitalmars.com I just browsed throught the spec a....
Opengl And Mfc Dialog Based Application
some comments about using it together (8) AS you probably know you can create a simple OpenGL applications using WinAPI functionality only
(you can create it using Microsoft Visual Studio), but if you are making somethink with real windows
interface and want to create application with multiple windows/dialogs/buttons with Windows Styles
etc... you can use MFC (Microsoft Foundation Classes) to do it ... But i did a 2 hours web search to
find example of using OpenGL windows inside MFC created Dialog window. I found it and want to share
my results now. My application is a simple OpenGL based tool, which shows Ope....
Functions In Win32
(2) Hey, all. Hope someone can make some useful suggestions, as i'm pretty much at a dead end!
I'm writing some code to run in a win32 envrionment, using the API to interface with audio
hardware. At the moment this is very simple, and I'm pretty much just regurgitating micro$oft
tutorials. I'm using the Bloodshed Dev-C++ compiler. My problem is this -- i'm trying to
use the CWaveFile class to provide a simple interface to .wav files. This class is defined in
DSUtil.cpp, and makes use of the 'standard' mmio functions. To use these, I have to #in....
A Question About C++ Programming Under Linux
(8) Hello guys! i prepare to develop under linux using c++, but i don't know what tools i should
use...some one tell me to use vim, but i think vim is so hard to use!can u recommend me some ide???
thank u very much....
Simple C++ Programs
programming C++ (16) what simple programs would a beginner should code in order to get some understanding the c++ along
with leaning as well....
C Programming Help
(4) Hey, does anyone know of any good direct sites that would help me in some scripting of c programming
or maybe even a tutrorial that would help with some advanced scripting. Thanks.....
Looking for win32, dialog, box, accelerator, win32, api, programming
|
Searching Video's for win32, dialog, box, accelerator, win32, api, programming
See Also,
|
advertisement
|
|