|
By using Winsock, 2 network cards in a single PC connected through cross over cable, is it possible to do file transfering using these 2 network cards? I would like to force the file transfering from network card #1 to network card #2.
Thanks.
|
|
|
|
|
I have not tried it, but I think you could assign different IP addresses for use with each of the cards? My guess would be to run one application and bind it to one IP address and run another application and bind it to the other IP address, and then there should be no problem.
this is this.
|
|
|
|
|
Hi friends
i have a windows service which is updating time data in a file (like 01:20). When I change system time in Windows Date and Time Property , the timing changes are reflected in the file by my service. But I change the time zone tab, the modified time it is not reflected in the file by my service. Windows Time is changed in SysTray icon. Why is not changed in my service ? i use localtime()
by shadrach
-- modified at 6:04 Tuesday 21st February, 2006
|
|
|
|
|
I think it is because the service is independent of the current logged-in user. You know that services cannot even read registry values in the HKEY_CURRENT_USER hive.
So my guess is that it (the service) does not care whether you change the regional settings or not. Because it does not even know you (the current user)
this is this.
|
|
|
|
|
khan++ wrote: You know that services cannot even read registry values in the HKEY_CURRENT_USER hive.
Little Exception you can read it from HKEY_USER hives
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yes. You are definitely right.
Thanks.
this is this.
|
|
|
|
|
How can I save the owndraw content in the CListView as a html file or a .txt file?
the owndraw content include the arrows and some lines, how can I do with it? If you give me a help, I will appreciate it.thank you very much!
|
|
|
|
|
runningfeng wrote: owndraw content in the CListView
which content ? which ClistView ?
~RaGE();
|
|
|
|
|
I am getting the following error. Can anyone help in resolving this:
I found this error when i converted the VC++ 6.0 project to VC++ 7.0(VC++.net)
error C2663: 'ATL::CSimpleStringT<basetype,t_bmfcdll>::GetBuffer' : 2 overloads have no legal conversion for 'this' pointer
with
[
BaseType=char,
t_bMFCDLL=true
]
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Can you post your code. pls.
~RaGE();
|
|
|
|
|
HI
I have found the solution for the same.
Anyways thanx for replyng.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Hello all,
How to change HighLight color from CListCtrl
The highlight in the ClistCtrl always is Blue if i want to change
highlight color to another color How do I do?
Thanks
|
|
|
|
|
|
Hi,
Iam developing an Windows based application, where there are multiple browser windows opened. And when i press CTRL + TAB it shifts to the previous browser(the way in which ) it works in Visual Studio. But my question is:
1) Does windows (i mean the MFC or MFC's API)itself remebers this (the previous active frame window )?
2) If yes, then how and where is this information stored by the window so that i can dosome processing on it?
thanks in advance,
KAB
|
|
|
|
|
Aravind Badrinath Krishnan wrote: 1) Does windows (i mean the MFC or MFC's API)itself remebers this (the previous active frame window )?
AFAIK, The OS manages this for you.
Aravind Badrinath Krishnan wrote: 2) If yes, then how and where is this information stored
I'm not sure it stores it so you can get to it. (If you find otherwise, please let me know)
Aravind Badrinath Krishnan wrote: so that i can dosome processing on it?
Window activation (OnActivate in MFC, or WM_ACTIVATE) is probably a good place to start
- Dy
|
|
|
|
|
Hallo
how do i copy a selected CDC regions to a bitmap variable??
(this are some complex expensive drawings that will not be changed very often.)
Or is it cheaper to save the the drawing as a MemoryDC??
THX
|
|
|
|
|
Hello
Like this
HDC hdc=CreateCompatibleDC(GetDC()->m_hDC);
HBITMAP hBit=CreateCompatibleBitmap(GetDC(),Width,Height);
SelectObject(hdc,hBit);//hBit=(HBITMAP)SelectObject(hdc,hBit);
BitBlt(hdc,0,0,400,400,GetDC()->m_hDC,0,0,SRCCOPY);
SelectObject(hdc,hBit);//hBit=(HBITMAP)SelectObject(hdc,hBit);
|
|
|
|
|
I want to put a cross button on propertyseet is has only default minimize button. I just put the cross button by function modifystyle() but it just show cross button but it does not work. please help.
Ashutosh
|
|
|
|
|
I am sorry , there is a default cross button and i need minimized button.
Ashutosh
|
|
|
|
|
wher can i download free audio codec ?
JAYARAJ
|
|
|
|
|
|
I tried google.
I cont find the solution...
Any one know about where to get free audio codec
JAYARAJ
|
|
|
|
|
|
Hi all
I have created a MFC SDI application.
i have derived the view class from the CHtmlView class and used the LoadFromResource() to load the html page into the view.
Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked on the html page.
-------) stop the mouse selection for the html content.
-------) stop the mouse cursor change over the static text.
All these problems are solved by adding some code in the html page inside the tag.
There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."
How can i stop this.
Waiting for the suggestions
Regards
|
|
|
|
|
dp_76 wrote: Now there were quite a few things that i wanted to stop for ex:
-------) stop the context menu to be displayed when mouse is right clicked on the html page. [...]
All these problems are solved by adding some code in the html page inside the tag.</blockquote>
If you are trying to handle it via a right-click handler, you will need a better solution! These are quite easy to get around (dispite many web pages that try to prevent the menu in that way). Better to implement the host interface(s) and override the methods used in generating and showing the context menu.
<blockquote class="FQ"><div class="FQA">dp_76 wrote:</div>Now there were quite a few There is one more behaviour that i want to stop:
"When i press the control button & at the same time scrolls the mouse wheel, the html content is zoomed in & out."</blockquote>
I do not think you can get around that one via script. Have you tried using PreTranslateMessage to intercept the <CODE>WM_MOUSEWHELL</CODE> messages if the Control key is down?
Peace!
-=- James<HR><SMALL><FONT COLOR=DarkRed>If you think it costs a lot to do it <B>right</B>, just wait until you find out how much it costs to do it <B><I>wrong</I></B>!</FONT><BR>Avoid driving a vehicle taller than you and remember that <B><I>Professional Driver on Closed Course</I></B> does not mean <B><I>your Dumb Ass on a Public Road</B></I>!<BR><A HREF=http://www.deletefxpfiles.com>DeleteFXPFiles</A> & <A HREF=http://www.checkfavorites.com>CheckFavorites</A></SMALL> (Please rate this post!)
|
|
|
|