Click here to Skip to main content
16,011,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSliderCtrl focus notification message ? Pin
Maximilien8-Jan-03 15:10
Maximilien8-Jan-03 15:10 
GeneralDynamic menus Pin
electronicman_x8-Jan-03 9:58
electronicman_x8-Jan-03 9:58 
GeneralRe: Dynamic menus Pin
l a u r e n8-Jan-03 10:25
l a u r e n8-Jan-03 10:25 
GeneralRe: Dynamic menus Pin
electronicman_x8-Jan-03 10:38
electronicman_x8-Jan-03 10:38 
GeneralRe: Dynamic menus Pin
l a u r e n8-Jan-03 10:39
l a u r e n8-Jan-03 10:39 
GeneralRe: Dynamic menus Pin
electronicman_x8-Jan-03 10:58
electronicman_x8-Jan-03 10:58 
GeneralRe: Dynamic menus Pin
Roger Allen8-Jan-03 23:06
Roger Allen8-Jan-03 23:06 
GeneralGetVolumeInformation(...) Pin
Joan M8-Jan-03 9:45
professionalJoan M8-Jan-03 9:45 
Hello,

I need to be able to get the Serial Nº of my hard disk in order to be able to make my programs to run only in the hard disk that I want them to.

I'm using this code:
DWORD dwNumSerie = 0;

UpdateData();

GetVolumeInformation((LPCTSTR)this->m_vedPath,NULL,0,&dwNumSerie,NULL,NULL,NULL,0);

this->m_vedNumSerie.Format("%d",dwNumSerie);
UpdateData(FALSE);
How do I can be sure that the code works?

As a parameter I've written down a "\" (backslash only) in an editcontrol (m_vedPath variable is a CString linked to that EditCtrl).
Is that parameter right in order to get info. of the local HDD?

Thank you in advance.

NOTE:
I've received a - number in my laptop and a positive one in other PC.
GeneralRe: GetVolumeInformation(...) Pin
Neville Franks8-Jan-03 10:34
Neville Franks8-Jan-03 10:34 
GeneralEvent Handler do not Work ! Pin
Alex H 19838-Jan-03 9:20
Alex H 19838-Jan-03 9:20 
GeneralRe: Event Handler do not Work ! Pin
valikac8-Jan-03 9:23
valikac8-Jan-03 9:23 
GeneralRe: Event Handler do not Work ! Pin
Alex H 19838-Jan-03 9:28
Alex H 19838-Jan-03 9:28 
GeneralRe: Event Handler do not Work ! Pin
Tim Smith8-Jan-03 9:33
Tim Smith8-Jan-03 9:33 
GeneralHow can i Do that ? Pin
Alex H 19838-Jan-03 10:23
Alex H 19838-Jan-03 10:23 
GeneralRe: How can i Do that ? Pin
l a u r e n8-Jan-03 10:29
l a u r e n8-Jan-03 10:29 
GeneralDebug Assertion Falied !! :(((( Pin
Alex H 19838-Jan-03 10:42
Alex H 19838-Jan-03 10:42 
GeneralRe: Debug Assertion Falied !! :(((( Pin
l a u r e n8-Jan-03 10:48
l a u r e n8-Jan-03 10:48 
GeneralQuick question.. Pin
Subrahmanyam8-Jan-03 8:38
Subrahmanyam8-Jan-03 8:38 
GeneralRe: Quick question.. Pin
l a u r e n8-Jan-03 8:52
l a u r e n8-Jan-03 8:52 
GeneralRe: Quick question.. Pin
Subrahmanyam8-Jan-03 9:20
Subrahmanyam8-Jan-03 9:20 
GeneralRe: Quick question.. Pin
l a u r e n8-Jan-03 10:31
l a u r e n8-Jan-03 10:31 
GeneralRe: Quick question.. Pin
Alvaro Mendez8-Jan-03 11:04
Alvaro Mendez8-Jan-03 11:04 
Generalinteresting problem Pin
Sunnygirl8-Jan-03 8:03
Sunnygirl8-Jan-03 8:03 
GeneralRe: interesting problem Pin
jmkhael8-Jan-03 8:14
jmkhael8-Jan-03 8:14 
GeneralRe: interesting problem Pin
Sunnygirl8-Jan-03 8:39
Sunnygirl8-Jan-03 8:39 

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.