ProcMem errors?

Posts 1–11 of 11 · Page 1 of 1
ProcMem errors?
Hello,

So i'm getting some errors when compiling my program, maybe somebody knows fixes ?

Below is what i get when compiling, can't post links yet

pastebin . com /ucLaJ1k4

Fixed issue, please set as resolved or close
post your code so we can help you
ProcMem* Mem; or ProcMem* Mem = new ProcMem(); in your main.cpp
#include "stdafx.h"

#include "ProcMem.h"
#include <iostream>
#include <windows.h>
#include <TlHelp32.h> // Memory reading

using namespace std;

ProcMem * Caliber; // Shortcut

int main()
{
Caliber.Process("csgo.exe"); // Choosing the process
DWORD ClientDLL = Caliber.Module("client.dll");
}

#pragma once

I was just testing to see if i setup procmem correctly then i was gonna do the rest but the build failed when testing if ProcMem was alright.

Severity Code Description Project File Line Suppression State
Error C2040 'Caliber': 'int' differs in levels of indirection from 'ProcMem *' CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 14
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 14
Error (active) expression must have class type CaliberMPGHUpdate d:\Coding Projects\CaliberMPGH\CaliberMPGHUpdate\CaliberMPGH Update.cpp 19
Error (active) expression must have class type CaliberMPGHUpdate d:\Coding Projects\CaliberMPGH\CaliberMPGHUpdate\CaliberMPGH Update.cpp 18
Error (active) this declaration has no storage class or type specifier CaliberMPGHUpdate d:\Coding Projects\CaliberMPGH\CaliberMPGHUpdate\CaliberMPGH Update.cpp 14
Error C2440 'initializing': cannot convert from 'ProcMem *' to 'int' CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 14
Error C2228 left of '.Process' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 18
Error C2228 left of '.Module' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 19
The problem is most likely occuring because you probably don't have the .cpp file of ProcMem but only the header file.
Quote Originally Posted by WasserEsser View Post
The problem is most likely occuring because you probably don't have the .cpp file of ProcMem but only the header file.
Added ProcMem.cpp now however still get errors with build.

Severity Code Description Project File Line Suppression State
Error C2228 left of '.Module' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 18
Error C2228 left of '.Process' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 17
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\procmem.cpp 215

Even when adding the header i still get the error for some reason.
Quote Originally Posted by calibercheats View Post
Added ProcMem.cpp now however still get errors with build.

Severity Code Description Project File Line Suppression State
Error C2228 left of '.Module' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 18
Error C2228 left of '.Process' must have class/struct/union CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\calibermpgh update.cpp 17
Error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? CaliberMPGHUpdate d:\coding projects\calibermpgh\calibermpghupdate\procmem.cpp 215

Even when adding the header i still get the error for some reason.
Post your update.cpp. Also disable precompiled headers lol.
Quote Originally Posted by WasserEsser View Post
Post your update.cpp. Also disable precompiled headers lol.
Fixed all, thanks for the help. Mainly me just being stupid

- Please close thread.
If u are using ProcMem* Caliber, you must now use -> operator not ' . '
Quote Originally Posted by armez47 View Post
If u are using ProcMem* Caliber, you must now use -> operator not ' . '
Using a pointer is completely unnecessary in this case. There is no need to put the class on the heap, it will only create a memory leak.
/Solved & closed.
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us