R
Rob Smeets
Hi all,
I have the following problem:
I have to revise a c++ dll. And i'm new to c++.
I have to change a function, but i cannot change it's structure.
I want to check the parameters and act according to those parameters.
I've tried several ways to resolve it, but without success.
Could anybody help? Thanks in advance.
Rob Smeets
SomeFunction(const char** pParameters)
{
int i;
bool NTLOGIN;
for (i = 0;pParameters != (char*) 0 && pParameters[i+1] != (char*) 0;i += 2)
{
char* key = pParameters;
char* value = pParameters[i+1];
if key == "ntlogin" // this comparison is never true
{ if value == "TRUE" // this comparison is never true
{
NTLOGIN = TRUE; // this bool is never True
}
}
}
}
I have the following problem:
I have to revise a c++ dll. And i'm new to c++.
I have to change a function, but i cannot change it's structure.
I want to check the parameters and act according to those parameters.
I've tried several ways to resolve it, but without success.
Could anybody help? Thanks in advance.
Rob Smeets
SomeFunction(const char** pParameters)
{
int i;
bool NTLOGIN;
for (i = 0;pParameters != (char*) 0 && pParameters[i+1] != (char*) 0;i += 2)
{
char* key = pParameters;
char* value = pParameters[i+1];
if key == "ntlogin" // this comparison is never true
{ if value == "TRUE" // this comparison is never true
{
NTLOGIN = TRUE; // this bool is never True
}
}
}
}