|
Is he serious?
Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity.
-General George S. Patton
|
|
|
|
|
i want to get the ip address of all computers on a network
that have this broadcast address 255.255.255.0.
is there any method or tecnique available available to get that ?
if i have to send a message to all computers on a network through
a net send command what ip address i have to mentation ?
i have two computers that have these ip addresses 192.168.0.1
and second one is this 192.168.0.96.
because when i do this on command prompt this appears.
D:\Documents and Settings\super>net send 255.255.255.0 hell
An error occurred while sending a message to 255.255.255.0.
The message alias could not be found on the network.
More help is available by typing NET HELPMSG 2273.
D:\Documents and Settings\super>net helpmsg 2273
The message alias could not be found on the network.
EXPLANATION
This message alias could not be located.
ACTION
Check the spelling of the message alias. If it is correct, then the computer tha
t is to receive your message may be busy. Try sending the message again later.
r00d0034@yahoo.com
|
|
|
|
|
see my reply above.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Hi, I need to set the maximum speed of network card programatically, eg. when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps.
Any suggestion helps much.
Standa.
|
|
|
|
|
s_k wrote:
when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps.
Why would you want to do this? Most 100Mbps NICs are auto-negotiate. That is, if the server or target machine only runs 10Mbps or your router or hub is only 10Mbps, then the NIC will only negotiate 10Mbps on the hardware abstraction layer with no intervention from the OS, let alone your program.
Now, if you are writing some proprietary device driver for an ethernet coffee machine or something and really need to do this, then I must admit I am out of my league.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps).
Hope you grasped
|
|
|
|
|
Are you saying that the FTP program is consuming too many resources that you wish to use? If so, you might try lowering the priority of the FTP server. Then it won't consume CPU resources while you wish to use the machine.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
It may help as well, but not sure if it is 100% solution...
|
|
|
|
|
s_k wrote:
It may help as well, but not sure if it is 100% solution...
Well, you can always upgrade the machine A nice P4 with a gig of ram or two should suffice...
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Well, such a machine I've at home, but it's commercial product and MUST be compatible even with the worst sh**s..;)
|
|
|
|
|
s_k wrote:
The only thing that helps is to slow down the receiving/sending of data (to 10mbps).
...or reprogramming your network core
|
|
|
|
|
Maybe, but would you be happy to rewrite 50,000 lines of code due to this one bug, appearing only on very weak machines | win9x | fast LAN (at least 100mbps) ???
I think admin should be mor0n when running FTP server on such a sh*t...
|
|
|
|
|
eh - too fast? how can it be too fast? resources memory usage? have you tired other ftp sever versions maybe find one that is less resource hungry.
easier way change the network card to a 10mbps only one
Technically speaking the dictionary would define Visual Basic users as programmers. But here again, a very generalized, liberal definition is being employed and it's wrong - just plain wrong - Tom Archer 5/12/02
|
|
|
|
|
However it may sound strange, it's true. Yes, I've already tried other FTP servers - but they are much smaller than the our one. I think it's caused by that most of them is written in Delphi, whereas we wrote it in C++, and it's really difference...
I remark again - it only appears on VERY weak machines, ONLY on Win9x and ONLY on fast LANs( at least 100mbps).
|
|
|
|
|
Hi.
can anyone please help me find out why this code doesn't work:
char* nextWpName = "mypic.jpg"
SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE);
my wallpaper simply disappears and goes blank.
help...
|
|
|
|
|
You need to pass the full path to the file.
Software Zen: delete this;
|
|
|
|
|
Ofcourse I'm doing that...
The code was only an example...
try running it and see if it works for you
|
|
|
|
|
Lior Shoval wrote:
try running it and see if it works for you
It didn't worked for me. I tested it on WinME and it didn't change to anything...
hm.. weird... GetLastError returned 0 so... I don't know!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I think that you can only set a BMP wallpaper with that API. To use a JPG you need to turn on ActiveDesktop and use the IActiveDesktop interface to set a wallpaper.
--Mike--
If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hi,
why doesn't this code work :
CListCtrl& listCtrl = GetListCtrl();
listCtrl.SetView(LV_VIEW_DETAILS);
??
When I try to compile, it says "SetView is not a member of CListCtrl".
Thanks
|
|
|
|
|
Anonymous wrote:
When I try to compile, it says "SetView is not a member of CListCtrl".
Thats your problem.
I think what your trying to do is change a style bit and I think you can use CWnd::ModifyStyle() to accomplish this.
Cheers
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Which version of MFC and VC++ are you using?
SetView is not documented in my MSDN October 2001 for CListCtrl but is documented in the help that comes with VC7.
The windows message (LVM_SETVIEW) that the function wraps is marked as a Windows XP only message.
Looking through the MFC source, SetView is wrapped by the following pre-processor line
#if (_WIN32_WINNT >= 0x0501)
You'll have to set you app to target that version of windows if you want to make use of the extended XP common control functionality.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
What exactly does this mean and how would I add this functionality to my own controls?
For instance i have a Listview control and I would like to bind a database to it, would I basically just add a function called Bind() with parameters required to query database and have this function fill in the fields on the list control?
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Is this safe to do???
I have Add and Delete buttons which operate on a database and fill combobxes accordingly. The comboboxes are all filled with data inside OnInitDialog() so instead of rewritting code to populate the combo's on each and and remove I simply flush all combobox content and recall OnInitDialog() directly. I suppose I could have wrote functions like FillContactsCombo() and call them inside OnInitDialog and Add/Remove buttons, but I didn't so I would like to know if calling OnInitDialog is safe???
Thanks for your input
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
It would only take a couple of minutes to cut and paste your code from OnInitDialog into a FillContactsCombo function. Having a seperate function is the correct way to code this.
A quick look through the base level CDialog::OnInitDialog shows a code that loads and locks resources as well as sending off other WM_x to the dialog controls. I'd say it isn't safe to do it and also a very poor and lazy programming style.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|