Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Network Performance Pin
David Crow17-Mar-08 3:17
David Crow17-Mar-08 3:17 
GeneralRe: Network Performance Pin
od@ananzi.co.za17-Mar-08 4:01
od@ananzi.co.za17-Mar-08 4:01 
GeneralRe: Network Performance Pin
Moak17-Mar-08 6:54
Moak17-Mar-08 6:54 
GeneralRe: Network Performance Pin
od@ananzi.co.za17-Mar-08 7:21
od@ananzi.co.za17-Mar-08 7:21 
GeneralRe: Network Performance Pin
Moak17-Mar-08 8:01
Moak17-Mar-08 8:01 
QuestionA problem with redistributing my app [modified] Pin
Joseph Marzbani17-Mar-08 2:38
Joseph Marzbani17-Mar-08 2:38 
GeneralRe: A problem with redistributing my app Pin
Cedric Moonen17-Mar-08 2:45
Cedric Moonen17-Mar-08 2:45 
GeneralError C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
J_E_D_I17-Mar-08 2:11
J_E_D_I17-Mar-08 2:11 
Hi, I've written a program in c++ (using DLL) which uses the function below to show the HDD Serial No (as assigned by Windows). The program works fine in DLL mode but when I try to convert it into a Static Library Visual Studio 205 returns this error. Could anybody help please? Many thanks

// Gets HDD serial No
char volumeName[MAX_PATH];
DWORD volumeSerialNumber;
DWORD maxNameLength;
DWORD fileSystemFlags;
char systemName[MAX_PATH];

// get the volume information for drive C
GetHDDserialNo = GetVolumeInformation("c:\\",

volumeName, MAX_PATH,
&volumeSerialNumber,
&maxNameLength,
&fileSystemFlags,
systemName, MAX_PATH);
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Rajesh R Subramanian17-Mar-08 2:18
professionalRajesh R Subramanian17-Mar-08 2:18 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
J_E_D_I17-Mar-08 2:53
J_E_D_I17-Mar-08 2:53 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Cedric Moonen17-Mar-08 2:58
Cedric Moonen17-Mar-08 2:58 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Rajesh R Subramanian17-Mar-08 3:04
professionalRajesh R Subramanian17-Mar-08 3:04 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
CPallini17-Mar-08 3:12
mveCPallini17-Mar-08 3:12 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Rajesh R Subramanian17-Mar-08 3:16
professionalRajesh R Subramanian17-Mar-08 3:16 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
CPallini17-Mar-08 3:27
mveCPallini17-Mar-08 3:27 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Rajesh R Subramanian17-Mar-08 3:29
professionalRajesh R Subramanian17-Mar-08 3:29 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
J_E_D_I17-Mar-08 3:35
J_E_D_I17-Mar-08 3:35 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
Michael Dunn17-Mar-08 20:09
sitebuilderMichael Dunn17-Mar-08 20:09 
GeneralRe: Error C2664: 'GetVolumeInformationW' : cannot convert parameter 1 from 'const char [4]' to 'LPCWSTR' Pin
J_E_D_I18-Mar-08 7:04
J_E_D_I18-Mar-08 7:04 
Generalname lookup ambiguity Pin
George_George17-Mar-08 2:09
George_George17-Mar-08 2:09 
GeneralRe: name lookup ambiguity Pin
CPallini17-Mar-08 2:37
mveCPallini17-Mar-08 2:37 
GeneralRe: name lookup ambiguity Pin
George_George17-Mar-08 2:44
George_George17-Mar-08 2:44 
GeneralRe: name lookup ambiguity Pin
CPallini17-Mar-08 3:08
mveCPallini17-Mar-08 3:08 
GeneralRe: name lookup ambiguity Pin
George_George17-Mar-08 19:26
George_George17-Mar-08 19:26 
QuestionStrange string problem ... Pin
User 78226217-Mar-08 1:32
professionalUser 78226217-Mar-08 1:32 

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.