Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Hello everyone,


The following code will result in compile error below is because of private method of base class is also considered into name lookup, even if we can not access directly the private method of base class?

error C2385: ambiguous access of 'foo'

class Base
{
private:
     void foo() {}
public:
     void bar() {}
};

struct Mixin { void foo() {} };

class Derived: public Base, public Mixin
{
public:
     void bar() { foo(); }   // Uh oh.
};

int main()
{
     Derived().bar();
}



thanks in advance,
George
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 
GeneralRe: Strange string problem ... Pin
CPallini17-Mar-08 1:44
mveCPallini17-Mar-08 1:44 
GeneralRe: Strange string problem ... Pin
ramana.g17-Mar-08 2:22
ramana.g17-Mar-08 2:22 
GeneralRe: Strange string problem ... Pin
User 78226217-Mar-08 3:03
professionalUser 78226217-Mar-08 3:03 
GeneralRe: Strange string problem ... Pin
David Crow17-Mar-08 3:37
David Crow17-Mar-08 3:37 
GeneralRe: Strange string problem ... Pin
User 78226217-Mar-08 3:05
professionalUser 78226217-Mar-08 3:05 
QuestionRe: Strange string problem ... Pin
CPallini17-Mar-08 3:15
mveCPallini17-Mar-08 3:15 
GeneralRe: Strange string problem ... Pin
User 78226217-Mar-08 3:23
professionalUser 78226217-Mar-08 3:23 
QuestionRe: Strange string problem ... Pin
Rajesh R Subramanian17-Mar-08 1:49
professionalRajesh R Subramanian17-Mar-08 1:49 
GeneralRe: Strange string problem ... Pin
User 78226217-Mar-08 3:18
professionalUser 78226217-Mar-08 3:18 
GeneralRe: Strange string problem ... Pin
MANISH RASTOGI17-Mar-08 1:49
MANISH RASTOGI17-Mar-08 1:49 
GeneralRe: Strange string problem ... Pin
User 78226217-Mar-08 4:11
professionalUser 78226217-Mar-08 4:11 
GeneralRe: Strange string problem ... Pin
Michael Dunn17-Mar-08 20:12
sitebuilderMichael Dunn17-Mar-08 20:12 

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.