- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
I have two methods: 1. install VMware virtual machine and use Debian/Ubuntu, any open source OS can open mac file format 2. if you want to create your own file clients, for Win32 SDK, you can use CreateFile("\\.\PhysicalDrive0") (whether is 0 or 1 or 2, etc depends) to open an …
This is because: 1. your code has caused an internal error in your windows application. The MainDlgProc callback function is called when your dialog window is being created; therefore, the 1st time when you call SetWindowsText, your windows is being created but has not been created yet, you can actually …
Warning: memcpy( &outTxtStr[i],&outTxtStr[i+1], outTxtLength); Don't use memcpy to copy 2 memory blocks which overlap, it will lead to undefined behaviour which is different for different compiler, on diff. system. Use memmove instead.
Hi, you need to have some assembly knowledge in order to understand C/C++ pointers. Basically, a pointer is a variable which stores the address of another variable, so [code] float temps[MAXTEMPS]; float *pCur; pCur = temps; [/code] means the variable 'pCur' stores the address of temps[], i.e. the first element …
For vector/array arithmatic, you should use SIMD (single instruction multiple data) to boost efficiency, for float, 4 times faster, for double, 2 times faster. Here's my library for vector algebra, [code] #ifndef __VECTOR_H #define __VECTOR_H #include "math.h" #ifndef __FLOAT_MIN_DIFF #define __FLOAT_MIN_DIFF 0.000003f #endif #ifndef __DOUBLE_MIN_DIFF #define __DOUBLE_MIN_DIFF 0.000000000009 #endif class …
The following piece of code works exactly as what you want to do, I use this method to write my own MBR boot loader code for booting into multiple OS selectively (holding Ctrl to boot into Ubuntu, holding Alt to boot into Window 98, otherwise boot into Window XP): [code] …
The End.
xuancong