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 Chriss Miller 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
  • Content: Threads
  • 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

    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...
  4. wduty

    linking problems in borland 5.5 c++ compiler

    I have a simple windows program which uses some wininet functions. However, I get &quot;unresolved external&quot; for all the wininet functions. When that happens in Visual Studio it means I need to add &quot;wininet.lib&quot; to the linker settings. However, I don't know how to do this on the...
  5. wduty

    thread settings in visual studio

    In Visual Studio Project Settings -> c/c++ -> Code-Generation -> Use run-time library has three options: &quot;SingleThreaded&quot;, &quot;Multithreaded&quot;, &quot;Multithreaded DLL&quot;, (and these again for debug). Should I set this to &quot;Multithreaded &quot;if I'm using CRT functions...
  6. wduty

    Ftp Date Confusion

    When using the wininet function InternetFindNextFile(HFILE, WIN32_FIND_DATA*) to read an ftp directory, is the date for each remote file represented by any of the values in the WIN32_FIND_DATA struct? There are three date values in WIN32_FIND_DATA: ftCreationTime, ftLastAccessTime...
  7. wduty

    winsock warning

    Anyone ever seen this warning when using winsock: Command line warning D4027 : source file 'wsock32.lib' ignored It goes away if I take wsock32.lib out of the linker settings (but of course so does winsock!). It doesn't seem to affect anything but I would like to get rid of it. Thanks in advance.
  8. wduty

    winsock question

    How do I get the local port of a connected socket? --Will Duty wduty@radicalfringe.com
  9. wduty

    Teusday 11

    Having witnessed part of the horror of yesterday's events from my midtown Manhattan office window (before our building was evacuated), I would like to express my deepest respects and/or condolences to anyone who was directly or otherwise affected by yesterday's events. - Sincerely William C...
  10. wduty

    FtpOpenFile bug

    I was having problems iterating/reading through files from an ftp server. When reading the whole of each file everything was fine but attempting to read just the first few bytes of each file caused a strange behavior: every second and third call to FtpOpenFile() failed with error 12003. It turns...
  11. wduty

    splitting a file

    Is there any win32 way to split a file into two files? I mean doing so &quot;in place&quot;. For example, if I have a 1GB file and I want the first 500MB's to be one file and the second 500MB's to be another file, can it be done? I can easily do this by getting a file handle, copying the...
  12. wduty

    FinalRelease/DispEventAdvise problem

    I have a component which fires a bunch of events. I have another component which is a wrapper for that component. The wrapper derives from DispEventSimpleImpl and therefore uses DispEventAdvise to hook up to the events in the first component. I found that although I was receiving all the events...
  13. wduty

    callback in class

    I am subclassing a dialog and want to put the callback procedure into a class which manages that part of an application. I get the following cast error: cannot convert from 'long (__stdcall ManagerObj::*)(struct HWND__ *, unsinged int, unsigned int, long)' to 'unsigned long' This occurs when...
  14. wduty

    How to detect that a file has been altered

    I often see in programs (such as visual studio) a prompt indicating that a file which you have open has been modified by another user and whether or not you want to reload it. How would you go about doing this? I usually use CreateFile for windows programs to read/write files, but I usually...
  15. wduty

    Unadvise fails in release build

    Calling Unadvise() in a connection point sink causes an access violation in ReleaseMinDependency build but not in Debug build. Anyone ever seen this? --Will Duty wduty@radicalfringe.com
  16. wduty

    comparing memory allocation methods

    I am writing a program which will require allocating and deallocating a potentially large number of buffers. Is there any advantage to using malloc vs new vs GlobalAlloc vs LocalAlloc etc. ? I have used all of these methods to the same effect and never noticed any performance difference. Any...
  17. wduty

    Connection Point Fails If Object is not a control

    I am able to fire events from an ATL object as long as the object is created as a full control. However, if the object is a simple ATL object, the component still compiles, registers, and works, except for the event-firing functionality. Watching the event firing code, the IDispatch pointer from...
  18. wduty

    system clock

    Does anyone know how to make the system-clock dialog appear? --Will Duty wduty@radicalfringe.com
  19. wduty

    window subclassing problem

    I have three child windows in the main HWND of a program. I am subclassing one of them so as to be able to do some custom mouse-handling in that child. The callback I assign only seems to stick if I use GetChildFromPoint() when I switch the procedures. Attempting to use the window handle itself...
  20. wduty

    Can't get selection back in edit control

    I have a program where I allow the user to determine the length of the selected text in an edit control. The user makes a menu selection which calls a function which gets the menu selection length (or the length of text in the whole control if there is no selection). The length then shows up in...

Part and Inventory Search

Back
Top