Click here to Skip to main content
16,007,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCharacters conversions on ReadFile and WriteFile Pin
MAXS72U10-Oct-01 5:50
MAXS72U10-Oct-01 5:50 
GeneralRe: Characters conversions on ReadFile and WriteFile Pin
Erik G. Poel10-Oct-01 6:02
Erik G. Poel10-Oct-01 6:02 
GeneralRe: Characters conversions on ReadFile and WriteFile Pin
MAXS72U10-Oct-01 20:27
MAXS72U10-Oct-01 20:27 
GeneralRe: Characters conversions on ReadFile and WriteFile Pin
MAXS72U10-Oct-01 21:32
MAXS72U10-Oct-01 21:32 
GeneralWinCE/eMbedded Visual C++ Pin
Erik G. Poel10-Oct-01 5:12
Erik G. Poel10-Oct-01 5:12 
GeneralLNK2001 Error when creating a Multithreaded Debug DLL Pin
Stacie Bartley10-Oct-01 4:48
Stacie Bartley10-Oct-01 4:48 
GeneralRe: LNK2001 Error when creating a Multithreaded Debug DLL Pin
James Spibey16-Dec-01 0:38
James Spibey16-Dec-01 0:38 
GeneralEject CD by DeviceIoControl Pin
Masaaki Onishi10-Oct-01 4:17
Masaaki Onishi10-Oct-01 4:17 
Hello, the codegurus around the world.;)

I wrote the code to eject the cd from my application.

First time, I use mciSendString () to do this, and this works fine.
But, QA pointed out that this code didn't work on Windows 95 and NT without installing
MCI. Cry | :(( Cry | :((

So, I use DeviceIoControl function since I found some sample code for Windows 9x and NT.
However, since I'm lazy Dead | X| , I omitted the code to check if the other application
uses CD or lock and unlock CD.

Without these codes, my code works fine on Windows OS including Windows XP.Big Grin | :-D

But, I'm curious that we need these kind of codes - check if the application uses CD or lock or unlock CD.
(In fact, the time of executing my code rarely faces these kinds of situation, so I omitted these.)

Have a nice day!

-Masaaki Onishi-


GeneralCProperty Sheet Pin
10-Oct-01 4:14
suss10-Oct-01 4:14 
GeneralRe: CProperty Sheet Pin
Erik G. Poel10-Oct-01 4:33
Erik G. Poel10-Oct-01 4:33 
QuestionCreating a COM object in another thread? Pin
NormDroid10-Oct-01 2:49
professionalNormDroid10-Oct-01 2:49 
AnswerRe: Creating a COM object in another thread? Pin
10-Oct-01 3:12
suss10-Oct-01 3:12 
GeneralRe: Creating a COM object in another thread? Pin
NormDroid10-Oct-01 3:42
professionalNormDroid10-Oct-01 3:42 
GeneralRe: Creating a COM object in another thread? Pin
10-Oct-01 3:53
suss10-Oct-01 3:53 
GeneralRe: Creating a COM object in another thread? Pin
NormDroid10-Oct-01 3:59
professionalNormDroid10-Oct-01 3:59 
GeneralRe: Creating a COM object in another thread? Pin
10-Oct-01 4:08
suss10-Oct-01 4:08 
GeneralRe: Creating a COM object in another thread? Pin
NormDroid10-Oct-01 4:16
professionalNormDroid10-Oct-01 4:16 
GeneralRe: Creating a COM object in another thread? Pin
10-Oct-01 4:41
suss10-Oct-01 4:41 
AnswerRe: Creating a COM object in another thread? Pin
Not Active10-Oct-01 3:20
mentorNot Active10-Oct-01 3:20 
GeneralRe: Creating a COM object in another thread? Pin
NormDroid10-Oct-01 3:52
professionalNormDroid10-Oct-01 3:52 
QuestionHow i manage Events of a run time created DBGrid control Pin
Khalil10-Oct-01 2:36
Khalil10-Oct-01 2:36 
GeneralCRuntimeClass::CreateObject() and delete Pin
BruteBertus10-Oct-01 2:18
BruteBertus10-Oct-01 2:18 
GeneralRe: CRuntimeClass::CreateObject() and delete Pin
Tomasz Sowinski10-Oct-01 3:53
Tomasz Sowinski10-Oct-01 3:53 
GeneralRe: CRuntimeClass::CreateObject() and delete Pin
BruteBertus10-Oct-01 22:05
BruteBertus10-Oct-01 22:05 
GeneralRe: CRuntimeClass::CreateObject() and delete Pin
Tomasz Sowinski11-Oct-01 1:50
Tomasz Sowinski11-Oct-01 1:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.