Question: When rendering a form field It adds a class that messes up my styling.. All I want to do is remove the class when rendereing the field, but how can I do that? I know that you can set up classes for fields, but I need to remove a default class.

I render like this:

```
{{ form_widget(form.plainPassword }}

```

The only way I can do this now, is go to the vendor `bootstrap_3_horizontal_layout` file and remove the line:

```
{% block form_group_class -%}
    col-sm-10 ///remove this
{%- endblock form_group_class %}

```

However that is not the solution, because you cant manually edit vendor files.. What are my options? How to achieve what I need?

Answer: 
You code is a good start, but you are missing a few things.

First is, as you mentioned, resolving imports. What you say looks right, but I've never done this manually like you so I don't know the details. It would be possible for a program to work without resolving imports, but only if you don't use any imported function. Here your code fails because it tries to access an import that hasn't been resolved ; the function pointer contains `0x4242` instead of the resolved address.

The second thing is relocation. To make it simple, PE executable are position independent (can work at any base address), even if the code isn't. To make this work, the file contains a relocation table that is used to adjust all the data that are dependent on the image location. This point is optional if you can load at the preferred address (`pINH->OptionalHeader.ImageBase`), but it means that if you use the relocation table, you can load your image anywhere, and you can omit the first parameter of `VirtualAlloc` (and remove the related checks).

You can find more info on import resolving and relocation in [this article](https://msdn.microsoft.com/en-us/library/ms809762.aspx), if you didn't find it already. There is plenty of other resource you can find. 

Also, as mentioned in marom's answer, your program is basically what `LoadLibrary` do, so in a more practical context, you would use this function instead.
If you want to load an arbitrary code (rather vague expression but let's use it) then you can make a DLL. Then, at run time you can get LoadLibary to load it and GetProcAddress to get a function pointer to the functions exported by the DLL.

I think this is the closest thing you can do in C/C++ to what you describe.