Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application name Pin
Rage3-Feb-03 1:44
professionalRage3-Feb-03 1:44 
GeneralRe: Application name Pin
vin3-Feb-03 23:21
vin3-Feb-03 23:21 
GeneralRe: Application name Pin
Abbas_Riazi3-Feb-03 4:59
professionalAbbas_Riazi3-Feb-03 4:59 
GeneralOLE Container . Pin
vijayaramaraju3-Feb-03 0:41
vijayaramaraju3-Feb-03 0:41 
GeneralIActiveScript::AddTypeLib Pin
AlexO3-Feb-03 4:03
AlexO3-Feb-03 4:03 
Generalaccess class members from a non class global static function Pin
SPGV3-Feb-03 0:27
SPGV3-Feb-03 0:27 
GeneralRe: access class members from a non class global static function Pin
xxhimanshu3-Feb-03 0:33
xxhimanshu3-Feb-03 0:33 
GeneralRe: access class members from a non class global static function Pin
SPGV3-Feb-03 1:01
SPGV3-Feb-03 1:01 
The case is as below
class A {public cstring mstr;
func();}

static int CompareModes(const void *arg1, const void *arg2 );
A::func()
{
....
qsort ((void *)lpModes, (size_t)cModes, sizeof(LPDDModeInfo), CompareModes);
}

int CompareModes(const void *arg1, const void *arg2)
{
CB *p1, *p2;
p1 = *(CB**)arg1;
p2 = *(CB**)arg2;

CString str1, str2;

str1 = p1->GetValue(mstr);
str2 = p2->GetValue(mstr);
return str1.CompareNoCase(str2);
}
here I need to access mstr in the static func CompareModes
GeneralRe: access class members from a non class global static function Pin
xxhimanshu3-Feb-03 1:19
xxhimanshu3-Feb-03 1:19 
GeneralRe: access class members from a non class global static function Pin
SPGV3-Feb-03 1:34
SPGV3-Feb-03 1:34 
GeneralRe: access class members from a non class global static function Pin
Rage3-Feb-03 1:51
professionalRage3-Feb-03 1:51 
GeneralRe: access class members from a non class global static function Pin
xxhimanshu3-Feb-03 1:57
xxhimanshu3-Feb-03 1:57 
GeneralRe: access class members from a non class global static function Pin
SPGV3-Feb-03 2:11
SPGV3-Feb-03 2:11 
GeneralRe: access class members from a non class global static function Pin
Rage3-Feb-03 2:46
professionalRage3-Feb-03 2:46 
Generalmy programm is not accepting connections Pin
willempipi3-Feb-03 0:07
willempipi3-Feb-03 0:07 
GeneralRe: my programm is not accepting connections Pin
willempipi3-Feb-03 0:24
willempipi3-Feb-03 0:24 
GeneralRe: my programm is not accepting connections Pin
SatyaDY3-Feb-03 0:31
SatyaDY3-Feb-03 0:31 
Generalaccess class members from a non class global static function Pin
Anonymous3-Feb-03 0:06
Anonymous3-Feb-03 0:06 
GeneralRe: access class members from a non class global static function Pin
xxhimanshu3-Feb-03 0:31
xxhimanshu3-Feb-03 0:31 
GeneralRe: access class members from a non class global static function Pin
Abbas_Riazi3-Feb-03 5:29
professionalAbbas_Riazi3-Feb-03 5:29 
Generaliphlpapi and CPing Pin
naradaji2-Feb-03 23:32
naradaji2-Feb-03 23:32 
GeneralRe: iphlpapi and CPing Pin
Abbas_Riazi3-Feb-03 5:33
professionalAbbas_Riazi3-Feb-03 5:33 
GeneralRe: iphlpapi and CPing Pin
naradaji3-Feb-03 23:36
naradaji3-Feb-03 23:36 
GeneralRe: iphlpapi and CPing Pin
Abbas_Riazi4-Feb-03 6:31
professionalAbbas_Riazi4-Feb-03 6:31 
GeneralRe: iphlpapi and CPing Pin
Anonymous4-Feb-03 22:10
Anonymous4-Feb-03 22:10 

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.