I'm adding IPv6 functionality to an application that has been designed to monitor the hosts by sending periodical ICMP packets (pings). According to MSDN and the checkv4 utility, the addrinfo structure should be used, which works well when calling Icmp6SendEcho2[^] , however the problems arise when calling the IcmpSendEcho2 [^], because the fifth argument, the DestinationAddress is IPAddr struct type. So the real question is: Are there any fuctions that will convert an addrinfo structure to an IPAddr or is there another way of doing this? (Using a bunch of if/else statements to check for IPv4/6 is not an option)
no_reg_name
Posts
-
ICMP Issue -
Has anybody experienced this problem??Hmmm, I checked that, but unfortunately that does not seem to be the case :( However, here is some new development. When I restart my machine cmd works fine, so I thought it must be some application causing this and it seems I was right. As soon as I open Word 2003, cmd slows way down, the more documents I open, the slower it gets. Anybody knows why in earth Word would slow down the cmd?
-
Has anybody experienced this problem??Command prompt (Windows XP, SP2, all updates) has become *painfully slow* :( When typing it takes 2 seconds or more for a character to appear, also the commnad prompt window does not move smoothly accross the screen. Anybody ever experienced this?
-
Simple question - Threads and TimersI have a worker thread and need to start and stop a timer. As I understand there are two ways to do this, using CWnd class and handling OnTimer()or SetTimer(hWnd, ....) API call, but both rely on having a UI to receive WM_TIMER messages. Is this correct? :confused: If yes what is the best way to implement a timer in a worker thread, that does not interact with the UI at all?
-
How do you know if it's a file or directoryGiven a path e.g. c:\somedir1\somedir2\file.txt how can you find out if file.txt is a directory or a file? Can't base the judgement on the extension, since there could be a directory named file.txt. :( On a side note I have an application that is using FindFirstFile and FindNextFile to enumerate all files and subdirectories in a given path. Now I want to check if this given path is a pointing to a file, so I could ShellExecute the file, instead of calling the above functions. :)
-
Need a small advice regarding stringsI have to use legacy C code, where functions understand nothing else but char* So the question is, what is the best way to convert the char* to unicode strings, to be displayed in a message box, or set in an CEdit control for example.
-
Automating OfficeThanks. I'm gonna try this and see how it goes. :)
-
Automating OfficeYeah, I've seen the chm files, but they cover VB only. It is suprising, the lack of MFC samples. :( Thanks anyway.
-
Automating OfficeI'm trying to automate PowerPoint from an MFC application. When I import office TypeLib (from Add MFC Class from Typelib), VS generates these wrappers for the COM calls. How would one find out what different classes and methods do? Certainly wrappers are not documented in MSDN, and I don't know how to get to the actual COM interfaces being used. btw I'm using VS.NET 2003 and Office 2003
-
Output redirectI inherited some source code that was originaly written for command line apps. :( Some functions have signatures as follows void doSomething(whatever wh, FILE *fp); so if you pass stdin or stderr it will output the result to the console. Since I'm writing an MFC app that needs to use these functions, is there any way to redirect the output to a MessageBox, Static text or any other non console output?
-
SOAPI'm only scratching the surface here. The application that I'm writing needs to transfer commands (text) and binary data (pictures) to and from Pocket PC. So, I'm trying to decide what is the best way to transfer the binary part. I'm not sure if using WriteFile would apply in my case, since I need to write to the disk first and read back again. A sort of in-memory solution would be more elegant, with no performance penalty. (I'm coming from C#, where you can serialize a class in memory and send it down the socket to be read by the other party) Any ideas? Your comments are valuable. ;)
-
SOAPThank you. One more question: Are there any issues in serializing a class in Pocket PC and desrializing it in Windows XP and vice-versa, or is this possible at all?
-
SOAPWhat are my options if I want to use SOAP for an application developed using eVC++ 4?