To my understanding, a CD has 0's and 1's (binary) written on it, and a laser reads the binary. Then the computer translates it. Please correct me if I am wrong. I am using MFC, and what I am trying to do is get all the binary data off of a CD, and put it to a char. Is this possible? Any help at all is appreciated.
a CD has nothing "written" on it!
there are pits and pats (or whatever they are called... dunno).
a change between pit and pat is a 1, if it doesnt change then it is 0.
to read the binary sectors from a CD you will need IOCTLs or even better SCSI.
IOCTL_CDROM_RAW_READ is the IOCTL, but i dont know if you will find it in MSDN, my doc is part of the DDK.
if you want to use SCSI then have a look at CDex src.
The net result of both a shutdown and a restart is the same (i.e., memory has been flushed, data has been written to disk, programs have been closed). The fact that it came back up with a restart should be irrelevant. However, without more details of what you are after, it's hard to suggest a more elegant solution.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
well i have this program that remains hidden and be shown when shutdown is detected. my problem is that it should not appear when the system restarts or logs off.
well logoff and shutdown can be detected on WM_QUERYENDSESSION and WM_ENDSESSION.
in what way or how does windows commands the system to power up again after shutting down ( restart ).
I have a program where I create various objects in mainframe. The objects are data members of class mainframe. I need to access these objects using member functions in dialog and view.cpp. How can I access objects in mainframe from dialog and view? Right now I am using a Extern to do it, but I dont like doing it that way.
I'm trying to filter the characters that are typed into an edit box. For example, I only want the characters A,B,C,D,E,F to be allowed to be typed into the box. Any other characters typed will not be displayed in the box.
Basically you customise the edit control.
Derive a class from the CEdit and listen to the keyboard inputs if they are not amoung the charecters that you want then ignore them.
There are lot of these types of controls here in the codeproject. You can follow the link for CEdit on the leftside at www.codeproject.com
I have a rtf editor based on dialog box in Visual C++.I have to use this function in my app.When i complile my app, it says undeclared identifier.In documentation says that this fct requires Windows 98.I have this operating system.Then why i get this message?
If this function works it saves my work.