Box2D not simulating?

I have been struggling with this problem for a few days, but I can't seem to find the reason.
I've created a container class for the Box2D world and a "Map" class that is redundant but haven't gotten around to merging it (wanted to get Box2D to work first)
I've been trying to get a body to move in every way possible but it just won't....
Where I am applying the force:
Code:
void Box2D_Handler::addbforce(long id, double x, double y) { // x, y and id are not broken
   bodies[id]->ApplyForce(b2Vec2(x, y), bodies[id]->GetWorldCenter());
   //Guess what time it is... 3.2.1. DEBUG TIME!
   //bodies[id]->SetAwake(true);
   //bodies[id]->SetLinearVelocity(b2Vec2(x, y));
}


Where I do the step():
Code:
void Map::updateall() {
   long i;
   Object *crt;
   for(i = 0, crt = this->x; i < this->nrobj; i++) {
      crt->update();
      crt = crt->next;
   }
   _std_hand.world->Step(_std_hand.timestep, _std_hand.velIt, _std_hand.pozIt); //timestep, velIt and pozIt are not broken
   for(i = 0, crt = this->x; i < this->nrobj; i++) {
      crt->checkUpdate();
      crt = crt->next;
   }
}


Creating the body:

Code:
void Box2D_Handler::addbody(double x, double y, double sizex, double sizey, long &id) {
   b2BodyDef bodyDef;
   //bodyDef.allowsleep = true;
   bodyDef.awake = true;
   bodyDef.type = b2_dynamicBody;
   bodyDef.position.Set(x, y);
   b2Body *body = world->CreateBody(&bodyDef);
   b2PolygonShape dynamicBox;
   dynamicBox.SetAsBox(sizex, sizey);
   b2FixtureDef fixtureDef;
   fixtureDef.shape = &dynamicBox;
   fixtureDef.density = 1.0f;
   fixtureDef.friction = 0.0f;
   body->CreateFixture(&fixtureDef);
   id = bodies.size();
   bodies.push_back(body);
}


I am really confused. Can someone help me?
This is really hard to follow. Firstly you'll need to tell us what result you get with this. Then try breaking it down so we can see just the Box2D parts, rather than having to surmise all kinds of unknown info about your custom classes.
The result is that nothing happens.
Also, I will try giving more info once I get on my computer
Box2D stuff only:

Code:
//Initializing
   b2Vec2 grav(gravityx, gravityy);
   world = new b2World(grav);
   world->SetAllowSleeping(dosleep);
   timestep = timestepp;
   velIt = velocityIterations;
   pozIt = positionIterations;
       b2BodyDef bodyDef;
   bodyDef.allowsleep = true;
   bodyDef.awake = true;
   bodyDef.type = b2_dynamicBody;
   bodyDef.position.Set(x, y);
   b2Body *body = world->CreateBody(&bodyDef);
   b2PolygonShape dynamicBox;
   dynamicBox.SetAsBox(sizex, sizey);
   b2FixtureDef fixtureDef;
   fixtureDef.shape = &dynamicBox;
   fixtureDef.density = 1.0f;
   fixtureDef.friction = 0.0f;
   body->CreateFixture(&fixtureDef);
   id = bodies.size();
   bodies.push_back(body); //I'm keeping the body in a STL vector
        while(true) {
      for(i = 0, crt = this->x; i < this->nrobj; i++) {
         bodies[id]->ApplyForce(b2Vec2(input_x, input_y), bodies[id]->GetWorldCenter()); //input_x and input_y are taken from keyboard inputs
         crt = crt->next;
      }
      world->Step(_std_hand.timestep, _std_hand.velIt, _std_hand.pozIt);
      for(i = 0, crt = this->x; i < this->nrobj; i++) {
         //Get all new positions for printing
         crt = crt->next;
      }
        }


Edit: maybe I should post what values I am initializing the world with
gravity_x: 0
gravity_y: 0
timestep: 1.0f / 30 (also tried 30)
dosleep: true
velocityIterations: 2
positionIterations: 3
Try
1 / 30.0f
or
1 / (float)30
for the timestep.
Still nothing :/
When you say nothing happens, how are you determining that? Are you looking at the debug draw output, or logging GetPosition() of the body, or something else...?
In both nothing happens. The position just stays the same

Code:
      position = _std_hand.bodies[0]->GetPosition();
      printf("%lf %lf\n%lf %lf\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", position.x, position.y);
Try logging:
- the actual values you are giving to ApplyForce
- the actual values you are giving to Step
- the pointer of the body you are applying the force to
- the pointer of the body you are checking with GetPosition()

Those last two, I am just wondering if maybe your applying the force to one body, and checking a different one.
I've been watching all of those and all were ok.. I've even replaced the variables I'm giving to ApplyForce with constants..

Original thread: https://box2d.org/forum/viewtopic.php?t=9142