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: *

  1. TheCrappyProgrammer

    File Open Dialog?

    I notice many programs use the same file broswer interface for opening files. Does C# .NET have a built-in function to call this dialog and then perhaps return the string of the file path selected?
  2. TheCrappyProgrammer

    USB Devices

    How would I Enumerate all my USB devices and disable the ports to that device, searching by device ID? I have two USB mouses, but I only want one working at a time. I noticed when I plug in a USB device, a bubble pops up and reports the name of that device. I would like to locate that name and...
  3. TheCrappyProgrammer

    Minimize a full-screen application

    Is there any way to minimize a Full-screen Exclusive Mode application with another program? I was thinking, perhaps with a windows event handler? I'm making a program that will minimize games, so that I will have full control of the screen.
  4. TheCrappyProgrammer

    Alternative to UpdateData(FALSE)

    Is there any other way to refresh a Static Text control? I know about control variables, but which functions should I use? Are there any other methods besides control variables?
  5. TheCrappyProgrammer

    Multithreaded Problem

    Well if I just use UpdateData(FALSE), then I get a compiler error: error C2352: 'CWnd::UpdateData' : illegal call of non-static member function c:\program files\microsoft visual studio\vc98\mfc\include\afxwin.h(2230) : see declaration of 'UpdateData' However, if I use...
  6. TheCrappyProgrammer

    Multithreaded Problem

    Yes, UpdateData() is a CWnd. This is exactly how that portion looks like: UINT CProgram::DoIt(LPVOID param) { CProgram* ptr = (CProgram*)param; ptr->UpdateData(FALSE); // Errors Out Here ... ... } DoIt(LPVOID param) is a static private member function of CProgram. I invoked...
  7. TheCrappyProgrammer

    Multithreaded Problem

    In my static UINT CProgram::DoIt(LPVOID param); I am not allowed to call UpdateData(FALSE); from the MFC library. The compiler says that I can't call it because I am calling it from a static function. Yet the Multithreaded Tutorials on the internet states that I have to write the...
  8. TheCrappyProgrammer

    Time comsuming functions

    I have several functions that take a while to execute in MFC. If I put it in ::OnInitDialog(), then the window won't paint until after my functions complete and ::OnInitDialog() returns. As a result, the program runs for about seven seconds and then paints the window. Where should I call my...
  9. TheCrappyProgrammer

    Deleting Read-Only Files

    How do I delete Read-Only files and other files that are in use by another program?
  10. TheCrappyProgrammer

    GET DISPLAY SETTINGS

    How would I programmically obtain the number of colors that the computer is using? (i.e.: 256, 16 bit, 24 bit)
  11. TheCrappyProgrammer

    Overlay Image in TreeView

    How can I find whether or not a certain TreeView item has an overlay image? The MSDN article stated that I needed to use the GetItemState() function, but I'm not sure what parameters to pass in and what value it will return.
  12. TheCrappyProgrammer

    FINISH PAINT Message?

    In an MFC Dialog Based Application, how do I know when a window has finished painting everything? (including the buttons, group boxes, etc...).
  13. TheCrappyProgrammer

    How can I make the dialog to be always on top?

    SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
  14. TheCrappyProgrammer

    Visual C++ Evaluation Copy

    I don't think you can download it. :-(
  15. TheCrappyProgrammer

    DB Questions

    1. Not Sure 2. Yes 3. No 4. Yes, DarkBASIC is too LIMITED.
  16. TheCrappyProgrammer

    Stoping "Ctrl-Alt-Del"

    If you are using MFC, simply use the function: Bool old; SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, &old, 0); It will make the computer think it is in screensaver mode and disable that key sequence. To reenable that key sequence, call the function again, but change the second...
  17. TheCrappyProgrammer

    Stoping "Ctrl-Alt-Del"

    If you are using MFC, simply use the function: SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, &old, 0); It will make the computer think it is in screensaver mode and disable that key sequence. To reenable that key sequence, call the function again, but change the second parameter to 0.
  18. TheCrappyProgrammer

    #include files

    What is the difference between #include &quot;test.h&quot; and #include <test.h>?
  19. TheCrappyProgrammer

    Other characters in static text box

    Does anyone know how I can put a dot operator (the one used for multiplication) in a Static Text Control? Right now, I'm using an asterisk, but I thought my program would look better it it has a dot operator. Thanks
  20. TheCrappyProgrammer

    Invalid Allocation Size

    Occasionally, my program gets a Debug Error saying &quot;Invalid allocation size: 4294967292 bytes.&quot; Does anyone know what usually causes this?

Part and Inventory Search

Back
Top