thanks
thats what i did but i used a small 3rd party app to do it
Type: Posts; User: ukcpaul
thanks
thats what i did but i used a small 3rd party app to do it
hi
i am tring to get a autorun to open a *.*txt file
for example
[autorun]
open=text.txt
icon=star.ico
however it says invalid 32 app
to clear up that last bit
how can i get clicking on a network connection to run a c program
hi all
i have just finished this small program to log who made a connection along with the time and date.
#include <time.h>
#include <windows.h>
#include <stdio.h>
void main(int)
{
thank you Sorensen
and thanks to Salem for moving it for me (did not think of win pro. DOH!)
would anyone like to give me the cmd for time and date
UPDATE: I worked out time is GetSystemTime ...
*bump*
does anyone know how i can print the current logged on user?
win xp
i am about to start to try and write a program
i want to log who makes a dial up connection
i would like it to log the user (i have no idea how to do this)
the time (i was think could do this with...
for(i=0;i<entries-1;i++) //start of sort
{//printf("%d",entries);
for(i=0;i<entries-1;i++)
if(strcmp(line[i],line[i+1])>0)
{
//printf("%d",j);
temp=line[i];...
here is all my code
by far not the best way in the world to do it (as learning while doing)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
//#define MAX...
this is the bit of code i have a prob with
printf("Enter the filename to be opened: ");
scanf("%s",&filename);
printf("\n");
if((fptr=fopen(filename,"r"))==NULL)
{...
moved buffer and it worked
thx VVV my program is all down to you as you know :)
case 1: /*Reading in data*/
printf("\nEnter the artist: ");
//fgets((input)->artist);
fgets( ( *input ).artist, 48, stdin ); ( *input ).artist[strlen( ( *input ).artist ) - 1] = 0;...
i cant use scanf as i want to keep spaces
however when i try fgets it dont let me enter anything:mad:
i know scanf works which is why i wanted a gets version
VVV can you help :)
can someone tell me how i can transfer
scanf("%s",input->album);
to a gets (); function.
thx
i now feel quite small
it was so simple i couldnt see it :)
VVV thx for your help so far
but now stuck on entering values
int mode=0,i=0;
char filename[15],readletter;
FILE *fptr;
struct data{
char artist[48];
char album[48];
char ref[16];
lol my brain has had enough
ive been going at this c program allday
int mode=0,i=0;
char filename[15],readletter;
FILE *fptr;
struct data{
char artist[48];
char album[48];
int mode=0,i=0;
char filename[15],readletter;
FILE *fptr;
struct data{
char artist[48];
char album[48];
char ref[16];
float cost;
int year;
struct data *next;
yep that was it
i knew that bit of the code was ok
cheers
here si my code
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
int mode=0,readletter;