#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    London
    Posts
    13
    Rep Power
    0

    writing to INI file


    Hi friends,

    I am trying to write to a INI file using the following code:

    path = Directory1 + "abc.ini";

    pIniFile = new TIniFile( path.c_str() );

    tmIniFile->pIniFile->WriteString("System","DataPath", tmIniFile->DataPath=Directory+PEnd);

    //.......................................................................................
    what i really want is to assigne the value of DataPath =directory+Pend

    At the moment my application is getting compiled but when i click ok to run this code i get error message
    Project setup.exe raised exception class EAccess Violation with Mesage 'Access Violation at address 40004B60 in module 'vcl50.bpl'. write of adress 0000000C. Precess stopped.
    Attached Images
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    Please do not start two exact thread on the same subject. I have deleted your old thread.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Location
    London
    Posts
    13
    Rep Power
    0
    Sorry for restarting the issue, I can see the probles it will cause in future.

IMN logo majestic logo threadwatch logo seochat tools logo