cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: WITHOUT_MM_LIB question

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 28 May 2004 20:47:21 +0200

"David Byron" <DByron_at_everdreamcorp.com> said:

> Can you tell me what commands to execute so I can look at winmm.lib and
> figure this out for myself?

One clue is using 'pedump winmm.lib'. It shows
  0000A216 __imp__timeGetTime_at_0
  0000A216 _timeGetTime_at_0

both at the same address, so both must be imports. Also:
  Import Library Record
  Version: 0 Machine: 14C TimeDate: 3D5067B0 SizeOfData:25
  Hint: 163
  Type: IMPORT_OBJECT_CODE (0)
  NameType: IMPORT_OBJECT_NAME_UNDECORATE (3)
  Symbol: _timeGetTime_at_0
  DLL: WINMM.dll

There are several pedump programs around. Once good is from Lcc-win32
at http://www.cs.virginia.edu/~lcc-win32/

> In the statically linked case, what happens if we call timeGetTime() but
> winmm.dll isn't there?

You get the usual messagebox from the Win loader; "Library winmm.dll not
found on path" etc. Similar if winmm.dll is there, but timeGetTime isn't in it.

--gv
Received on 2004-05-28