Search:

Type: Posts; User: ukcpaul

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    4,674

    thanks thats what i did but i used a small 3rd...

    thanks

    thats what i did but i used a small 3rd party app to do it
  2. Replies
    4
    Views
    4,674

    text files and autorun?

    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
  3. Replies
    1
    Views
    1,127

    to clear up that last bit how can i get...

    to clear up that last bit

    how can i get clicking on a network connection to run a c program
  4. Replies
    1
    Views
    1,127

    exe a dial up connection

    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)
    {
  5. Replies
    4
    Views
    1,430

    thank you Sorensen and thanks to Salem for...

    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 ...
  6. Replies
    4
    Views
    1,430

    *bump* does anyone know how i can print the...

    *bump*

    does anyone know how i can print the current logged on user?
  7. Replies
    4
    Views
    1,430

    win xp

    win xp
  8. Replies
    4
    Views
    1,430

    a dial up logging program

    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...
  9. Thread: sorting

    by ukcpaul
    Replies
    2
    Views
    982

    sorting

    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];...
  10. Replies
    7
    Views
    3,496

    here is all my code by far not the best way in...

    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...
  11. Replies
    7
    Views
    3,496

    string to char array

    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)
    {...
  12. Thread: scanf to gets

    by ukcpaul
    Replies
    4
    Views
    1,295

    just got head back for a sec

    moved buffer and it worked


    thx VVV my program is all down to you as you know :)
  13. Thread: scanf to gets

    by ukcpaul
    Replies
    4
    Views
    1,295

    case 1: /*Reading in data*/ printf("\nEnter...

    case 1: /*Reading in data*/
    printf("\nEnter the artist: ");
    //fgets((input)->artist);
    fgets( ( *input ).artist, 48, stdin ); ( *input ).artist[strlen( ( *input ).artist ) - 1] = 0;...
  14. Thread: scanf to gets

    by ukcpaul
    Replies
    4
    Views
    1,295

    spaces

    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 :)
  15. Thread: scanf to gets

    by ukcpaul
    Replies
    4
    Views
    1,295

    scanf to gets

    can someone tell me how i can transfer

    scanf("%s",input->album);

    to a gets (); function.

    thx
  16. Thread: molloc

    by ukcpaul
    Replies
    3
    Views
    1,867

    thx again VVV

    i now feel quite small
    it was so simple i couldnt see it :)
  17. Thread: molloc

    by ukcpaul
    Replies
    3
    Views
    1,867

    memory writting error

    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];
  18. Thread: molloc

    by ukcpaul
    Replies
    3
    Views
    1,867

    ok works now how do i?

    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];
  19. Thread: molloc

    by ukcpaul
    Replies
    3
    Views
    1,867

    linked lists

    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;
  20. Replies
    2
    Views
    1,891

    thx

    yep that was it

    i knew that bit of the code was ok

    cheers
  21. Replies
    2
    Views
    1,891

    prob with fopen

    here si my code


    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>

    int main()
    {
    int mode=0,readletter;
Results 1 to 21 of 22