Whats all this .net stuff microsoft have???
Type: Posts; User: Granger9
Whats all this .net stuff microsoft have???
I have made a menu but when I go to compile it I get these errors
Sorry but that only works for WIN XP and 2K and I need it to work for WIN XP and 98 which I have said in a previous post.
So can anyone help me?
It didn't work I did everything you said apart from but the close windows function in because I wanted to see if it would stop the shutdown completey but it did not. Heres my code so you can check...
Ok thanks I will try it. I had to rename the shutdown variable because it said I was redeclareing it (I renamed it as shutdownPC)
I will be back to tell you if it works
Sorry I'm new to all of this how do you declare shutdown you to false. Do you declare a bool variable like this:
BOOL shutdown;
Thanks for the help
Can someone give me a working example how to stop windows shutting down please because I just can't do it.
This is to help me with me PC timer which I have a thread on and there has been...
I have been looking at MSDN at WM_QUERYENDSESSION and it says somthing about XP but I don't quite understand what it means, can someone help me becuause this might solve my problem. MSDN...
No the Message box did not appear! I also got my friend to try it on his Windows 98 box and it didn't work on there either.
Can someone try and build and run it on there PC to see if they can get...
LRESULT CALLBACK Procedure(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_QUERYENDSESSION:
case WM_DESTROY:
case WM_CLOSE:
get_second_time();...
#include <windows.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
void remove_char( char *string, const char item )
{
char *at = strchr( string, item );
Code tags put little lines and a title of code around your code like this
#include <stdio.h>
int main(void)
{
printf("Code tags are great");
return 0;
Right I have got everything working apart from one thing, thats when the computer is turned off it doesn't run get_second_time();!! I am extreamly new to programming in windows and I have just copied...
Sorry I forgot to put #include<string.h> once I put that in it got rid of all the warnings.
Thanks all for the help :cool:
#include<time.h>
#include<stdio.h>
void remove_char( char *string, const char item )
{
char *at = strchr( string, item );
while( *at ) *at++ = *(at + 1);
}
The output of the program is like this:
but i want it to look like this:
#include<time.h>
#include<stdio.h>
int main(void)
{
char hello[25];
time_t timer;
timer=time(NULL);
strcpy(hello,asctime(localtime(&timer)));
timer=time(NULL);
I'm new to windows programing, I have been programming DOS in C for a while now and I was wondering is the code I use there vaild when programming for windows. For example if I wanted to Open and...
I want to make a program which times the ammount of time my computer is switched on for. I want it to log this in a text file like this
30/12/02
12:50->15:00
I know how to make a program which...
Does anyone know where I can get a web host from which is compatible with C cgi scripts??
Thanks
I have already asked this question before but I didn't really get anywhere. But now I have a new way of explaining what I want to do.
The code below reads a file off my computer and then prints...
There is some info. about stream sockets here http://www.ecst.csuchico.edu/~beej/guide/net/html/ but I not sure about the others. I know if you do a search at google you will find somthing on raw...
Thank you for that also when I was installing it I did not install MSDN but now I want to, how do i do it???
I have MSVC++ but when I click on
Help|Microsoft on the web|Web tutorial it opens Microsoft Internet expoloer and because I have AOL nothing happens so can someone please give me the address to...
Thanks everyone for the help. I got VC++ now!!! :p