|
It doesn't have to be in .NET because I'm using VB6 only.
Based on the link that you replied to me, I got the idea how the creator create the IP Address control box. Thanx
|
|
|
|
|
hi guys !!
need help from u guys..
my company have a big Local area network..
i m developing an application which ping all the IP's and cahck that they are working or not .
i also want to retrive the MAC address of those IP's. is there ant way to retrive the MAC address programatically by specifying the IP address
abhinav
|
|
|
|
|
I could be wrong here, but I don't think you can do that. If you try to get the MAC address of a machine on the other side of a router, using just it's IP address, you will be getting the MAC address of the near-side NIC on the router, not the destination PC.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
may be he is right,,,,but i have a contridition but sniffer can get MAC Adderss! but do know how but what i say is thay is a way to get it too..try search with the key word "sniffer" -- this is what i can say hope it may help u!
|
|
|
|
|
thanx for ur interest dave but i think
i was not able to make u understand what i m asking.
all the machines are on LAN and no router is between them as its our internal network.
now can u help me to solve this
abhinav
|
|
|
|
|
Actually, it's easier than I thought. Win32 has a built in function for doing just what you want, called SendArp. You can find a C# example here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I show the client a message via messagebox.
But message is not shown as formatted.
For example
Do you want to delete Record?
ID : 3
NAME : Angel Koverk
CLASS : 4
I like it will shown as
Do you want to delete Record?
ID____: 3
NAME_: Angel Koverk
CLASS_: 4
how can i do?
-- modified at 6:31 Friday 14th October, 2005
|
|
|
|
|
Have to tried inserting tab characters between the field name and the value?
Dim myText As String = _
"ID" + ControlChars.Tab + ": " + myID + _
"Name" + ControlChars.Tab + ": " + myName + _
"Class" + ControlChars.Tab + ": " + myClassID
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
iam new to vbscript..
with using microsoft script control,
how can we write vbscript for such playing and recording?
bestregards,
tirucapricorn...
|
|
|
|
|
tirucapricorn wrote: how can we write vbscript for such playing and recording?
Playing and Recording what?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
want to convert one file to another file through vbscript. how can I?
|
|
|
|
|
What file format to what file format? BE SPECIFIC. So far, you've asked 2 very generic questions, that don't have anything to do with each other AFAICT, without providing any details. Without the details, it's impossible to give you any kind of useful information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 10:12 Friday 14th October, 2005
|
|
|
|
|
ok i will give u brief explanation..
for eg,if we open yahoo site..
and if we wish to enter login and password..
we enter the loginname and password..
some events(click,enter ur loginname etc)are occured.
for that, i want to write vbscript..with using script control...can u please help me to that....?
i think u got exact question what it is?
regards,
tirucapricorn.
|
|
|
|
|
If you're new to VBScript, you'll find this nearly impossible to do.
It can be done but is FAR more complicated than you might think. Since you can have multiple browser windows open at the same time, there is no way for the script to know which browser to get a reference to. You'll have to enumerate the open browser windows, I think it's the Shell.Application object you need to do this, and find the window with the proper window title. There are other methods depending on what your needs are though.
Next, your script has to get the Document object that the browser is displaying. When you've got that, you can get to the HTML Form object in it and in that, the two fields you need to fill in. Lastly, tell the form to submit itself.
There's no example code in VBScript that I can find and I don't have any either. This process is described from my knowledge of how Windows, VBScript, Internet Explorer and various components works, not from actual experience doing it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I can Set comma to any number with Format (121212132.245,"#,##0.0033##") command line
how can i unset comma from number?
Format("123,2554,336.54655", "#######.00##")
this doent work
|
|
|
|
|
It doesn't work because you provided a string (as input) rather than an integer!
|
|
|
|
|
I am aware of that but u see , the number has commas. How could i write it as number ?
|
|
|
|
|
There may be easier way of doing it but one is:
private function StripNumber(s as string) as double
dim t as string
for i as integer=0 to s.length-1
if s.substring(i,1)<>"," then t = string.concat(t,s.substring(i,1))
next i
return val(t)
end function
|
|
|
|
|
MsgBox(Format(CDbl("123,2554,336.54655"), "#######.00##"))
|
|
|
|
|
Imagine two table
One Table (ForeignCurrency)
FC_ID FC_TYPE
1 USD
2 EUR
3 YTL
Other table (Rates)
FCV_ID FCV_RateIN FCV_RateOUT FCV_DATE
1 1 1 10/13/2005
2 1.345 1.346 10/13/2005
3 1.651 1.654 10/13/2005
I need to join two table in a one query. I do this so
Select FC.FC_TYPE,ISNULL(FCV_RateIN,1) FCV_RateIN,ISNULL(FCV_RateOut,1) FCV_RateOut from ForeignCurrency FC LEFT OUTER JOIN Rates R ON FC.FC_ID=R.FCV_ID WHERE FCV_Date='10/13/2005'
This give me result as i want. But when i need 10/14/2005 rates it give me empty result set , but i expect
FCV_TYPE FCV_RateIn FCV_RateOUT
YTL 1 1
USD 1 1
EUR 1 1
How can i re-write code ?
|
|
|
|
|
It looks like a misunderstanding of how the join works.
The SQL Engine performs a select on the two tables using the join. The 'left outer' part ensures that if there are entries in the ForeignCurrency table that do not have corresponding entries in the Rates table, then they will still be shown.
e.g
Add a new entry to the ForeignCurrency table
4 IEP
SELECT
FC.FC_TYPE
,ISNULL(FCV_RateIN,1) FCV_RateIN
,ISNULL(FCV_RateOut,1) FCV_RateOut
FROM
ForeignCurrency FC LEFT OUTER JOIN Rates R ON FC.FC_ID=R.FCV_ID
will give
FC_TYPE FCV_RateIN FCV_RateOut
USD 1 1
EUR 1.345 1.345
YTL 1.651 1.654
IEP 1 1
AFTER the join is performed the WHERE criteria are applied. Thus we check through the resultset for the FCV_Date='10/13/2005' (This is all conceptual - in practice the engine may optimize but it ACTS as if the steps happen in this order)
For 10/13/2005 all the rows in your test data match, so we are good
For 10/14/2005, no rows match so you get an empty set.
hth
Alan.
|
|
|
|
|
How can i re-write this code in Vb.net?
Pointers
void CReadOnlyComboBox::OnEnable(BOOL bEnable) <br />
{<br />
CComboBox::OnEnable(bEnable);<br />
<br />
CEdit* pEdit = (CEdit*)GetWindow(GW_CHILD);<br />
pEdit->EnableWindow(TRUE);<br />
pEdit->SetReadOnly(!bEnable);<br />
}
|
|
|
|
|
Greeky wrote: {
CComboBox::OnEnable(bEnable);
CEdit* pEdit = (CEdit*)GetWindow(GW_CHILD);
pEdit->EnableWindow(TRUE);
pEdit->SetReadOnly(!bEnable);
}
CComboBox::OnEnable(bEnable);
is equal to
MyBase.OnEnable(bEnable)
Now for the pointer that's more tricky. First I don't know the CEdit and the GetWindow function/method so you have to sort it out how to apply it.
If you only get a pointer as a result then:
CEdit* pEdit = (CEdit*)GetWindow(GW_CHILD);
Dim pEdit as IntPtr = GetWindow(GW_CHILD)
But if you want to access objects you need to make use of GCHandle, and that's where I don't have a full knowledge. I guess your code should be:
Dim pGCH as GCHandle
pGCH=GCHanlde.Alloc(pEdit)
Dim mEdit as cEdit = pGCH.Target
and then
pEdit->EnableWindow(TRUE);
pEdit->SetReadOnly(!bEnable);
mEdit.EnableWindow(True)
mEdit.SetReadOnly(Not bEnable)
finish by freeing garbage collector:
pGCH.Free
As I said I'm not 100% sure about the GCHanlde so give it a try, anyone is welcomed in jumping in and correct, if necessary, my code.
|
|
|
|
|
don't know, but here is a link to a read only combobox
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2659&lngWId=10
|
|
|
|
|
don't know. try this instead:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2659&lngWId=10
|
|
|
|