User forums > Help

Weird WinAPI problem

<< < (3/4) > >>

Vampyre_Dark:

--- Quote from: sethjackson on March 06, 2006, 07:57:49 pm --- :lol: I used it for two years, and I still think it was a mess.  :P

--- End quote ---
Why not give a side by side example of how wx does the same task easier?  :P The only thing I don't like is filling out structs all the time.

sethjackson:

--- Quote from: Vampyre_Dark on March 06, 2006, 08:10:00 pm ---
--- Quote from: sethjackson on March 06, 2006, 07:57:49 pm --- :lol: I used it for two years, and I still think it was a mess.  :P

--- End quote ---
Why not give a side by side example of how wx does the same task easier?  :P The only thing I don't like is filling out structs all the time.

--- End quote ---

Do I really need to? It is obvious. wxWidgets is cross-platform Win32 API is not.

Also as for documentation I can actually find what I'm looking for in the wx manual......  :lol:

Anyways as for creating a window here we go.

wx


--- Code: (cpp) ---wxFrame* frame = new wxFrame(0, wxID_ANY, _("Test Window"), wxDefaultPosition, wxDefaultSize);

--- End code ---

Win32 API


--- Code: (cpp) ---// Get the hInstance from somewhere. Generally from the window procedure

HWND hwnd = CreateWindowEx(WS_EX_CLIENTEDGE,
                           "myWindowClass",
                           "Test Window",
                           WS_OVERLAPPEDWINDOW,
                           CW_USEDEFAULT,
                           CW_USEDEFAULT,
                           240,
                           120,
                           0,
                           0,
                           hInstance,
                           0);


--- End code ---

henniez-swisswater:
oh by the way I solved the inital problem with the two versions where one showed the text and the other didn't. It was some config of c:b. I deleted all project files except the .cbp. afterward, everything was back to normal:P at last. Now I can go on with my thrilling WinAPI experience:P I'll finish this project with WinAPI. But the next one is gonna be some crossplatform API. Probably wx.Actually, are there any other?  I know this goes a bit off-topic, sry.

sethjackson:
Yes there are others. GTK+, Qt, Fox, FLTK.

Here is a page comparing these to wx.

http://www.wxwidgets.org/wiki/index.php/WxWidgets_Compared_To_Other_Toolkits

Vampyre_Dark:
What exactly did that prove other than they are very similar calls? One has a few more arguments, so what?  :? (I'm not trying to do a win32 vs WX here, I was just curious). I wanted to see an example of actually getting something done.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version