🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10627

trying to acces to a file by means of a link file

#10627
From: Frank Chisme
Date: Thu, 01 Apr 2004 13:59
32 lines
1681 bytes
Hello,

Developing an application with C++Builder 5.0 I have the following problem:

I have a ini file in C:\WINNT\system32 called personal.ini
In my application folder (D:\Allmine\myapp\) y have mi application
runner.exe, and a link to personal.ini file (personal.ini.lnk).
When runner.exe starts, try to access to personal.ini file, by menas of
personal.ini.lnk. To be exact, what code does is:

{
 FILE *hFile;
 char dummy[256];
 char *ptr;
 int  sec = -1;
 int  n;

 /* opening .INI */

 if ((hFile = fopen(fName,"rt")) != NULL)
 {
  while (fgets(dummy,sizeof(dummy),hFile))
  {


where "fName" is "personal.ini.lnk".
And my application doesn�t get to personal.ini content.
�How can I access personal.ini file by means of personal.ini.lnk?


Thank you!!
Technical Details
Message-ID: <406c1fc2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,a53a58dfad4a9f1a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-01 06:10:19 PST
From: "Frank Chisme" <frankchisme@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: trying to acces to a file by means of a link file
Date: Thu, 1 Apr 2004 15:59:08 +0200
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.81.122.114
Message-ID: <406c1fc2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080827842 80.81.122.114 (1 Apr 2004 05:57:22 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail