Click here to Skip to main content
14,576,897 members

ATL / WTL / STL

 
GeneralRe: DLL Questions Pin
bkelly1325-Feb-16 13:07
Memberbkelly1325-Feb-16 13:07 
GeneralRe: DLL Questions Pin
Richard MacCutchan25-Feb-16 22:18
mveRichard MacCutchan25-Feb-16 22:18 
GeneralRe: DLL Questions Pin
Jochen Arndt25-Feb-16 22:37
professionalJochen Arndt25-Feb-16 22:37 
GeneralRe: DLL Questions Pin
Richard MacCutchan26-Feb-16 0:01
mveRichard MacCutchan26-Feb-16 0:01 
QuestionQuestion about Direct3D View Area Pin
Member 112032772-Feb-16 5:24
MemberMember 112032772-Feb-16 5:24 
QuestionFormatMessage for unicode Pin
bkelly1330-Jan-16 15:03
Memberbkelly1330-Jan-16 15:03 
AnswerRe: FormatMessage for unicode Pin
Richard MacCutchan30-Jan-16 21:15
mveRichard MacCutchan30-Jan-16 21:15 
QuestionWCHAR argument pointer Resolved Pin
bkelly1314-Jan-16 16:07
Memberbkelly1314-Jan-16 16:07 
The dot H file contains:
const WCHAR DEFAULT_DlRECTORY[ ] = L"C:\\LOG_FILES\\";
const WCHAR  DEFAULT_FILENAME_PREFIX[]      = L"Log_File_";

The dot CPP file contains
C_Log_Writer::C_Log_Writer( 
const WCHAR *new_directory_name = &DEFAULT_DlRECTORY, 
const WCHAR *new_name_prefix    = &DEFAULT_FILENAME_PREFIX[0] )
{ ... }

The new_directory_name lines does not compile and produces the error:

Error	1	error C2440: 'default argument' : cannot convert from 'const WCHAR (*)[14]' to 'const WCHAR *'	e:\code_tests\common_code_dll\c_log_writer\c_log_writer.cpp	73	1	C_Log_Writer


I thought new_directory_name would be a pointer that would by default point to the first character of the array. Why is that thinking wrong?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 15-Jan-16 17:58pm.

AnswerRe: WCHAR argument pointer Pin
Richard Andrew x6414-Jan-16 16:38
professionalRichard Andrew x6414-Jan-16 16:38 
GeneralRe: WCHAR argument pointer Pin
bkelly1315-Jan-16 11:58
Memberbkelly1315-Jan-16 11:58 
QuestionScrolling ATL Dialog with mouse wheel problem. Pin
Member 1213702619-Dec-15 18:11
MemberMember 1213702619-Dec-15 18:11 
AnswerRe: Scrolling ATL Dialog with mouse wheel problem. Pin
Richard MacCutchan19-Dec-15 21:07
mveRichard MacCutchan19-Dec-15 21:07 
QuestionCoCreateInstance(CLSID_SpVoice); fails with Class not registered Pin
ptr_Electron14-Dec-15 0:56
Memberptr_Electron14-Dec-15 0:56 
AnswerRe: CoCreateInstance(CLSID_SpVoice); fails with Class not registered Pin
Jochen Arndt14-Dec-15 1:39
professionalJochen Arndt14-Dec-15 1:39 
GeneralRe: CoCreateInstance(CLSID_SpVoice); fails with Class not registered Pin
ptr_Electron14-Dec-15 1:52
Memberptr_Electron14-Dec-15 1:52 
GeneralRe: CoCreateInstance(CLSID_SpVoice); fails with Class not registered Pin
Jochen Arndt14-Dec-15 2:13
professionalJochen Arndt14-Dec-15 2:13 
Questionfind crash location in the code Pin
bkelly1313-Dec-15 15:58
Memberbkelly1313-Dec-15 15:58 
AnswerRe: find crash location in the code Pin
Richard Andrew x6413-Dec-15 16:14
professionalRichard Andrew x6413-Dec-15 16:14 
AnswerRe: find crash location in the code Pin
Richard Andrew x6414-Dec-15 9:37
professionalRichard Andrew x6414-Dec-15 9:37 
Questionhow to determine max TCP/IP send size Pin
bkelly1313-Dec-15 15:51
Memberbkelly1313-Dec-15 15:51 
AnswerRe: how to determine max TCP/IP send size Pin
Richard MacCutchan13-Dec-15 21:11
mveRichard MacCutchan13-Dec-15 21:11 
GeneralRe: how to determine max TCP/IP send size Pin
bkelly1318-Dec-15 15:39
Memberbkelly1318-Dec-15 15:39 
GeneralRe: how to determine max TCP/IP send size Pin
Richard MacCutchan18-Dec-15 21:47
mveRichard MacCutchan18-Dec-15 21:47 
AnswerRe: how to determine max TCP/IP send size Pin
Albert Holguin17-Feb-16 9:41
professionalAlbert Holguin17-Feb-16 9:41 
QuestionCFolderPickerDialog can't be inherited Pin
Prasanth.outofboxt6-Dec-15 22:59
MemberPrasanth.outofboxt6-Dec-15 22:59 

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.