Re: Buffer as a parameter
Quote:
I keep getting a syntax error
It never occurred to you to post that error ?
Also, you are using C#, so you are in the wrong section. This is for C++.
Re: Buffer as a parameter
No, I am using Visual C++ Express Edition 2008. And the error is:
Code:
error C2061: syntax error : identifier 'BufferedGraphics'
Re: Buffer as a parameter
Quote:
No, I am using Visual C++ Express Edition 2008
... but you are writing your code not in C++.
Code:
void Muestrate(BufferedGraphics ^buffer);
the ^ is not C++.
Re: Buffer as a parameter
It's MSC++/CLI so this thread should be in the managed C++ forum.
Re: Buffer as a parameter
Quote:
Originally Posted by
limpit
No, I am using Visual C++ Express Edition 2008.
Please know the tools that you're using.
You are using something called "Managed C++". Managed C++ is a superset of C++, using inventions that are not "true" C++. That "^" character is nonsensical to the "true" C++ language in the context that you're using it.
In true C++, the "^" character is an exclusive-or. So to this forum, you are passing a paramter that is an exclusive-or, so this makes it non-sensical to this group.
For Managed C++, that symbol does make sense, but this is not the Managed C++ forum.
Regards,
Paul McKenzie