Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Network Monitoring Pin
Tom Wright15-Dec-03 11:38
Tom Wright15-Dec-03 11:38 
Generalbuild errors Pin
pankajdaga14-Dec-03 6:11
pankajdaga14-Dec-03 6:11 
GeneralRe: build errors Pin
Ian Darling14-Dec-03 7:06
Ian Darling14-Dec-03 7:06 
GeneralRe: build errors Pin
Steen Krogsgaard14-Dec-03 22:34
Steen Krogsgaard14-Dec-03 22:34 
GeneralRe: build errors Pin
Bo Hunter14-Dec-03 19:55
Bo Hunter14-Dec-03 19:55 
GeneralLinking MFC code with non MFC code Pin
debsbunny714-Dec-03 0:59
debsbunny714-Dec-03 0:59 
GeneralRe: Linking MFC code with non MFC code Pin
Mike Dimmick14-Dec-03 3:41
Mike Dimmick14-Dec-03 3:41 
GeneralRe: Linking MFC code with non MFC code Pin
debsbunny714-Dec-03 4:40
debsbunny714-Dec-03 4:40 
Hi Mike

The problem is that I am trying to use code that produces accurate time stamps from an NTP server in another piece of code that transmits packets of information across the network. I need to be able to accurately time the packet transmission.

However my problem is that the NTP code that I'm using only compiles correctly when its set to Link to the static libraries whilst my transmission code is based on MFC and only compiles correctly when set to link with dynamic libraries. I know I'm not supposed to mix dynamic and static links. Is there any way around this problem? Do you know if i can link each piece of code seperately and still use the NTP code to obtain a timestamp in my transmission code or if I can change either of these pieces of code from static to dynamic or vice versa?

I hope you can help me. I've been searching the web and I'm at my wits end. I've included the errors below for both settings.
Thank you

Debs

Setting as Debug Multithreaded

MFC_socket.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
StdAfx.cpp
c:\program files\microsoft visual studio\vc98\mfc\include\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Generating Code...
Compiling...
TSCtime.c
Generating Code...
Error executing cl.exe.

Setting as Debug Multithreaded DLL

Compiling...
MFC_socket.cpp
StdAfx.cpp
Generating Code...
Compiling...
TSCtime.c
Generating Code...
Linking...
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
MFC_socket.obj : error LNK2001: unresolved external symbol "unsigned __int64 basest" (?basest@@3_KA)
MFC_socket.obj : error LNK2001: unresolved external symbol "unsigned __int64 tscfreq" (?tscfreq@@3_KA)
MFC_socket.obj : error LNK2001: unresolved external symbol "unsigned __int64 basetsc" (?basetsc@@3_KA)
MFC_socket.obj : error LNK2001: unresolved external symbol "void __cdecl recalibrate(void)" (?recalibrate@@YAXXZ)
MFC_socket.obj : error LNK2001: unresolved external symbol "unsigned __int64 recalinterval" (?recalinterval@@3_KA)
MFC_socket.obj : error LNK2001: unresolved external symbol "unsigned __int64 lastrecal" (?lastrecal@@3_KA)
Debug/MFC_socket_try1_10Nov.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
GeneralRe: Linking MFC code with non MFC code Pin
Mike Dimmick14-Dec-03 4:59
Mike Dimmick14-Dec-03 4:59 
GeneralRe: Linking MFC code with non MFC code Pin
debsbunny715-Dec-03 4:18
debsbunny715-Dec-03 4:18 
GeneralSource Safe Automation Question Pin
YaronNir13-Dec-03 21:10
YaronNir13-Dec-03 21:10 
QuestionHow can i hide some exe file? Pin
novachen13-Dec-03 20:17
novachen13-Dec-03 20:17 
AnswerRe: How can i hide some exe file? Pin
Antti Keskinen14-Dec-03 0:58
Antti Keskinen14-Dec-03 0:58 
AnswerRe: How can i hide some exe file? Pin
Mike Dimmick14-Dec-03 3:43
Mike Dimmick14-Dec-03 3:43 
AnswerRe: How can i hide some exe file? Pin
Terry O'Nolley14-Dec-03 12:02
Terry O'Nolley14-Dec-03 12:02 
GeneralTrouble in warp a function in COM dll Pin
novachen13-Dec-03 20:00
novachen13-Dec-03 20:00 
GeneralcontentEditable in div in C++ app no processing Enter Pin
Neville Franks13-Dec-03 17:44
Neville Franks13-Dec-03 17:44 
GeneralRe: contentEditable in div in C++ app no processing Enter Pin
alex.barylski24-Mar-04 23:18
alex.barylski24-Mar-04 23:18 
QuestionCFile Read questioN? Pin
Maverick13-Dec-03 16:36
Maverick13-Dec-03 16:36 
AnswerRe: CFile Read questioN? Pin
Neville Franks13-Dec-03 17:43
Neville Franks13-Dec-03 17:43 
AnswerRe: CFile Read questioN? Pin
bryce14-Dec-03 17:27
bryce14-Dec-03 17:27 
General(?) about fine() from stl Pin
Snyp13-Dec-03 16:18
Snyp13-Dec-03 16:18 
GeneralRe: (?) about fine() from stl Pin
JWood13-Dec-03 17:04
JWood13-Dec-03 17:04 
GeneralRe: (?) about fine() from stl Pin
Bo Hunter13-Dec-03 18:54
Bo Hunter13-Dec-03 18:54 
GeneralRe: (?) about fine() from stl Pin
Snyp14-Dec-03 3:52
Snyp14-Dec-03 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.