Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wduty
  • Order by date
  1. wduty

    detecting a personal firewall

    Anyone have any idea how one would programmatically detect the presence of a personal firewall?
  2. wduty

    Rich Edit control EM_SETTEXTMODE not working

    Rich Edit control works ok but doesn't allow setting of TF_PLAINTEXT: SendMessage(mhEditCtrl, EM_SETTEXTMODE, TM_PLAINTEXT, 0); returns 0 which is supposed to indicate success according to the api docs. But it's not plain text because I can drag formatted text (with various fonts etc) into the...
  3. wduty

    Sample codes on detecting web links wanted

    If you want to write a program to download from links, you don't really need a browser at all. What (I think) you need to do is: 1. Download the raw HTML from the site (try wininet functions) 2. Parse the HTML to find all the (file) links. Try what Pyramus said or look around for other methods...
  4. wduty

    Sample codes on detecting web links wanted

    Where is the web page being displayed? (Are you writing your own browser? using a conventional browser? Be a little more specific) Or perhaps you mean you want to create an editor for looking at the text of an HTML page and have the editor interact with the mouse?
  5. wduty

    File Function .... no MFC

    Get a handle with CreateFile() then move the file pointer with SetFilePointer()to where you want to chop off the remaining bytes then do SetEndOfFile() on the handle
  6. wduty

    how to implement drag n drop in visual c++

    you might try mouse capture functions. Check out: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcepoint/htm/_wcesdk_win32_setcapture.asp You could make a thin window where your line is and capture the mouse there. If you are using MFC, CWnd-derived classes have a SetCapture...
  7. wduty

    DLL HELP

    RahulGade: Sure. ATL away! I was just following his lead out of curiosity. Keep in mind however, if you do a COM object you gotta register it on any other machine than the one you built it on (ask people to do regsvr32 or give them a batch file).
  8. wduty

    DLL HELP

    Ok, so you could do a dll. Apparently VB can load dlls. Instead of "LoadLibrary" which is the C/++ function call to load a dll, you use "Declare" and "Lib". I looked around for a minute and there seem to be a lot of links which deal with this topic. Here's one...
  9. wduty

    DLL HELP

    Well, not needing to see the console does not mean that the program does not need to run independently of the VB interface. When you say things like "as it gathers/manipulates data", it sounds like the C++ program needs to remain running "in the background" even when you...
  10. wduty

    DLL HELP

    Is the c++ program something that needs to run independently of the vb interface?
  11. wduty

    Reading parts of a file via FTP

    you might have to go down to sockets. Or, you can use Wininet. Yank the internet handle out of the CFtpConnection (or open your own). Instead of doing FtpOpenFile(), open the transfer connection manually using FtpCommand to send each of the ftp commands: REST startpoint \n PASV \n RETR...
  12. wduty

    is stl::random_shuffle seedable?

    Well the define trick didn't work but it looks like it should because other sites around the net say to do the same thing. However, I did get it to work. The test program I posted above was being compiled with borland 5.5. When I compiled it with VC++ it worked. Thanks for your help though.
  13. wduty

    Simple Mouse

    Sorry, that's just for finding the mouse position. There's also mouse capturing functions and stuff. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput.asp As to not being able to hide the mouse, I've never used DirectX...
  14. wduty

    Simple Mouse

    You can catch the WM_MOUSEMOVE message... here's a link I found searching google http://leb.net/wine/WinDoc/msdn/sdk/platforms/doc/sdk/win32/mess/src/msg25_27.htm
  15. wduty

    is stl::random_shuffle seedable?

    random_shuffle produces the same random order each time. Is there any way the seed std::random_shuffle? (srand didn't help). #include <vector> #include <algorithm> #include <iostream.h> typedef struct {int i;} TESTSTRUCT; using namespace std; int main() { vector<TESTSTRUCT> vec...
  16. wduty

    can a FILE point to a FTP file?

    win 95?! well then yeah, I guess you would have to do it with sockets...
  17. wduty

    can a FILE point to a FTP file?

    >>&quot;wininet.dll ... is not included in typical windows installation.&quot; Are you sure? It's on every machine I've ever worked on and that includes 98, xp, NT, and 2000 machines
  18. wduty

    How to Lenght() and Mid() function ???

    If you have a char array let's say szChar: Len() int len = strlen(szChar); Mid()(to get a substring of length L starting from point P.) If you know the length of the substring at compile time: char szSubstring[11]; // SET UP BUFFER char* p = szChar + P; // SET POINTER TO...
  19. wduty

    Dll with Visual C++ (inheritance)

    hmm... But you are still going to have problems because you are trying to have one object inherit the interface for another object. I'm not sure this will work. One way I think you could proceed is: 1. create one ATL object (A) 2. add all your A methods to its interface IA 3. Instead of creating...
  20. wduty

    Dll with Visual C++ (inheritance)

    The coworker is very grouchy and says they are too busy. Sorry. The interface of A and B inherit from IDispatch because you selected &quot;dual&quot; instead of &quot;custom&quot; interface support. Otherwise you would have inherited from IUnknown (IDispatch inherits from IUnknown anyways)...

Part and Inventory Search

Back
Top