Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下をVBに変換するにはどうすればよいですか?どういう意味ですか?
unsigned char *s = (unsigned char *)(void *)serialNum;
文脈から判断するのはかなり難しいです。おそらくserialNum、型指定されていない ( void *C では) ポインターです。
serialNum
void *
sポインタ値は、「符号なし文字へのポインタ」型を持つ にコピーされます。
s
コードは、誰かが で文字列を作成したように見えますserialNumが、ポインタは型付けされていない方法で共有されているため、受信者はそれを として扱う必要があることを知る必要がありますunsigned char *。
unsigned char *