good afternoon,
has anybody else read a xml-file and stored the datas with vee?
thanks for help
Viele Gre
Best regards
i. A.
Stefan Feuerecker Dipl.Ing. (FH)
Entwicklung Testsysteme
Testing Device Construction
_______________________________________________________
bebro electronic GmbH
Max-Planck-Str. 6-8 - D 72636 Frickenhausen
Tel.: +49 (0) 70 22 - 40 03 - 144 - Fax.: +49 (0) 70 22 - 4 27 72
E-Mail: s.feuerecker@bebro.de - Internet: http://www.bebro.de
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> But now for the same situation i am
> trying to do the same using a Microsoft
> DLL ( for example icmp.dll or somehting
> like that) can anybody help me out to
> do the same using MS dlls???
The dll *is* icmp.dll. The functions (in VEE parlance) are:
int __stdcall IcmpCreateFile(void);
long __stdcall IcmpSendEcho(int handle, long inaHost, char *pData, short
wSize, int x1, char *pReplyBuf, long dwReplySize, long dwTimeout);
int __stdcall IcmpCloseFile(int handle);
This is the basic scenario.
The parameter handle is a handle created with IcmpCreateFile.
The parameter inaHost is the ip address of the host to ping. It is in dotted
decimal notation packed into a double word. IOW, 192.168.0.100 is (192 << 24
| 168 << 16 | 0 << 8 | 100). Use the left shift and bit or functions - not
math operators as anything over 128 will turn on the hi bit and mess
everything up.
Parameter pData is the data packet to send. It's typed char* here to keep it
simple. wSize is the size of the data packet.
The parameter x1 is actually a pointer to a PIP_OPTION_INFORMATION
structure, but is unused (pass 0 always) to keep things simple.
pReplyBuf is a receptacle for the returned data, if any. It's typed char* to
keep it simple, but is actually an array of ICMP_ECHO_REPLY structures. If
you want to use this member, type it as long* and pass an array of at least
Int32 * 8 + wSize. There is also an IcmpParseReplies function but it's
unnecessary as IcmpSendEcho returns the number of replies returned. Replies
would be difficult to parse in VEE.
The parameter lTimeout is in milliseconds.
Socket start up does not have to be used. The major advantage of using this
function is that it will not impose a lengthy timeout. You can set it to
whatever you wish. This is excellent if your destination is static. If not,
it is of limited usefulness as you'll have to do a DNS lookup and that
*will* impose a timeout. If all you want to do is detect an internet
connection then may I suggest the standard approach: ping internic.net,
198.41.0.6. If you can ping that address then by definition you can reach
"The Internet".
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".