MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-24-08, 22:15
PC-XT's Avatar
PC-XT PC-XT is offline
Master Sergeant
 
Join Date: Oct 2007
Location: on a farm
Posts: 646
Thanks: 27
Thanked 80 Times in 74 Posts
Question Dev-C++ trouble with windows functions

Sleep(milliseconds) and timeGetTime() give compiler errors that they aren't defined. I included <windows.h>. Do I need a using statement for them or something? Google gave me Borland pages that said all you need is <windows.h>.
__________________
I.think(code);
I.eat(code.spaghetti);
Sponsored links
  #2  
Old 04-26-08, 19:12
PC-XT's Avatar
PC-XT PC-XT is offline
Master Sergeant
 
Join Date: Oct 2007
Location: on a farm
Posts: 646
Thanks: 27
Thanked 80 Times in 74 Posts
Lightbulb Re: Dev-C++ trouble with windows functions

I got Sleep working. I had misspelled it in one part of code.:o I googled and found other questions about timeGetTime and people saying to just use clock_t clock() instead, so that's what I did.
__________________
I.think(code);
I.eat(code.spaghetti);
  #3  
Old 04-26-08, 23:27
goldfish's Avatar
goldfish goldfish is offline
Lt. Sushi.DC
 
Join Date: Jun 2002
Location: UK
Posts: 7,137
Thanks: 0
Thanked 3 Times in 3 Posts
Default Re: Dev-C++ trouble with windows functions

Quote:
Requirements

Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Mmsystem.h; include Windows.h.
Library: Use Winmm.lib.
Possibly you needed to make sure that the library was linked properly? I've found dev-cpp to be a bit flakey with libraries.

EDIT: Oh and, possibly silly question, but you do have the SDK installed right?
__________________
(`._.[ G|Fh ]._.) Folding@Geeks, TEAM 12072 http://www.majorgeeks.com/page.php?id=9
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some functions not working... lifer53 Software 3 01-11-08 19:54
A problem with C functions Xocoatl Software 0 12-05-06 12:58
programming functions in c troublesome Software 2 11-12-06 07:33
several windows functions will now not work, please help!! scar1 Malware Removal 1 07-07-06 23:03
functions Itsme1 The Lounge 1 04-03-05 19:07


All times are GMT -5. The time now is 14:54.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds


All content Copyright MajorGeeks.com source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger