yeah i know! but this is just an example..
im actually making a gui library, so like inside the window class i can call the function CreateWindow and pass 'this' as its parent window..
it is something like this:
win1.CreateWindow(this, 10, 10);
//inside window class
template <class Widget>
void CreateWindow(const Widget & parent, const int x, const int y)
// create window using parent->Handle() as its parent window handle..
I think you need to look at your design again. For some reason what you are doing doesn't seem like a good way to go about it. I would suggest an alternative but, I'm not completely sure how your code works.
firstPerson - no i think its fine, but im gona use the other method though, cause sometimes the window might have no parent, and so passing 0 (or NULL) won't work..
so i will just pass this->Handle()
and the CreateWindow function will have the first parameter as HWND
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 = ...
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.
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 ...