포인터 추가가 실패한 이유를 알지 못합니다.포인터 추가
DWORD *pipebuf=new DWORD[10001];
Command *cr= (Command*)pipebuf;
cr->command=2;
DWORD* rooms=(pipebuf+1); //should work fine..sets the room pointer equal to pipe[2]
*rooms=buff3; //where buff3=100
그러나 pipebuf의 값에는 command 값만 포함되어 있으며 buff3의 값은 포함되어 있지 않습니다. 그러나 새 키워드를 제거하면 잘 작동합니다 ... 왜?
DWORD = unsigned_int
명령이 명령의 DWORD 변수와 클래스 ..이
Class Command {
DWORD command;
}
DWORD 및 명령이란 무엇입니까? – Mahesh
DWORD = 서명되지 않은 _int. 명령은 명령의 DWORD 변수가있는 클래스입니다 – Jake
어떤 언어입니까? C++? – Mat