Ok sorry if I'm using up too much of your time, but how do I use drawing command in a thread and then use _beginthread function during the wm_paint handler of a dialog box I have tried but I can't seem to get it to display anything? :)
You can't -- drawing must be done in the same thread as the dialog box. If you don't want the dialog box in the same thread as the parent then either put the entire dialog box in another thread or create a modeless dialog box.
What I'm trying to do is have my dialog box appear when a menu item is pressed (I have done that) but then a thread containing textout function to display text on the dialog box begins but the text isn't displayed, could this be a defect of _beginthread?
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...