ผมมีโค้ด แบบนี้ อยู่ใน class actlib
bool isCertExpire(char *challenge, int certindex, char *hash);

ซึ่งไปเรียกใช้ ใน activeX จากเมธอด

LONG isCertExpire(LPCTSTR challenge, LONG certindex, LPCTSTR hash);

แต่เนื่องจาก boolean มัน return ค่าได้ไม่ครอบคลุม ผมเลยแก้เป็น

long isCertExpire(char *challenge, int certindex, char *hash);

แต่ vs2003 มัน lnk2019 unresolve external symbol กลับมาให้ผม แก้ยังไงก็แก้ไม่ได้ โค้ดก็เห็นกันอยู่โต้งๆ(ว่าเขียนแล้ว) จะบอกว่า ambiguous มันก็ไม่ใช่ เพราะตอนเรียกก็
m_actlib.isCertExpire(challenge, certindex, hash);

ปล้ำจนหมดแรง ลงท้ายแก้ชื่อแบบมั่วๆ ใน lib เป็น

long ACisCertExpire(char *challenge, int certindex, char *hash);
compile ผ่าน link ได้ปกติ นี่มันอะไรกันฟะ


edit @ 2006/09/08 14:42:54

Comment



smilebig smileopen-mounthed smileconfused smilesad smileangry smiletonguequestionembarrassedsurprised smilewinkdouble winkcry

ไม่รู้ว่าคอมไพเลอร์หรือลิงเกอร์มันมั่วกันแน่หว่า

#1 By PaePae on 2006-09-08 16:00