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 wOOdy-Soft 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

    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...
  6. 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...
  7. TheCrappyProgrammer

    Deleting Read-Only Files

    How do I delete Read-Only files and other files that are in use by another program?
  8. 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)
  9. 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.
  10. 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...).
  11. TheCrappyProgrammer

    #include files

    What is the difference between #include &quot;test.h&quot; and #include <test.h>?
  12. 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
  13. 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?
  14. TheCrappyProgrammer

    concatenating a CString and a CString* array

    I have a problem concatenating a CString and a CString* array. I get a &quot;Performed an Illegal Operation&quot; window when I try to do it. Here's my code: CString expression; CString* pTOP = new CString[10]; for (int index=0;index<10;index++) expression = expression + pTOP[index]...
  15. TheCrappyProgrammer

    Program run on startup

    How would I programmically make a program run at start-up?
  16. TheCrappyProgrammer

    Reading from .txt file

    Hi there, How do I read specific lines from a text file using the CFile class? Suppose I have a file called &quot;names.txt&quot; that contains the following lines: Bobby Tommy Robert How would I read the second line of the text file using CFile class in MFC?
  17. TheCrappyProgrammer

    For...Next Problem

    I am trying to increment a value in a text box gradually by using a For...Next loop and a Sleep() function. However, it only increments it in one step at the end of the loop. How would I make it increment gradually? For x = 0 to 10 lblscore.Caption = Str(Val(lblscore.Caption) + 50)...
  18. TheCrappyProgrammer

    Disable System Keys?

    How would I disable the escape key? I don't wan't users to be able to exit my program by doing that.
  19. TheCrappyProgrammer

    MFC distribution files

    I have a completed MFC Application. The problem is that when I run it on another computer, it said some .dll files were missing. What files do I need to distribute along with my executable to make it run properly?
  20. TheCrappyProgrammer

    Message Handler

    How would I set up a Message Handler for when the Animation Control stops playing? I know that I have to use ACN_STOP, but I don't know how.

Part and Inventory Search

Back
Top