Halaman

Tampilkan postingan dengan label codegear. Tampilkan semua postingan
Tampilkan postingan dengan label codegear. Tampilkan semua postingan

Rabu, 26 Oktober 2011

Delphi : Working with path, file name, directory

From time to time, you would need file manipulations integrated with your software(s), and you usually needs the library for working with your directory, these are couples of directory routines which is very much usefull

  1. ExtractFilePath : this will returns the directory for a file, including a backslash("\" ~ Env. Windows) 
  2. ExpandFileName: Example : "c:\program files\yohan\is\cool\..\.." will returns "c:\program files\yohan\"
Two very handy functions! :)

Sabtu, 25 Juni 2011

Web Application using Pascal Language??

Yes!! This is indeed possible
ever wanted to create web apps using our favorit language (Pascal)??
you could do it using WebSnap, building web apps in a snap! hehe

here is a step by step guide for you to run and build a simple hello world application using CodeGear 2007 + websnap.
  1. Using wizzard, create a websnap application : file >> New >> Other >> Websnap Application
  2. Select  Web app debugger executable
  3. Enter your Class name and Page name
  4. Hit that OK Button
  5. Important, websnap use Indy9 instead of Indy10 so you should point your project search path to Indy9 Lib, on my computer it is in C:\Program Files\CodeGear\RAD Studio\5.0\lib\Indy9
  6. Now click on Run
  7. After the project compiles and runs, go to the IDE, Tools >> Web App Debugger
  8. On the Web App Debugger form, click on the Start button, now click on the default address http://localhost:8081/ServerInfo.ServerInfo
  9. Important, if you are on Window 7, or if you encounter an 404 Page you need to allow all of the firewalls permissions, go to the CodeGear installation directory(on my computer it is in C:\Program Files\CodeGear\RAD Studio\5.0\bin) and then run serverinfo.exe, try again that http://localhost:8081/ServerInfo.ServerInfo
  10. Congratulations!! this is your first WebSnap applications (Web app built on pascal language). Now.. go wild! :)
Have a great day everyone! This should revolutionize RAD WEB APP