how to copy qtintf.dll to system directory when .exe delphi runs?

Posted on 2003-03-02
Medium Priority
Last Modified: 2010-04-04
assalamo alekom,
hello friends..
1) I want to copy qtintf.dll to the system directory when I double clicked my .exe file on the other computers, independent of the windows version.

2) when I want to open windows directory i use %windir%, but how can i open the system directory and the program files and my documents in the same way?
Question by:aelabed
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

ILE earned 90 total points
ID: 8051632

working solution

var  s:string;

this is for system directory

for your application u mey use

easy aren't:))

Expert Comment

by:Lukasz Lach
ID: 8052007
var sdir: string;
  SetLength(sdir, 255);
  GetSystemDirectory(PChar(sdir), 255);
  SetLength(sdir, Pos(#0, sdir)-1);
  CopyFile(PChar(ExtractFilePath(Application.Exename)+'qtintf.dll'), PChar(sdir+'\qtintf.dll'), False);


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question