-
February 9th, 2012, 09:28 PM
#1
error C2220: warning treated as error - no object file generated?
I feel very stupid for asking but i am stuck on this error when trying to build this driver in win2kddk
the error is as follows
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(454) : error C2220: warning treated as error - no object file generated
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(454) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(469) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(484) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(499) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(514) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(529) : warning C4018: '<' : signed/unsigned mismatch
c:\WINDDK\tmp\btcap\BtDigitizer.cpp(599) : warning C4018: '<' : signed/unsigned mismatch
the set of code for line 454 is below
// Second, the SVideo inputs if we have them.
DWORD VideoInPin = Pin;
DWORD Idx = GUID_INDEX;
for (DWORD PinToDo = 0; Idx < GUID_COUNT && PinToDo < GetBtCard().SVideoInputCount(); PinToDo++) {
BtXBar::InputPinInfo[Pin].Direction = KSPIN_DATAFLOW_IN;
BtXBar::InputPinInfo[Pin].Conn = VideoConSVideo0 + PinToDo;
BtXBar::InputPinInfo[Pin].PinType = KS_PhysConn_Video_SVideo;
BtXBar::InputPinInfo[Pin].RelatedPinIndex = 0;/*the audio pin*/
BtXBar::InputPinInfo[Pin].Medium.Set = STATIC_GUID[Idx];
BtXBar::InputPinInfo[Pin].Medium.Id = Instance;
BtXBar::InputPinInfo[Pin].Medium.Flags = 0;
BtXBar::Mediums[Pin] = BtXBar::InputPinInfo[Pin].Medium;
BtXBar::PinDirection[Pin] = FALSE;
Idx++;
Pin++;
}
If anything else is needed to make since of this error please let me know.
Thanks,
Yonu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|