Click here to Skip to main content
15,914,322 members
Home / Discussions / C#
   

C#

 
GeneralRe: port Pin
Christian Graus7-Jul-05 18:31
protectorChristian Graus7-Jul-05 18:31 
GeneralRe: port Pin
User 66587-Jul-05 21:04
User 66587-Jul-05 21:04 
GeneralRe: port Pin
Dave Kreskowiak8-Jul-05 4:05
mveDave Kreskowiak8-Jul-05 4:05 
Generalxls reading into an array Pin
amitmohanty7-Jul-05 15:57
amitmohanty7-Jul-05 15:57 
GeneralModify application pooling of COM+ component Pin
Johny Ng7-Jul-05 15:56
Johny Ng7-Jul-05 15:56 
GeneralSave Button Pin
tatchung7-Jul-05 15:20
tatchung7-Jul-05 15:20 
GeneralTimeOut exception with HttpWebRequest.getResponse but not with IE Pin
Jason Manfield7-Jul-05 10:48
Jason Manfield7-Jul-05 10:48 
GeneralRe: TimeOut exception with HttpWebRequest.getResponse but not with IE Pin
squawk7-Jul-05 16:36
squawk7-Jul-05 16:36 
GeneralRe: TimeOut exception with HttpWebRequest.getResponse but not with IE Pin
Dave Kreskowiak8-Jul-05 4:00
mveDave Kreskowiak8-Jul-05 4:00 
GeneralRe: TimeOut exception with HttpWebRequest.getResponse but not with IE Pin
squawk11-Jul-05 18:02
squawk11-Jul-05 18:02 
GeneralRe: TimeOut exception with HttpWebRequest.getResponse but not with IE Pin
Dave Kreskowiak12-Jul-05 1:05
mveDave Kreskowiak12-Jul-05 1:05 
Generalcrystal report pictures Pin
kornstyle7-Jul-05 8:50
kornstyle7-Jul-05 8:50 
GeneralGlobally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger7-Jul-05 8:39
Florian Albrechtskirchinger7-Jul-05 8:39 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Dave Kreskowiak7-Jul-05 9:54
mveDave Kreskowiak7-Jul-05 9:54 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger8-Jul-05 2:57
Florian Albrechtskirchinger8-Jul-05 2:57 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Dave Kreskowiak8-Jul-05 3:55
mveDave Kreskowiak8-Jul-05 3:55 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger9-Jul-05 4:30
Florian Albrechtskirchinger9-Jul-05 4:30 
GeneralRe: Globally intercepting keyboard events and blocking them if required Pin
Florian Albrechtskirchinger13-Jul-05 7:43
Florian Albrechtskirchinger13-Jul-05 7:43 
QuestionTimeSpans as Int's? Pin
YawgmothIII7-Jul-05 5:48
YawgmothIII7-Jul-05 5:48 
Ok i need to know how to figure out how many milliseconds have passed over a period of time. I do this with two... "time stamps" - dtmCurrent & dtmPrevious - I then just subtract (dtmCurrent-dtmPrevious) and i get a TimeSpan. How do i convert that TimeSpan into an int? I need that int to be how many milliseconds have passed in that TimeSpan, though.

Of course if there is a better way to do this... without a timer... then i'm all up for suggestions. Big Grin | :-D

Here's a snipet of my code thats used.

bool FirstRun = true;<br />
		DateTime dtmCurrent;<br />
		DateTime dtmPrevious;<br />
<br />
		private void MainGame()<br />
		{<br />
			if (FirstRun == true)<br />
			{<br />
				this.ObjectEngine.Create_Unit(1,0,1,400,400,0);<br />
				FirstRun = false;<br />
				dtmCurrent = DateTime.Now;<br />
			}<br />
			dtmPrevious = dtmCurrent;<br />
			dtmCurrent = DateTime.Now;<br />
			<br />
			for (int i=0; i<ObjectEngine.ActiveUnitQPt; i++)<br />
			{<br />
				Sprite_Update((dtmCurrent - dtmPrevious), i);<br />
			}<br />
			SpriteEngine.Draw();<br />
		}

AnswerRe: TimeSpans as Int's? Pin
leppie7-Jul-05 6:00
leppie7-Jul-05 6:00 
QuestionIs Someone aware of this Error? Pin
just4ulove77-Jul-05 5:45
just4ulove77-Jul-05 5:45 
AnswerRe: Is Someone aware of this Error? Pin
Alomgir Miah7-Jul-05 5:57
Alomgir Miah7-Jul-05 5:57 
GeneralRe: Is Someone aware of this Error? Pin
just4ulove77-Jul-05 7:48
just4ulove77-Jul-05 7:48 
GeneralRe: Is Someone aware of this Error? Pin
Guffa7-Jul-05 7:55
Guffa7-Jul-05 7:55 
GeneralRe: Is Someone aware of this Error? Pin
just4ulove77-Jul-05 7:59
just4ulove77-Jul-05 7:59 

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.