|
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
|
|
|
|
|
bardiyamanisha wrote: im getting problem in running that exe on pc where VC++ is nt installed.
Use dependency walker to find out what are the DLLs that are missing. The dlls that has a yellow symbol are missing. You should also ship these dlls with your application.
If it's not a dependency problem then it could be crashing somewhere. There is an article in codeproject that talks about such issues.
|
|
|
|
|
If you have built a debug version you are going to need to vopy over all the dependnecies too.
Use depends.exe to find out what your app needs.
If you have a release exe you should be OK. If you arent, then you have implications for your installer. It too will need to add the missing dependencies.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
fat_boy wrote: If you have built a debug version you are going to need to vopy over all the dependnecies too.
Actually, one is not permitted to distribute the DEBUG versions of DLLs - this is expressly prohibited in the license for Visual C++/Studio.
Steve S
Developer for hire
|
|
|
|
|
Steve S wrote: distribute
He didnt say he was distributing his exe, he just cant get it to run on another PC, as often happens during tsting.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
fat_boy wrote: He didnt say he was distributing his exe, he just cant get it to run on another PC...
These are one in the same. In order for his application to run on the other machine, it must be distributed/installed/copied. No matter how you spell it, the debug DLLs cannot exist on any other machine.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: These are one in the same.
Only in the broadest sense. Testing is totally different to selling a product.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
Hi,
In a SDI, I wanted to replace the Document Template that is added using AddDocTemplate(). I want to remove one template and add another template.
Thanks,
AJ
|
|
|
|