Tuesday, October 28, 2008

Small Sample code to call 'windows application' from C++Builder.

//---------------------------------------------------------------------------

#include
#include
#include


#pragma hdrstop

#include "openNotepadTest.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
char commandLine[200];


sprintf(commandLine,"notepad.exe TestReport.txt");

WinExec(commandLine, SW_SHOWNORMAL);
}
//---------------------------------------------------------------------------

Friday, October 24, 2008

Creation of New repository in SVN under Fedora9

#svnadmin create /var/svn/repos_ebook
#chown -R username:groupname ./var/svn/repos_ebook
#chmod 751 -R ./var/svn/repos_ebook
$svn import ~/Doc_eBook/ file:///var/svn/repos_ebook/ -m "Initial ebook checkin"

Adding ....................
Adding.................

$svnserve -d
[ xxx Svn_Repositories]$svn checkout svn://10.1.1.7/var/svn/repos_ebook/

A repos_ebook/xxxx.pdf
.....

CHECK INFO UNDER SVN LOCAL COPY
---------------------------------------
[q.yang@QuentinFedoraHome repos_ebook]$ svn info
Path: .
URL: svn://10.1.1.7/var/svn/repos_ebook
Repository Root: svn://10.1.1.7/var/svn/repos_ebook
Repository UUID: 58f1f484-073d-462f-9905-d575a86c2588
Revision: 12
Node Kind: directory
Schedule: normal

[q.yang@QuentinFedoraHome repos_ebook]$ pwd
/home/q.yang/Svn_Local/repos_ebook