English 中文(简体)
建立Windows and Threading - C++
原标题:Creating Windows and Threading - C++

当使用<条码>CreateEx创建新窗口时,其代码是否以自己或母体(即其即时代码已执行)的形式实施? 感谢。

最佳回答

无,创建窗户新铺面

问题回答

窗户实际上自行操作任何代码,所有代码都从属于你自己的法典的电文中提出来。 你可以处理试图与Windows UI进行多方面互动的巨大问题,因此,你应当始终在一线范围内对信息做出反应。

CreateWindowEx() does not create a new thread. If you want a new thread you have to call either _beginthreadex() (usually preferred) or CreateThread().

如果你想再问,_beginthreadex()优于CreateThread(),因为前者最初将CRT的某些部分归为后者。

Windows有近亲——见Raymond Chen s

相互接近的全球倡议通常在灾害中结束。 窗户图书馆通过放弃例外,积极阻止它。

即便是允许的,创建寡妇 否则就无法做到这一点,因为它会对你的代码(锁、阅读安全等)作出一些非常大的假设;大多数视窗开发可能仍然基本上只读过。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签