HELP C:\WINDOWS\SYSTEM\KERNEL32.DLL', not match

This is a discussion on HELP C:\WINDOWS\SYSTEM\KERNEL32.DLL', not match within the C Programming forums, part of the General Programming Boards category; HELP me ............. when i call a function from main void main() { password(); } void password() //This Line .occur ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    HELP C:\WINDOWS\SYSTEM\KERNEL32.DLL', not match

    HELP me .............
    when i call a function from main
    void main()
    {
    password();
    }

    void password() //This Line .occur this when it goes here
    {
    .....
    }

    Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.

    and as it occur too many then the system stop ........
    so how ?.................
    ______________________
    Wut ?

  2. #2
    Unregistered
    Guest
    post your exact code

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    Perhaps it has something to do with the debug symbol file. Can you please be a bit more specific? Are there any more warnings given when compiling, linking and running?

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    22

    is like this one

    This is a part of my code.....i copy it out ....

    The Debug window

    Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.
    The thread 0xFFF9F671 has exited with code 0 (0x0).
    The thread 0xFFF9E0B9 has exited with code 0 (0x0).
    The thread 0xFFF9D9D9 has exited with code 0 (0x0).
    The program 'C:\New Folder\Debug\Cpp1.exe' has exited with code 0 (0x0).

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

    int encrypted();

    void main ()
    {
    int a;
    a=encrypted();
    }

    int encrypted()
    {

    //int b=5;
    //information(b);

    char pass[6]={0},id[6]={0};
    char pass1[6]={0},id1[6]={0};
    int i=0;
    int p=0;

    FILE *in;
    in=fopen("password.txt","r");

    fscanf(in,"%[^|]|%[^|]|",&id1,&pass1);
    fclose(in);

    printf(
    "****Id is | Jeng |*****\n"
    "****Password is | Akam |*****\n\n");

    do {

    printf("Enter User ID\n");
    gets(id);
    fflush(stdin);
    printf("Enter Password\n");
    gets(pass);
    fflush(stdin);

    p++;

    for (i=0;i<6;i++)
    {
    switch (pass[i])
    {
    case 'A' : pass[i]='c';
    break;
    case 'k' : pass[i]='d';
    break;
    case 'a' : pass[i]='b';
    break;
    case 'm' : pass[i]='k';
    break;
    default:
    break;
    }

    switch (id[i])
    {
    case 'J' : id[i]='y';
    break;
    case 'e' : id[i]='e';
    break;
    case 'n' : id[i]='e';
    break;
    case 'g' : id[i]='e';
    break;
    default:
    break;
    }
    }


    if (strcmp(id,id1)==0)
    {
    if(strcmp(pass,pass1)==0)

    printf("Password Correct !!\n\n");

    system("pause");
    fflush(stdin);
    fclose(in);
    // mainmenu();
    }
    else

    {
    printf("Incorrect Password / ID!!!\n\n");

    if(p==3)
    {
    printf("Access Denine!!!");
    system("pause");
    fclose(in);
    }

    }


    }while (p<3);
    return 0;
    }
    ______________________
    Wut ?

  5. #5
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    >>Loaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.

    This is normal as far as I know.

    I would say there is another problem in your code.
    (Not mentioning the void MAIN() or the spelling mistake in [Access Denine!!!] )

    Try stepping thru in the compiler and watching for the crash.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,541
    > char pass[6]={0},id[6]={0};
    > char pass1[6]={0},id1[6]={0};
    First thing I would do would be make these arrays larger, like say 100

    The reason?
    > for (i=0;i<6;i++)
    You seem to be assuming that there are 6 chars in these strings, where in fact there is only room for 5 (and a \0 for a total of 6)

    > if (strcmp(id,id1)==0)
    string functions react badly to missing \0 characters

    At some point, you will want to completely forget about
    > gets(pass);
    Is a dangerous function - all too easy to overflow the buffer - fgets is a much better function.

    > fflush(stdin);
    This has undefined behaviour - basically means it works differently for different people.

    > void main ()
    main returns an int

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    22
    The Code exactly is hang in the abc line there .....but why the file will duplicate ?................
    i rename it already ...........and the file pointer create one more new.................................
    ??????????????


    void updatesales(stock_t *up)
    {
    int b=4;
    information(b);

    double a=120.0/100.0;
    fflush(stdin);

    system("rename sample.txt temp.txt");
    //system("del sample.txt");
    FILE *newstock,*salesrpt,*temp,*out;

    out=fopen("sample.txt","a");
    newstock=fopen("sales.txt","a+");
    temp=fopen("temp.txt","r");
    salesrpt=fopen("salesrpt.txt","a+");

    if (temp==NULL)
    { printf("Error");
    system("pause");
    return;
    }

    abc :while(!feof(temp))
    {
    fscanf(temp,"%d|%[^|]|%[^|]|%lf|%d|%d\n",&up->pro_id,up->desc,up->depart,&up->cost,&up->reorder,&up->qty);


    while(!feof(newstock))
    {
    fscanf(newstock,"%d|%d|%d|",&up->promoter,&up->pro_id_sold,&up->qty_sold);


    if(up->pro_id!=up->pro_id_sold)
    {

    fprintf(out,"%d|%s|%s|%lf|%d|%d\n",up->pro_id,up->desc,up->depart,up->cost,up->reorder,up->qty);
    goto abc;

    }
    else
    {
    up->qty-=up->qty_sold;
    fprintf(out,"%d|%s|%s|%lf|%d|%d\n",up->pro_id,up->desc,up->depart,up->cost,up->reorder,up->qty);

    up->selling_price=(up->cost*a);
    up->sales_amount=(up->selling_price*up->qty_sold);

    fprintf(salesrpt,"%d|%d|%d|%lf|%lf\n",up->pro_id,up->promoter,up->qty_sold,up->selling_price,up->sales_amount);

    goto abc;
    }

    }


    }
    fclose(out);
    fclose(newstock);
    fclose(salesrpt);
    fclose(temp);
    printf("Successfully Updated!!");
    system("del temp.txt");
    system("pause");
    mainmenu();
    }
    ______________________
    Wut ?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-30-2009, 06:37 PM
  2. no match for 'operator>>'
    By Taka in forum C++ Programming
    Replies: 3
    Last Post: 03-30-2009, 12:17 AM
  3. No Match For Operator+ ???????
    By Paul22000 in forum C++ Programming
    Replies: 24
    Last Post: 05-14-2008, 10:53 AM
  4. Function validation.
    By Fhl in forum C Programming
    Replies: 10
    Last Post: 02-22-2006, 07:18 AM
  5. 2 array match
    By ajastru2000 in forum C++ Programming
    Replies: 5
    Last Post: 07-18-2003, 07:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21