Unimportant 18 Junior Poster

Before I attempt to read about COM communication with IE, is there a reason you can't get the webpage instead? Must it involve an active user session? (Assuming java alters the div or something)

It seems more simplistic to open a socket and perform a GET request yourself.

Additionally, I see a lot of redundant patterns in the above code.
Is it unreasonable to create a basic wrapper class for those patterns?

Edit: Example

bool success( (ISuperParent*)COM_ptr, (void*)hRes )
{
  if( !SUCCEEDED(hRes) || !COM_ptr )
  {
    COM_ptr->Release(); // (ISuperParent*) must contain this prototype
    _Error(8);
    _hResError(hRes);
    return false;
  }
  return true;
}

This pattern occurs like 5 or 10 times...

Unimportant 18 Junior Poster
    $files = array(  );
    $dir = opendir( $name );
    while( false !== ($file = readdir($dir)) )
    {
      if( $file != '.' && $file != '..' )
      {
        $pop = explode('.',$file);
        $ext = "";
        if(count($pop)>1) $ext = array_pop($pop);
        $files[implode('.',$pop)][] = $ext;
      }
    }
    closedir($dir);
    print_r($files);
Unimportant 18 Junior Poster

Don't sleep at all.

Unimportant 18 Junior Poster
default:
cout << "\nYou have made an invalid choice." << endl;
return 0;
Unimportant 18 Junior Poster

Welcome. =)

Unimportant 18 Junior Poster
switch(...) { }
// The switch ends
while( expr ) ; // Do nothing
// Forever...
Unimportant 18 Junior Poster

Nah,
to begin with, you're trying to modify a const string,

const char * str = "Hello world";
str[0] = "J"; // This is totally absurd.

You actually want a block of memory just for pointers...

    char ** strings;
    int number_of_strings( 8 ), length_of_string( 260 );
    strings = (char**)malloc( number_of_strings * sizeof( char * ) ); 
    for(int i=0;i<8;++i) strings[i] = (char*)malloc( length_of_string );
    // Now you have strings[8][260]
    strcpy( strings[0], "Hello" );
    strcpy( strings[1], "World" );
    // Now strings[0] and strings[1] are valid

    // How you pass things doesn't matter, don't be absurd
    void acceptStrings( DWORD strings )
    {
      char ** passed( (char**)strings );
      printf( "%s %s", passed[0], passed[1] );
    } // This is vaild. A pointer is a regular number.
    acceptStrings( (DWORD)&strings );

    // Clean up the memory when you're finished.
    for(int i=0;i<8;++i) free( *(strings+i) );
    free( strings );
Unimportant 18 Junior Poster

Is the file which contains the form the same file as the script which processes uploads?

Unimportant 18 Junior Poster
void getFileNames( char ** fileNames ); // This is a function which receives a pointer to char pointer
const char * someFile = "Hello"; // this is a const char pointer to the start of Hello
const char ** someFiles = { "Hello", "World" }; // This is a const char pointer to an array of const char pointers
char ** fileNames = new char *[8]; // This is 8 char pointers
for(int i=0;i<8;++i) fileNames[i] = new char[MAX_LEN] ; // Each char pointer is given its own pool of memory
sprintf( fileNames[0], "%s.jpg", "image" ); // Write to the first and
sprintf( fileNames[1], "%s.jpg", "8184859" ); // second char pointers
getFileNames( fileNames ); // Pass the pointer to pointers to getFileNames
for(int i=0;i<8;++i) delete [] *(fileNames + i); // Delete strings
delete [] fileNames; // Delete pointers to strings
Unimportant 18 Junior Poster

http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/boot.html

perhaps I'm not allowed to omit http://

Unimportant 18 Junior Poster
Unimportant 18 Junior Poster

On Ln95, you're setting last_id to last_insert_id when last_insert_id is the query for INSERT INTO directives

Unimportant 18 Junior Poster

You have no form action.
<form action=

Unimportant 18 Junior Poster

You have no form action.

Unimportant 18 Junior Poster

$uploadDir . $fName will result in "/srv/www/htdocs/diruploadfileName
You're missing a forward slash.
Otherwise, you already stated that $_FILES is empty, therefor the entire script will fail.
You should include the <form> you use to submit the file [plain HTML]

Unimportant 18 Junior Poster

Can you verify that $_POST['shirtnumber'] and $_GET['ID'] are real?
What happens if you echo them?

Unimportant 18 Junior Poster

It's better if you include a sample of the HTML you use to submit files, along with the .php file which receives that submission.

Especially considering you're confident about file permissions.

Unimportant 18 Junior Poster

Sure, assuming you're allowed to execute the compiler.

Unimportant 18 Junior Poster

$data = "UPDATE crew SET shirtnumber=$_POST['shirtnumber'] WHERE ID=$_GET['ID']";

Unimportant 18 Junior Poster

if "-s" in foldername:
???

Unimportant 18 Junior Poster

The easiest way to approach this is with sprintf

char buf[MAX_LEN];
sprintf( buf, "%s\-%s", &s[0], &s[3] );

You can also memcpy if you have enough space
[ Assuming s[] is fully initialized ( s[260] = { 0 }; ) ]

  char tmp[3];
  memcpy( tmp, &s[3], 3 );
  memcpy( &s[4], tmp, 3 );
  s[3] = '-';
Unimportant 18 Junior Poster

I thought that this summarization of the homophonic substitution cipher was both simple and provided a thorough explanation of the underlying mechanics.

Unimportant 18 Junior Poster
printf("%d", expr);
printf("UINT:\t%u\tSYMBOL:%s\r\n", expr1, expr2);
// return type of expr, when evaluated, must match symbolic type given to printf ("%u, %s")
Unimportant 18 Junior Poster

Name at that moment is a NULL pointer.

Unimportant 18 Junior Poster

If the position remains constant after it is found, you could always image search the screen.

So pretend you have 3 surfaces (shapes).
1) the screen (rect)
2) some comparable, constant part of health bar image (rect)
3) a rectangle of equal dimension to (2), to fill in iteration

read (2) from .image memory
for each step size in dimension of (1),
sample spatial position as (3),
return true if equal to (2)
else next spatial iterator

It helps to have a simple expression of the shape in linear format in mind.
For example,
array[100] and array[10][10] are logically equivilant.
array[ y * width + x ] == array[x][y]

Once you find the image, save its position.
That way, you don't have to search for it unless the result is invalid.

Unimportant 18 Junior Poster

Can you explain the nature of getpixel?
Are you able to read the memory of the executable in real time?

Unimportant 18 Junior Poster

You'll want to start with the PHP manual.

Here is the basic document regarding sessions.
This is the entire sessions document tree.
A specific document about the container $_SESSION[].

Unimportant 18 Junior Poster

I told you how to fix it.

Unimportant 18 Junior Poster

It may be in your best interest to add a default constructor.
Node::Node() : frequency(0), left(NULL), right(NULL), letter(0) { }

void traverse(Node * node)
{ // NULL pointers equal false
  if(node)
  { // This may not output in the order you expect.
    cout << node->frequency << endl;
    traverse(node->left);
    traverse(node->right);
  }
}
Unimportant 18 Junior Poster

If lvData.SelectedItems.Count < 1 Then Exit Sub

Unimportant 18 Junior Poster
// How about a relative position change?
bool changeLevel( int velocity )
{ // It may simply your problem
  currentFloorNum += velocity;
  cout << "You are on floor number " << currentFloorNum << "\r\n";
  return velocity;
} // changeLevel(3); changeLevel(-2); changeLevel(1);
Unimportant 18 Junior Poster
// This is a regular array of 8 std::string objects
std::string lineData[8]; // You could use a different object string, too

// If you don't want to use the STL classes, then you'll need to make
// an array of char *
char ** lineData( new char *[8] );
lineData[0] = new char[MAX_LEN];
delete [] *(lineData + 0); // *(lineData + 1) ... *(lineData + (SZ-1))
delete [] lineData;

// Since this is such a tiny amount of data on average,
// in this case, only 2 - 8 columns, you could use the stack.
char lineData[8][MAX_LEN]; // and that's totally fine.
Unimportant 18 Junior Poster
class Hero:
  rope = false
  batteries = false
  radio = false
  room = "start"

  def move(self, dest):
    # define room change
  def get(self, item):
    # get item by symbol (flag true)
  # if batteries && radio then (OK to call for backup)
robotakid commented: Could you please explain that a bit more? I don't reakky get it. +0
Unimportant 18 Junior Poster

Why not getline by line?
So a line returns, "111 Guru Singh" ;) \r\n
Then delimit with ' ', however you want.
Store the results in an array.

std::string lineData[8]
std::vector<std::string> lineData;

Access them in any sane order.
For example,

lineData[0]              //   -> This is the number.
lineData[1, 2, 3, ...]   //   -> are parts of a name.
lineData[...] == ""      //   -> the array is finished.
Unimportant 18 Junior Poster

Use MSDN for such simple query.

Unimportant 18 Junior Poster
dec counter
cmp 0,counter
jz resetCounter
Unimportant 18 Junior Poster

Check in the textbook your teacher assigned to you for this class.

Unimportant 18 Junior Poster

$settings = mysql_query ('select * from settings') or die('This seems to be your problem');

Unimportant 18 Junior Poster

Compare tm_sec relative to each other

Unimportant 18 Junior Poster

Create a file called "icon.rc"
Add the following line to it.
id ICON "\relative\or\abs\path\icon.ico"

MSDN document tree regarding Resource Files
MSDN document tree on the usage of icons

I'm assuming you're compiling for windows, but you haven't actually made that clear.
It will vary by operating system.

Unimportant 18 Junior Poster

You'll want to use a resource editor,
In MSVC, Add -> Resource -> Icon -> New

Unimportant 18 Junior Poster

The language you use does not change HTTP packet syntax.
I have no idea how successful (or unsuccessful) you have been in reaching your objective.

If you have a specific question, ask it and include relevant code samples.

Unimportant 18 Junior Poster

Looks like it compiles in C++, grats, you're done.

Unimportant 18 Junior Poster

In my observation, you have no function which remotely attempts to search for price data.

Unimportant 18 Junior Poster

What happens when you get rid of every alert except alert2?

Unimportant 18 Junior Poster

$_SESSION[uname] on line 98 should be $_SESSION['uname']

mysql_query("UPDATE members SET hits_unique=hits_unique+1,hits_visitor=hits_visitor+1 WHERE userid=<? echo $referid; ?> ");

should be

mysql_query("UPDATE members SET hits_unique=hits_unique+1,hits_visitor=hits_visitor+1 WHERE userid=$referid;");

Unimportant 18 Junior Poster

You have 19 activities but you're trying to access the 20th one, which crashes your script.
Counting starts from 0.

Also, feel free to increment x outside of the if statement, since you increment it either way.

if (choice == "1")
  theirChoices.push(activityName[x]);
++x;
aVar++ commented: Fixed it now, thanks alot! +3
Unimportant 18 Junior Poster

WC_Cart::get_fees() is undefined.
You'll have to write the function.

Unimportant 18 Junior Poster

Are you trying to do this?

if( isset( $_SESSION['alogin'] ) )

Unimportant 18 Junior Poster

For the purpose of understanding someone else's code, you can essentially ignore the register keyword altogether. The compiler itself probably does it better anyway.