|
I sometimes notice some guys disclose something on their blog -- MSDN blog.
But for RTTI I find nothing.
regards,
George
|
|
|
|
|
George_George wrote: I have searched for RTTI tutorials for 15 minutes, but find none.
Wow 15 minutes! I suppose you want a medal?
I spent several hours over several days looking for one specific thing just this week.
led mike
|
|
|
|
|
led mike wrote: go site by site, page by page!
led mike wrote: I spent several hours over several days looking for one specific thing just this week.
I see a correlation.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What are you looking for? Free laptop? For hours to find a free one, it worth.
regards,
George
|
|
|
|
|
Hi,
I have an MFC dialog that I have changed as follows:
- no title bar
- no system menu
- no border
- OnCtlColor produces a white background
The dialog is a notification dialog box that appears in the lower-right corner of the user's screen. I want to have a light blue border 1-3 pixels wide surrounding this window (on the interior edge is fine). How can I create this programatically? I don't use drawing/color functions much...
Thanks In Advance
|
|
|
|
|
Override OnPaint() and draw lines.
|
|
|
|
|
How about overriding OnNcPaint ?
This signature was proudly tested on animals.
|
|
|
|
|
Can u give me some link or code
|
|
|
|
|
Code snippet for drawing blue rectangle with 3 pixel width.
void CDialogDlg::OnPaint()
{
CPaintDC dc(this);
LOGPEN LogPen = { 0 };
LogPen.lopnColor = RGB( 0,0,255 );
LogPen.lopnStyle = PS_SOLID;
POINT ptWidth;
ptWidth.x = 3;
LogPen.lopnWidth = ptWidth;
CPen BluePen;
BluePen.CreatePenIndirect( &LogPen );
HPEN OldPen = (HPEN) dc.SelectObject( (HPEN)BluePen.GetSafeHandle());
RECT rect;
GetClientRect( &rect );
dc.Rectangle( &rect );
dc.SelectObject( OldPen );
}
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
But its not painting the border of mydialog in blue colour nor with3 pixels thickness.
I have an MFC dialog that I have changed as follows:
- no title bar
- no system menu
- no border
- OnCtlColor produces a white background
The dialog is a notification dialog box that appears in the lower-right corner of the user's screen. I want to have a light blue border 1-3 pixels wide surrounding this window (on the interior edge is fine). How can I create this programatically?
|
|
|
|
|
void CMyDialog::OnPaint()
{
CPaintDC dc(this);
CPen BluePen(PS_SOLID, 3, RGB(0x00,0x00,0xFF));
CPen *OldPen = dc.SelectObject(&BluePen);
CRect rect;
GetClientRect(&rect);
dc.Rectangle(&rect);
dc.SelectObject(OldPen);
}
Make sure you add a ON_WM_PAINT() entry in the dialog class' message map.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
i am new to use the PIPE and client server application.
I have been able to communicate the IPC for processes that are on the same computer using named pipe.
But i am clueless, how to obtain it for the communication between two different computer OR client - server application.
If any example or link is available, please provide.
Thanks
ND
|
|
|
|
|
Is this link helpful.
http://www.codeguru.com/cpp/i-n/network/namedpipes/article.php/c2475
|
|
|
|
|
The only difference is the pipe name.
The client needs to connect to a pipe name with the
server name included:
\\servername\pipe\pipename
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks , It works
But now i am finding the new issue.
I am able to connect only one client to the server.because pipe is opened by one client so another client is not able to connect it
I am connect the multiple client withe same server. how to achive it?
Thanks again
Navdeep
|
|
|
|
|
|
Hi All,
Iam faced with this problem.
1. I have an application that should be capable of handling two usb mice. Let me elaborate.Two usb mice (or mice
like devices) will be connected to my system (windows xp) obviously through USB ports. I should be able to assign
or say that the mouse connected to this (one fixed) physical USB port is my left mouse and the mouse connected to
another (fixed one) USB port is my right mouse. Next, I should be able to distinguish between the events generated
by both the mice.
2. I have tried Raw Input Api whereby Iam able to distinguish between mice inputs. But Iam not able to fix my mice as
left and right. I tried to distinguish the mice using usb port ids. But whenever I plug out and reinsert my mouse,
the port id keeps changing (is this observation correct?). Also, for this requirement, I should be able to say
before hand what is the port number of my left mouse and my right mouse.
Any help on this would be highly appreciated.
Kamalesh Narayan Nair
|
|
|
|
|
You could distinguish the two mice from each other by their serial numbers, which should be unique, and persistent, so that unplugging devices won't be a problem. I couldn't find anything in my (limited) google searches but you should try googling something along the lines of "get usb device serial number"
good luck
|
|
|
|
|
Hi,
I have exported dll from dll. I load dll using loadlibrary api. Using GetProceAddress I can get exported function pointer. But how can I use exported dll. __declspec(dllimport) only works when I link through .lib but in LoadLibrary?
Thanks
|
|
|
|
|
manish rastogi wrote: Using GetProceAddress I can get exported function pointer. But how can I use exported dll.
This way [^].
manish rastogi wrote: __declspec(dllimport) only works when I link through .lib but in LoadLibrary?
You don't need _declspec(dllimport) when you use explicit DLL linking (i.e. LoadLibrary ). Actually, when you use explicit DLL linking, you don't need the library header file at all.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sir,
Thanks for your quick response. I want to import data. Suppose I exported data from dll using this way
__declspec(dllexport) long g_lValue. How can I access it using explicit dll linking.
Thanks
|
|
|
|
|
Why don't you (write and) export the accessors (i.e. get /set functions) of your integer variable?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sir,
I can do this by writing get/set functions. I want to know this only It is possible or not.
|
|
|
|
|
manish rastogi wrote: I want to know this only It is possible or not.
Yes, it is possible.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|