SmileeTiger
Programmer
Hi,<br><br>I have created a console app in VC++ and I want to display the current time using the following code:<br><br>#include "stdafx.h"<br>#include <Afxdisp.h><br>#include <iostream.h><br><br>int main()<br>{<br>COleDateTime Date_Time;<br>Date_Time = COleDateTime::GetCurrentTime();<br>cout << Date_Time.Format("Today is %a %b %d, %y"<br><br> return 0;<br>}<br><br>However when I run it I get the following errors:<br><br>nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex<br><br>nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex<br><br>Anyone have any ideas?<br><br>Cory<br>