It sounds like you have neglected to put the appropriate library in the
linker command.
RTFM. timeSetEvent CLEARLY states that it is found in winmm.lib. Did you
add this library to your linking step? If not, then the message is correct.
Note that a mismatch between cdecl and stdcall applies whether the project
is in VS or any other possible build. These are properties of the language,
not the system in which the code is built. But this is unlikely, since the
error message clearly shows it is trying to call a stdcall function, which
is the correct function to call.
What is odd is that there is no similar error message for timeKillEvent.
Your cleanup code should be calling this to kill the timer.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Monday, July 04, 2011 10:22 AM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Implementing DLL in UMDF
What dos your sources file look like? Ot is this in VS? Could be a mismatch
between cdecl and stdcall if the project is in VS
d
debt from my phone
-----Original Message-----
From: xxxxx@gmail.com
Sent: Monday, July 04, 2011 6:21 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Implementing DLL in UMDF
Hi Doron,
Your answer helped a lot ! the problem really was the export “C”.
However, the linker is still unsatisfied and the error message is:
error LNK2019: unresolved external symbol __imp__timeSetEvent@20 referenced
in function “public:
virtual long __stdcall CMyDevice::OnSelfManagedIoInit(struct IWDFDevice *)”
(?O
xxxxx@CMyDevice@@UAGJPAUIWDFDevice@@@Z)
1>c:\driverdevelop\virtual_my_change\virtualserial\objchk_win7_x86\i386\
1>virtuals
erial.dll : error LNK1120: 1 unresolved externals
Does this problem is because the missing of the lib file ?
If yes, how can i supply it to the linker ?
Thanks.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
–
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.