Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mike Winter

@Mike Winter
About
Posts
15
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sending a WM_ message to another PC
    M Mike Winter

    Hi I have a remote PC with a Watchdog application running on it. This is monitoring the health of other applications runing on the PC, and if it detects a problem, will reset the PC. All applications are written in Visual c++, OS is XP home. Is it possible to send a message over the network to the Watchdog app to instruct it to reset the remote PC? Will FindWindow() work over a network (using the IP afddress of the remote machine), or is there another way of getting the handle of the Watchdog application? Thanks for any advice you can give! Mike

    C / C++ / MFC c++ sysadmin help question

  • ListBox
    M Mike Winter

    Thanks John I just did an experiment with my app, and it hung once I had written 32736 lines into it! In a normal day, I shouldnt be adding more than 100 lines of text a day to the ListBox, so that would mean i could run the app for approx 1 year before this would become an issue. Still, it would be nice to block the problem from happening... Thanks again Mike

    C / C++ / MFC help algorithms question

  • ListBox
    M Mike Winter

    After you all sorting out my problem with adding strings to a listbox, I now have a few more questions about them: Is ther a limit to the amount of strings that can be added to a ListBox? My application will run indefinitly, so could end up having a huge amount of text entered into it - will this be a problem? If it is, is there an easy way to limit the amount of strings, so that if you enter more into the ListBox, the first ones (oldest) will fall off the List? Thansk for all your help Mike

    C / C++ / MFC help algorithms question

  • What is the easiest way to do a timer ?
    M Mike Winter

    What I do is set up a timer to interupt every second, and then count the interupts. When you have got to your required count, you can the go off and do the functionality that you want to do Mike

    C / C++ / MFC question c++ tutorial

  • coms between two applications
    M Mike Winter

    Thanks for your help What I have done is writen the data into a tempory file, and then renamed it to the actual file name that is required - this does appear to get over any file sharing problems that may have been encountered, and does work. The old C program that I have is written using Quick C, and (as far as I know) is unable to respond to Windows Messages, or use the clipboard, sockets, etc. In the VC app, I have set up a timer, which checks every 500mS (this is fast enough) to see if the file is there - if it is, it reads in the data. I am happy with the way the apps work at the moment, I just wanted to use a neater method of doing this, if possible. Mike

    C / C++ / MFC c++ help question

  • coms between two applications
    M Mike Winter

    Hi I have two applications - one written in c (dos window), the other in VC++, which need to communicate a variable value to each other. I currently do this by writing the value into a file from one application, and then reading it back in the other application. This all works, but I was wondering whether there is a more elegant way of doing this? Anyone help? Thanks Mike

    C / C++ / MFC c++ help question

  • ListBox
    M Mike Winter

    Your a Star! I have just tried that and it works - simple! Thank you very much Mike

    C / C++ / MFC help tutorial question learning

  • ListBox
    M Mike Winter

    Hi again I am embarrassed to ask this question, but hey, if you dont ask, you dont get to know... I have an application written by others that generates an Edit Box by using the following code: HWND hwndEdit; hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, _T("EDIT"), "", WS_CHILD|WS_VISIBLE|WS_TABSTOP, 20,25,200,23, hWnd, NULL, hInstance, NULL); I now want to add to the program by including a ListBox. Can I do this by: HWND hwndList; hwndList = CreateWindowEx(WS_EX_CLIENTEDGE, _T("LISTBOX"), "", WS_CHILD|WS_VISIBLE|WS_TABSTOP, 20,25,200,23, hWnd, NULL, hInstance, NULL); (changing the co-ords, of course) This does appear to work, but I cant work out how to add strings to the ListBox - can anyone help, or show me what I am doing wrong Thanks for any help that you can give to a newbie! Mike

    C / C++ / MFC help tutorial question learning

  • MSFlexgrid
    M Mike Winter

    Thanks Ryan, I think that has sorted it! Mike

    C / C++ / MFC question help

  • MSFlexgrid
    M Mike Winter

    A while ago I posted a question about an application that I have written with a MSFlexgrid control. When I copy the app to my target machine, I find it wont run, even when I copy the dll files that it asks for over. What is the soloution? I did ask this before, but cant find the thread, so sorry for asking again. I believe the solution did involve using Dependancy Walker - do I need to just copy the list of dll files that Dependancy Walker shows? Thanks for any help - sorry for asking again! Mike

    C / C++ / MFC question help

  • Key Entry
    M Mike Winter

    Hi Khan++ Thanks for your help - yep thats got it now! Thanks again Mike

    C / C++ / MFC c++ help question

  • Key Entry
    M Mike Winter

    Hi again! I now have another (simple) problem! I have a dialog box with a listbox control on it, which has been loaded with several strings. I want to be able to select a string, and then delete it by pressing the key. I havnt been able to detect any key being pressed. What do I need to do? I have used MFC Classwizard to add message handlers for WM_KEY_DOWN and WM_KEY_UP, but it doesnt seam to work - where am I going wrong? Thanks yet again!

    C / C++ / MFC c++ help question

  • A required .dll was not found
    M Mike Winter

    Thanks for this. I have just fired up dependency walker and it looks like it does exactly what I want! Thanks again Mike

    C / C++ / MFC help c++ question learning

  • A required .dll was not found
    M Mike Winter

    Hi again When I copy my new application that I have been slaving over to my target PC, I come up with the above error when it is run. Of course, I can go through and copy all the required DLLs over manually as the application tells me they are missing, but there must be a better way! Is there a method of finding out what resourses have been used by an application? I am using VC++6.0, Windows XP (and 98 sometimes) Thanks for any help Mike

    C / C++ / MFC help c++ question learning

  • FlexGrid
    M Mike Winter

    I have a FlexGrid control in my dialog box, with the first row and column fixed. When I click on either the first row or column, the whole row (or column) is highlighted, with the first entry in the grid NOT highlighted. Is there any way to turn this off, so that the whole row is highlighted? What I am actually doing is when column 2 is clicked on, a control is displayed to allow data entry. When column 1 is clicked, I want to select the whole row (which is happening), but the column 2 data entry control is also being displayed - how can I stop this happening? Thanks for any help - hope you excuse my newbieness! Mike

    C / C++ / MFC question css help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups