b**********1 发帖数: 215 | 1 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗?
thanks |
b*******s 发帖数: 5216 | 2 linux
【在 b**********1 的大作中提到】 : 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗? : thanks
|
N******K 发帖数: 10202 | 3 学会了螺丝刀用法之后 问: 用来拧十字螺丝 还是一字螺丝
【在 b**********1 的大作中提到】 : 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗? : thanks
|
l*********s 发帖数: 5409 | 4 linux is a better environment to work with |
p***o 发帖数: 1252 | 5 15年前学完MFC这是一个好问题 ... 现在还是算了吧
【在 b**********1 的大作中提到】 : 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗? : thanks
|
d****i 发帖数: 4809 | 6 Are you going to write OS dependent code? If so, then better use C for that
since Linux and Windows have complete different API for system programming.
If not OS dependent, then most C++ libs, especially those from C++ STL and
boost libs are cross-platform which means code can run on both Windows and
Linux.
【在 b**********1 的大作中提到】 : 熟悉C++,向Windows 还是Linux 方向发展? COM 和ATL 还要学吗? : thanks
|
g*********e 发帖数: 14401 | 7 只要涉及process handling IPC 肯定要写platform dependent code
thread的话勉强可以用各种pacakge统一 |
d****i 发帖数: 4809 | 8 C++ std::thread or boost::thread just wraps the underlying OS thread on
Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS
dependent under the hood.
【在 g*********e 的大作中提到】 : 只要涉及process handling IPC 肯定要写platform dependent code : thread的话勉强可以用各种pacakge统一
|
N******K 发帖数: 10202 | 9 绕开操作系统搞出一个thread 怎么搞?
【在 d****i 的大作中提到】 : C++ std::thread or boost::thread just wraps the underlying OS thread on : Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS : dependent under the hood.
|
g*********e 发帖数: 14401 | 10
#ifdef WIN
windows thread
#else
linux thread
#endif
不过pthread的api应该都可以通吃
【在 N******K 的大作中提到】 : 绕开操作系统搞出一个thread 怎么搞?
|
k**********g 发帖数: 989 | 11
Use Intel TBB if at all possible. This is the strategy taken by OpenCV, and
it can multithread on Windows, Mac, Linux, Android, iOS
If on Windows, one can define a thin wrapper to switch TBB code to Microsoft
PPL.
【在 d****i 的大作中提到】 : C++ std::thread or boost::thread just wraps the underlying OS thread on : Win32 thread (Windows) and pthread (Linux), respectively. So it's still OS : dependent under the hood.
|