Tips & Tricks
Using GIT to clone a git repository

Open the PTSource Shell and issue the command :

git clone git://github.com/gituser/repository_name

Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.

Using CVS to  clone a CVS repository

Open the PTSource Shell and issue the command :

cvs -z3 -d:pserver:anonymous@repository_name.cvs.sourceforge.net:/cvsroot/repository_name co -P modulename

Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.

Using RSYNC to  clone a CVS repository

Open the PTSource Shell and issue the command :

rsync -ai a.cvs.sourceforge.net::cvsroot/repository_name/ /my/local/dest/dir/

Now you shoud have a repository copy in you computer, can then configure, make and make install if you wish.

How to compile a TCL script into an EXE

In this example we have a the birds.tcl script in the Birds directory. Open the PTSource Shell and issue the command :

 cd Birds
 freewrap birds.tcl
You now should have a full exe from a tcl script. If you want to have custom icons in your app, then run the following command instead :
 cd Birds
  freewrap birds.tcl -i my_custom_icon.ico
Freewrap only supports the following icons:

  • 16×16 16 colors
  • 32×32 16 colors
  • 32×32 2 colors

Therefore your icon file should have the above icons.

How to check exe dependencies with depends

Open the PTSource Shell and issue the command :

 depends exetocheck.exe

You will get a list of the exe dependencies

How to obfuscate a php file using the PHP-HUM humcl compiler

Open the PTSource Shell and issue the command :

 humcl -e inphpfile.phh outphpfile.phh

The result outphpfile.phh will be obfuscated

How to import lib definition files for TCC

To link with DLLs, TCC uses import definition files (.def) instead of libraries.

The included 'tiny_impdef' program may be used to make additional .def files for any DLL. For example:

Open the PTSource Shell and issue the command :

     tiny_impdef.exe opengl32.dll

Put opengl32.def into the tcc/lib directory at “C:\PTSOURCE\Platform\PTEditor\bin\lib”. Specify #pragma comment (lib, “opengl32”) at the top of your code to link a program that uses opengl32.dll.

We use cookies to personalize and enhance your experience on our site. By using our site, you agree to our use of cookies. This website is automatically translated from the english language.
  More information about cookies