|
Hello,
I tried CORBA, but I (and every other student) didn't like it. You have incredibly much initialization to do and additional servers to run if you want maximum flexibility and scalability.
If it's no problem for your client to integrate the CORBA infrastructure and you can get passed the initialization, everything works like a charm. As far as I know (D)COM, your code with CORBA will look much more cleaner.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Who can help me to add to a title bar a menu( or a dialog ) in a MFC SDI application?
NG
|
|
|
|
|
Hi,
Is it possible to create a macro that would create an instance of a class? I'm trying this but the compiler won't accept it:
#define Logger() (MyLogger tempLogger(__FUNCTION__, __FILE__, __LINE__))
Thanks
Hua-Ying
|
|
|
|
|
|
error C2059: syntax error : ')'
error C2146: syntax error : missing ')' before identifier 'tempLogger'
error C3861: 'tempLogger': identifier not found, even with argument-dependent lookup
|
|
|
|
|
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]
|
|
|
|