|
class MyLogger
{
MyLogger( char*, char*, char*)
{
}
};
#define Logger() (MyLogger tempLogger(__FUNCTION__, __FILE__, __LINE__))
no error on visual c++ 6.0...
NG
|
|
|
|
|
The syntax error only occurs when I try to use the macro. The errors are:
error C2059: syntax error : ')'
error C2146: syntax error : missing ')' before identifier 'tempLogger'
error C3861: 'tempLogger': identifier not found, even with argument-dependent lookup
Hua-Ying
|
|
|
|
|
#include <iostream>
using namespace std;
#define Logger() MyLogger tempLogger(__FUNCTION__, __FILE__, __LINE__)
class MyLogger
{
public:
MyLogger(char *pFunction, char *pFile, long Line)
{
cout<
|
|
|
|
|
Thanks that really does work!
I've always though that argument in a #define were separated by spaces so that it would see 3 arguments there. I guess I was wrong!
|
|
|
|
|
How do i find a control's current x,y coordinates on the window??
|
|
|
|
|
looking here[^] i found that code :
CRect ButtonRect;
GetWindowRect(ButtonRect);
pParent->ScreenToClient(ButtonRect)
reading the sample more in details should help you more...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Use GetClientRect() if you want the coordinates relative to the upper-left of the client area (i.e., left and top are both 0). Use GetWindowRect() if you want the coordinates relative to the upper-left of the screen.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hello All
Can any one suggest free "BMP /ICO collection" downloadable sites for the using in my application.
Thanks for your time
Ravi
|
|
|
|
|
|
I tried and end up with lot of tools to create / modify the images But not really the image collection.
- Ravi
|
|
|
|
|
i cannot do anything for you that way...
there are so many sites... if you can't find at least ont, i give up...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
here is what i get when I type "icon[^]"
are you too lazy to turn on your screen to see what google tells you ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 9:52 Thursday 1st September, 2005
|
|
|
|
|
Thanks for your help....
I found one more site. http://www.glyfx.com/ which gives the BMP / GIF / ICO / PNG of different sizes (16 * 16 / 24 * 24) which can be used directly MFC application.
Thanks for your time
Ravi
|
|
|
|
|
i believe the best place ever for such purpose is %SystemRoot%\System32\mspaint.exe
enjoy...;P
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 10:00 Thursday 1st September, 2005
|
|
|
|
|
|
I'm keen to learn C/C++ and am fairly apt at writing BASIC. Does anyone know of any good free intepreters? I have downloaded Dev-C++ but am wondering if theirs anything better on offer for beginners out there.
Cheers.
°[Halo]°
Project Basilisk
|
|
|
|
|
°[Halo]° wrote:
intepreters
hey dude, C/C++ are compiled languages, far from basic !!!
you should first learn at the basics of the C or the object oriented C++ before trying to "interpret" it...
i advise you this book[^] ; "The C++ Language", from the creator of the C++...
the best reference i've ever read for C++.
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 9:14 Thursday 1st September, 2005
|
|
|
|
|
of course that c++ can be interpeted, please have a look at my other post
|
|
|
|
|
i've seen it, but as i answer before you, i could not see your link before
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
sorry if my post came out rude, it wasn't meant to be that way
|
|
|
|
|
Any language can be interpreted, even machine code (PC Emulators for Gameboy, Arcade machines, palms, etc.).
There is actually an old book that was like "Learn C in 12 days" or something that actually came with a C Interpreter so you could learn C, only run your apps in the IDE but not have to buy a compiler.
You are right though, generally C is not an interpreted language as there is no benefit; it's too low level and you would benefit more from the speed of compiling it and it would most likely be the same speed or maybe even slower than a higher level language (essentially, more moving parts need to be interpreted as opposed to single operation that does more work) (There are other benefits of interpreted langauges which I will talk about in the next paragraph)However with langauges you mention, such as BASIC, which are so high level I don't think it matters if they're interpreted or compiled; they run just as slow!
There is however "Managed" C++ that is essentially compiled to a byte code instead of raw machine code which I would basically consider interpreted. This is done for the purpose of stability so the code cannot crash as well as security since the code can run in what would essentailly be a 'sandbox' that can be controled as to what the application has access to.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
i suspect that what you meant was "c++ compiler". you could also have a look at visual c++ express (http://lab.msdn.microsoft.com/express/visualc/default.aspx).
however, if you really need an interpreter, check following:
CINT: http://root.cern.ch/root/Cint.html
UnderC: http://freshmeat.net/projects/underc/
Ch (not free): http://www.softintegration.com/
off topic: did anyone notice that if you try to add a link with [^] addition, post gets automatically submitted? or is it just me?
|
|
|
|
|
Zdeslav Vojkovic wrote:
did anyone notice that if you try to add a link with [^] addition, post gets automatically submitted? or is it just me?
it's just you what navigator do you use ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Firefox 1.0.6, but i noticed in one post that Paul Watson has similar problems when trying to quote some text. it seems that it goes for other
things also, e.g. when trying to add a smiley through editor toolbar on the page.
-- modified at 9:38 Thursday 1st September, 2005
i think i know what it is: if i turn off greasemonkey extension with cphog script, everything is fine
|
|
|
|