I should probably post those tutorial in the C++ section.
But since everyone is to lazy to go there including myself i just post it here.
#Lesson 1 - Synthaxes
What is a synthax?
- A synthax is simply a character ( "{" and "}" ).
- Often when you get an error it's because you have misplaced or have fergotten a synthax, which can be really annoying.
We start of with a new project for this (WIN32 > Dll > Empty Project).
We write our basic function and include our windows header.
As you can see i marked "CODEBLOCK 1", keep the code underneath it in mind.
Code:
//CODEBLOCK 1
*(long*)(dwExamplePtr + 0x44C) = 3;
This code resprisents Visual Premium, ofcourse this is just an example and will not work.
So now we want to add another code.
Let's pretend this is our Premium Time.
Code:
{
*(long*)(dwExamplePtr + 0x450) = 3600;
}
I see alot of people do this, WHY?
This is like standing in front of a door and sticking in the key to unlock the door, once it's unlocked lock it again to then unlock it AGAIN.
It's not needed and a waste of time.
Those synthaxes are completely useless.
Let's be honest, this code is alot nicer.
It's not a problem with small codes, but once you get a huge code you WILL get into trouble doing this.
Any questions? ASK THEM!