|
Hi, I am making one application using WIN32. I want to move my mouse cursor to specific point which is not within my application area. Is it possible to do that and if yes how can I do that?
Thanks in advance.
|
|
|
|
|
priyank_ldce wrote: I want to move my mouse cursor to specific point which is not within my application area.
Use SetCursorPos . There is an example in MSDN.
|
|
|
|
|
I want to change the text color of specified static text contorl.
Is it possible.
Thank you
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: I want to change the text color of specified static text contorl.
Is it possible.
Look up CWnd::OnCtlColor in MSDN . There is an example which does just this but on an edit box.
|
|
|
|
|
|
There's a closely-related example in the Extras section of this article.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How to check if a particular IP Address is in Network or not?
OR how to get all system IP Addresses in Current Network?
Please Help Me.
I am implementing NTP Client ( in UDP) , which will take System Time of Server & according to that it will change own System Time. But for that I have to check the exstance of the Server i.e. Is given Server IP Address connected to current system
|
|
|
|
|
Aniket Salunkhe wrote: How to check if a particular IP Address is in Network or not?
OR how to get all system IP Addresses in Current Network?
Please Help Me.
Look up NetQueryDisplayInformation . This should help. Use this in conjunction with gethostbyname to retrieve the IP Address of every system in the network. There is a sammple in MSDN .
|
|
|
|
|
Thanks for your reply.
I will try to use it.
|
|
|
|
|
I failed to use NetQueryDisplayInformation & gethostbyname together.
When I try NetQueryDisplayInformation() it gives list of Users in the system. (but only passing system name to this function).
I want to check if a System with IP "192.168.20", is connected to my system having IP "192.168.0.100" with System Name "Dev-1".
Please, can you explain how to use NetQueryDisplayInformation() for that?
|
|
|
|
|
Aniket Salunkhe wrote: I want to check if a System with IP "192.168.20", is connected to my system having IP "192.168.0.100" with System Name "Dev-1".
Then I guess you will have to use
WNetOpenEnum
WNetEnumResource
WNetCloseEnum
There is a sample in MSDN. Look up that sample for more details...
|
|
|
|
|
Thank you.
Using these function I am able to get systems in Network.
Now I have to get IP of each system. I will try it using gethostbyname().
|
|
|
|
|
Aniket Salunkhe wrote: Thank you.
|
|
|
|
|
Hi !!
Iam using Web Browser control to display a web page in my VC++ application.
My explorer version is IE7.0
The following code worked fine before installing IE7.O.
m_explorerctrl.Navigate("www.yahoo.com",0,NULL,NULL,NULL);
Iam getting the following error
Cannot find "www.Test.com" . Make sure the path and Internet address is correct.
Can any one please help how to solve this problem?
Regards,
|
|
|
|
|
Try:
m_explorerctrl.Navigate("http://www.yahoo.com",0,NULL,NULL,NULL);
|
|
|
|
|
klvin wrote: Cannot find "www.Test.com" . Make sure the path and Internet address is correct.
Are you really passing "www.Test.com" as parameter to Navigate ?
Because error seems to say so.
|
|
|
|
|
Have you tried correcting the URL so that it is well-formed (http://www.yahoo.con ) and see if that makes a difference? I would also try specifying one of the BrowserNavConstants flags as well.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi,
I need to find a "text" in all the open windows in the application. I send messages from a dll
to all open windows (opened using exe). Both are part of the VC solution.
Am able to send message from dll to a window (active window) using
CWnd * pWndTarget = (CWnd*)dData;
pWndTarget->SendMessage(FIND_MESSAGE, wParam, (LPARAM)pItem)
But if i want to send the same message to all windows using
::SendMessage(HWND_BROADCAST,FIND_MESSAGE, wParam, (LPARAM)pItem);
it is not sending the message. Any clues please?
Thanks
Raji
|
|
|
|
|
|
Did the follwoing:-
from the dll -
in header - extern int AFX_EXT_DATA wmFindWndNotify;
int wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
::SendMessage(HWND_BROADCAST,FIND_MESSAGE, wParam, (LPARAM)pszName);
from the APP -
ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
But the method "OnFindObject" is not at all called!
Thanks
Raji
|
|
|
|
|
RajiRaghu wrote: ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
Is this in a child window? Only top-level, overlapped, and pop-up windows will receive the
broadcast message.
|
|
|
|
|
This is not a child window. All windows are Frame Dialogs.
Any clues please.
Thanks
Raji
|
|
|
|
|
In the DLL:
UINT wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
::SendMessage(HWND_BROADCAST, wmFindWndNotify, wParam, (LPARAM)pszName);
In the APP -
const UINT wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
...
BEGIN_MESSAGE_MAP(CMyFrame, CFrameWnd)
ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
This should work
|
|
|
|
|
hi all
im trying to call Cmdline exes in VC++ project.
im successful in that,nw im getting problem in running that exe on pc where VC++ is nt installed.
Application does not execute on that particular terminal.
|
|
|
|
|
Hi,
Check which libraries your app uses e.g. MFC71.dll or atl71.dll and copy it to client machine ... or find and redist for it on Microsoft site.
-----------
Mila
|
|
|
|