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

  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,380
    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,868
    >>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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,662
    > 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: 2
    Last Post: 03-15-2019, 12:57 PM
  2. what functions are avaliable in kernel32.dll?
    By Fishskin in forum Windows Programming
    Replies: 3
    Last Post: 09-17-2005, 01:30 PM
  3. kernel32.dll
    By Fluffy_Bunny in forum C++ Programming
    Replies: 7
    Last Post: 07-15-2002, 01:59 AM
  4. .. caused an error in KERNEL32.DLL
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 05-15-2002, 01:52 PM
  5. Kernel32.dll, loadlibary() and GetProcAddress()
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 12-03-2001, 07:33 AM