I am trying to copy the value in bar into the integer foo.
This is what I have so far. When I run it I get a different hex value. Any help would be great.
int main()
{
    string bar = "0x00EB0C62";
    int foo = (int)bar;
    cout << hex << foo;
    ChangeMemVal("pinball.exe", (void*) foo, "100000", 4);
    return 0;
}
So the output should be 0x00EB0C62.