1> MemPatch.cpp
1>MemPatch.cpp(4): error C2146: syntax error : missing ')' before identifier 'addressedMemory'
1>MemPatch.cpp(4): error C2182: 'initWithAddressedMemory' : illegal use of type 'void'
1>MemPatch.cpp(4): error C2470: 'mempatch<_Ty>::initWithAddressedMemory' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(4): error C2072: 'mempatch<_Ty>::initWithAddressedMemory' : initialization of a function
1>MemPatch.cpp(4): error C2059: syntax error : ')'
1>MemPatch.cpp(12): error C2065: 'referencedObject' : undeclared identifier
1>MemPatch.cpp(12): error C2062: type 'bool' unexpected
1>MemPatch.cpp(19): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(19): error C2447: '{' : missing function header (old-style formal list?)
1>MemPatch.cpp(24): error C2146: syntax error : missing ')' before identifier 'value'
1>MemPatch.cpp(24): error C2182: 'setValue' : illegal use of type 'void'
1>MemPatch.cpp(24): error C2470: 'mempatch<_Ty>::setValue' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(24): error C2072: 'mempatch<_Ty>::setValue' : initialization of a function
1>MemPatch.cpp(24): error C2059: syntax error : ')'
1>MemPatch.cpp(33): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(33): error C2447: '{' : missing function header (old-style formal list?)
1> MemPatch.cpp
1>MemPatch.cpp(4): error C2146: syntax error : missing ')' before identifier 'addressedMemory'
1>MemPatch.cpp(4): error C2182: 'initWithAddressedMemory' : illegal use of type 'void'
1>MemPatch.cpp(4): error C2470: 'mempatch<_Ty>::initWithAddressedMemory' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(4): error C2072: 'mempatch<_Ty>::initWithAddressedMemory' : initialization of a function
1>MemPatch.cpp(4): error C2059: syntax error : ')'
1>MemPatch.cpp(12): error C2065: 'referencedObject' : undeclared identifier
1>MemPatch.cpp(12): error C2062: type 'bool' unexpected
1>MemPatch.cpp(19): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(19): error C2447: '{' : missing function header (old-style formal list?)
1>MemPatch.cpp(24): error C2146: syntax error : missing ')' before identifier 'value'
1>MemPatch.cpp(24): error C2182: 'setValue' : illegal use of type 'void'
1>MemPatch.cpp(24): error C2470: 'mempatch<_Ty>::setValue' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(24): error C2072: 'mempatch<_Ty>::setValue' : initialization of a function
1>MemPatch.cpp(24): error C2059: syntax error : ')'
1>MemPatch.cpp(33): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(33): error C2447: '{' : missing function header (old-style formal list?)
is not to copy and paste it will be seen that you have no idea of just c++ learn c + + the source work perfect.
1> MemPatch.cpp
1>MemPatch.cpp(4): error C2146: syntax error : missing ')' before identifier 'addressedMemory'
1>MemPatch.cpp(4): error C2182: 'initWithAddressedMemory' : illegal use of type 'void'
1>MemPatch.cpp(4): error C2470: 'mempatch<_Ty>::initWithAddressedMemory' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(4): error C2072: 'mempatch<_Ty>::initWithAddressedMemory' : initialization of a function
1>MemPatch.cpp(4): error C2059: syntax error : ')'
1>MemPatch.cpp(12): error C2065: 'referencedObject' : undeclared identifier
1>MemPatch.cpp(12): error C2062: type 'bool' unexpected
1>MemPatch.cpp(19): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(19): error C2447: '{' : missing function header (old-style formal list?)
1>MemPatch.cpp(24): error C2146: syntax error : missing ')' before identifier 'value'
1>MemPatch.cpp(24): error C2182: 'setValue' : illegal use of type 'void'
1>MemPatch.cpp(24): error C2470: 'mempatch<_Ty>::setValue' : looks like a function definition, but there is no parameter list; skipping apparent body
1>MemPatch.cpp(24): error C2072: 'mempatch<_Ty>::setValue' : initialization of a function
1>MemPatch.cpp(24): error C2059: syntax error : ')'
1>MemPatch.cpp(33): error C2143: syntax error : missing ';' before '{'
1>MemPatch.cpp(33): error C2447: '{' : missing function header (old-style formal list?)
Quote:
Originally Posted by ~ExoduS~*
is not to copy and paste it will be seen that you have no idea of just c++ learn c + + the source work perfect.
I re-compiled this just for testing purposes in a new project with default settings in the newest version of Visual Studio (VS2012 Professional, Student Edition) and it works like a charm. Just created the two files, copied the code into them and after that I wrote some code in the main function to test it.
Basically the source is taken out of some old code in my project, but I removed some enhancements to it which would not be needed anyways. I don't think any of you guys will need initWithReferencedObject anyways, but it is the only extension I decided not to delete from the class (as it's basic stuff anyways).
If you guys prefer using constructor code you may also rename initWithAddressedMemory to mempatch (to make it the public constructor with 2 arguments), delete initWithReferencedObject and then add an empty destructor ~mempatch.
WarRock EU - Code Snippets 07/12/2012 - WarRock - 7490 Replies Hi Leute,
in diesem Thread könnt ihr:
-> Nach Sourcecodes fragen(Beispiel unten)
-> Eure Sourcecodes posten(Wenn sie nicht von euch sind mit Credits!)
-> Fragen ob eure Source evtl. einen Fehler hat
-> Fragen was welcher Fehler bedeuted
-> Sourcecodes entnehmen(Bitte beim Release dann Credits angeben!)