How To Use an Offset?

How do I add an offset to an address?
0x79C500 is the Address
0xA00 is the Offset
2030000 is the Value

1
2
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
    *(DWORD*)((INT)+0x79C500) = 2030000;

I already have the address and the value set up and it works fine. How do I add an offset to my address?
When I tried this:
1
2
3
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
    *(DWORD*)(
    *(DWORD*)((INT)+0x79C500)+0xA00) = 2030000;

My project crashes.
Edit:
I don't know why it was crashing, but I took a code from my old project (the code was exactly the same) and copy and pasted it to my project and it worked.
Last edited on
Topic archived. No new replies allowed.