Getting the base address (Dynamic Address)
Alright, so lately I've been trying to create a little external 'hack' that forces a certain value.
The problem I'm running into with this is that the address that I wish to edit is in the format "client.dll"+offset, and the eventual address that holds the value I wish to change changes every time I relaunch the program.
How can I get my C++ program that I am writing to read and find the address that client.dll+offset points to?
I am currently using cheat engine to find the address.
Note: If I use the value that cheat engine gives me (54FF1660) in my C++ program, I can read and write to the address fine, but the address changes every time I start a new session.
The image attached shows the addresses.

The problem I'm running into with this is that the address that I wish to edit is in the format "client.dll"+offset, and the eventual address that holds the value I wish to change changes every time I relaunch the program.
How can I get my C++ program that I am writing to read and find the address that client.dll+offset points to?
I am currently using cheat engine to find the address.
Note: If I use the value that cheat engine gives me (54FF1660) in my C++ program, I can read and write to the address fine, but the address changes every time I start a new session.
The image attached shows the addresses.

iagnostics::ProcessModule ^modulex in PP->Modules)