|
A newbie question
When I type in my static ip for my computer at home (149.101.1.100) Iwhat is the subnet mask? is it 255.255.0.0?
What is the default gateway?
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
not a visual c++ question, cya!
Don't try it, just do it!
|
|
|
|
|
Well I am trying to understand how to get static ip and their components into a var. I guess I should have phrased it better.
Anyway thanks for the reminder.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
See if GetAdaptersInfo() helps.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Google for information on TCP/IP addressing, but in the meantime...
The IP address has two components, the network number and the host number. The subnet mask defines which part of the address is which. Most address schemes I've seen use 255.255.255.0 as the subnet mask, but that isn't necessarily the case, especially in private networks. If you AND the IP address with the subnet mask, the result is your network number; subtracting this from the IP address gives you the host number on the network. A class C network (subnet 255.255.255.0) allows 254 hosts, as the first and last address of any range of addresses are reserved. Using a subnet of 255.255.254.0 would enable you to put 510 hosts in the network - write it out in binary and it will make a lot more sense.
The gateway is just the IP address of the router or computer that connects your network to the outside world, usually provided by your ISP through DHCP, along with the gateway and DNS addresses.
"Your village called - They're missing their idiot."
|
|
|
|
|
Thank you very much for this consise answer.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi all
I'm setting underlining with CHARFORMAT2, but the underlining seems to be the color of the font. Is there anyway I can control this?
Thanx
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Hi,
I am using VC++ 4.0, mfc
Using mapping mode LOENGLISH I drew a rectangle
about 8 inch width and hight 9 inches (800,900 logical units). I display the rectangle at (100,-100) so it is
displayed in the centre of the screen(levaing aprox. 1 inch
margin on left, right side), the lower half can be seen by
scrolling.
This works ok in windows95,98, me(Res 800 x 600) but when I run the program
on XP (Res 600 x 800) the size of the rectangle reduced to half.
Changing different resolutions or setting could not solve my
problem.
Moreover when the same machine (Same Graphics card and hardware)booted in 98. The rectangle got the original
normal size.
I expected minor change in the size(the printing is of
same size on all OS and Printers )
how to resolve this problem ?
TIA
- milind
|
|
|
|
|
hi , can anyone please tell me how to copy a file to another destination , something like the filecopy command in the vb.
|
|
|
|
|
Check out shfileoperation api.
My God is more powerfull Than Your God.
|
|
|
|
|
> ...something like the filecopy command in the vb.
Just swap the words in filecopy ...and you'll get the C++ equivalent.
CopyFile or CopyFileEx will do it in C++. Another alternative is SHFileOperation .
Regards,
RK
|
|
|
|
|
|
hi , can anyone please tell me how to copy a file to another destination , something like the filecopy command in the vb.
|
|
|
|
|
what about "CopyFile"?
BOOL CopyFile(
LPCTSTR lpExistingFileName,
LPCTSTR lpNewFileName,
BOOL bFailIfExists
);
Don't try it, just do it!
|
|
|
|
|
hallo all i have a picture data in a DC and i want to store it in defferent formats(specially .bmp)still i can use this data working on it and store it againe in the same file.
help me please.
|
|
|
|
|
HI , CHECK OUT THE cxIMAGE CLASS IN THIS FORUM.
BYE.
|
|
|
|
|
hallo all, is there any one have a VC++ code or any tuturials to take a video from a computer camera using DirectX and store the video data in any format(.AVI,.mpg,..etc)while still i can take the data , process it and play it againe.
thanks for any help.
|
|
|
|
|
sorry, we're not doing your homework! ->get directX sdk!
Don't try it, just do it!
|
|
|
|
|
How can I find the full path of running batch file under cmd.exe or command.com(windows98).
For ex: open cmd.exe and execute any batch file.
How can I get full path of batch file?
viji
|
|
|
|
|
'cd' (with no arguments) returns the full path, which you should be able to capture from within the batch file.
|
|
|
|
|
I shouldn't touch this batch file. Is there any way to find from another vc++ application?. I have only cmd.exe processid and threadid.
Okay I want to put my question this way. I know the batch file but i cannot modify the file and i need to find whether it is currently running or not in the system.
viji
|
|
|
|
|
code:
std::map<const char*,int=""> amap; char str[];
amap.find(str); // compiler point error to here
error:
error C2451: conditional expression of type 'class std::_Tree<char const="" *,str=""
uct="" std::pair<char="" *="" const,int="">,struct std::map<char const="" *,int,struct=""
std::less<char="" *="">,class std::al
locator<int> >::_Kfn,struct std::less<char const="" *="">,class std::allocator<int>
>::iterator' is illegal No user-defined-conversion operator available that can perform this co
nversion, or the operator cannot be called
i don't know how to cope with it.
please help me!
thanks.
love program
|
|
|
|
|
Did you correctly include your code within your message, or did the angle brackets get chopped off? A map needs two template parameters, for example:
std::map<int,string>
This is the map key, and the map item. If you have done this then repost your code and escape the < and > (or check the 'do not treat <'s as HTML) and we can take another look.
|
|
|
|
|
|
i was going to design a reminder tool and i wanted some suggestions
can i use the task scheduler somehow is that recommended ?
or should i simply use the timers ?
or is there any other technique ?
|
|
|
|