[Permalink]
Tutorial: Barcode in REALbasic
Cooking Portable Delphi In Hell
SkinCrafter Made Easy….Skinning VB6 Application

Tutorial: Barcode in REALbasic
Officially, REALbasic is not supported by BarCodewiz, but guess what?? it took one minute to make it works in REALbasic…download my source code here, then you can further modify it to suit your needs

Photobucket

Photobucket

Photobucket

Photobucket

Photobucket

Requirement:
Barcodewiz ActiveX (i’m using ver 2.56)
REALbasic IDE (i’m using REALbasic 2008r2 Pro)

// the code

Window1.Open:
// similar to sub form_load() in VB
Sub Open()
editfield1.setfocus
MyBarcode
End Sub

Window1 Control popsim: //popupmenu control
Sub Change()
MyBarcode
End Sub

Window1 Control EditField1: //editfield control
Sub TextChange()
MyBarcode
End Sub

Window1.MyBarcode:
//this is method
Sub MyBarcode()
//////////////////////////////////////////////////////////////////////
‘Brought to you by Andra
‘Coderockstar Inc
‘Indonesia
‘I’m using BarCodeWiz ActiveX 2.56
‘pokel.wordpress.com
‘andralance at gmail dot com
/////////////////////////////////////////////////////////////////////
dim simbol,simbol2 as string
dim simbol_conv_to_numeric as integer

simbol=left(popsim.text,2)
simbol2=trim(simbol)
simbol_conv_to_numeric=val(simbol2)
barcodewiz1.symbology=simbol_conv_to_numeric
barcodewiz1.barcode=editfield1.text
End Sub

WARNING
barcodewiz.dll is required and must be correctly registered. See error pic below.
use this command to register: REGSVR32 barcodewiz.dll
Photobucket

Cooking Portable Delphi In Hell
Care for yet another mischief anyone???? here we go

1. grab andy’s portable turbo delphi lite here (88 MB), The portable, lite and free version of Turbo Delphi, which designed to run on any computers and USB disks without installation.
2. extract the files (final size=178 MB)
3. navigate to /help folder and delete the delphi.chm help files (61 MB, what a massive help!), 178 MB – 61 MB = 117 MB
4. Compress it (rar, isz, 7z, zip; final size, approx 30 MB)

so what’s the point anyway??? ;) hehehehe……well….we will squezze turbodelphi hard like there’s no tomorrow ;)

5. grab winmount archive mounter here
Photobucket
6. mount the compressed files
Photobucket
7. congrats…please welcome your new small, fully functioning portable turbo delphi IDE (final size, approx 30 MB)
Photobucket

plus: .net free

disclaimer: use it at your own risk

SkinCrafter Made Easy….Skinning VB6 Application
Kalo kalian pake SkinCrafter di VB6, sampel kode di help filenya kan posisi skin filenya di hard-coding gitu yak, kayak gini:

Private SkinOb As New SKINCRAFTERLib.SCSkin3
Private Sub Form_Initialize()
SkinOb.InitLicenKeys “SKINCRAFTER”, “SKINCRAFTER.COM”, “support@skincrafter.com”, “DEMOSKINCRAFTERLICENCE”
SkinOb.DefineLanguage 2
SkinOb.InitDecoration 1
SkinOb.LoadSkinFromFile “D:\\Skin.skf”
SkinOb.ApplySkin
End Sub

Untuk ngatasin ini pake App.Path aja gw yakin kebanyakan ente dah pada tau yak, ni sampel kode gw

Private SkinOb As New SKINCRAFTERLib.SCSkin3
Private Sub Form_Initialize()
Dim Lokasi As String
SkinOb.InitLicenKeys “SKINCRAFTER”, “SKINCRAFTER.COM”, “support@skincrafter.com”, “DEMOSKINCRAFTERLICENCE”
SkinOb.DefineLanguage 2
SkinOb.InitDecoration 1
Lokasi = App.Path & “\skin.skf”
SkinOb.LoadSkinFromFile Lokasi
SkinOb.ApplySkin
End Sub

Plus supaya bisa jalan dengan baik pastikan file berikut elo sertakan
GDIPLUS.DLL
MFC80.DLL
Microsoft Visual C++ 2005 SP1 Redistributable Package
SkinCrafter3.dll

dan SkinCrafter3.dll harus di register di sistem, kalo mo manual sih kayak gini caranya

REGSVR32.EXE SkinCrafter3.dll

lebih oke kalo installermaker/setupcreator/apapun package creator pilihan elo mendukung registrasi otomatis. kalo gak yah manual aja ataw pake bat file…gampang kan

happy coding folks….

3 Responses to “MyTutorial”


  1. 1 Do ana November 5, 2009 at 1:57 am

    Can you share your explanation in english? Appreciate if you support.

  2. 2 Do ana November 5, 2009 at 2:00 am

    Kalo kalian pake SkinCrafter di VB6, sampel kode di help filenya kan posisi skin filenya di hard-coding gitu yak, kayak gini:

    Untuk ngatasin ini pake App.Path aja gw yakin kebanyakan ente dah pada tau yak, ni sampel kode gw

    lebih oke kalo installermaker/setupcreator/apapun package creator pilihan elo mendukung registrasi otomatis. kalo gak yah manual aja ataw pake bat file…gampang kan

    I don’t understand

  3. 3 pokel November 5, 2009 at 11:50 am

    basically….i’m saying:

    if u use skincrafter in vb6, the skin file position is hard coded by default….so if your costumer installed your application on their machine in different folder, chances are the skin won’t show, to prevent this simply use the relative/soft-coded approach….

    pls refer to the sourcecode


    Dim Lokasi As String


    Lokasi = App.Path & “\skin.skf”
    SkinOb.LoadSkinFromFile Lokasi

    …lebih oke kalo installermaker/setupcre…

    the SkinCrafter3.dll file must be registered in the system…to make it simple, use the setup creator/install maker to auto-register the dll file….if you prefer the old-skool way u can create batch file —> REGSVR32.EXE SkinCrafter3.dll

    btw….thanks for visiting my humble blog ana;)


Leave a Reply




WebMercenary v2.0


Elang Dari Kerajaan Matahari

Programming language enthusiast

An engineer by education, an IT contractor by profession

I saw myself as a man of diverse interest.....ranging from literature to shadowy world of cloak-and-dagger to human psyche

Still in love with BeOS/Zeta, the slick, beautiful and once revolutionary OS.
Seduced by the beauty of Mac OS X Leopard and iPhone.
Deeply admired REAL software for its true cross-platform IDE 'REALbasic'; Delphi for its true RAD environment; RemObjects Chrome (now Oxygene) for bringing the joy of Pascal to .net platform

Currently living in Medan Indonesia, graduated from Mechanical Engineering Department - Universitas Sumatera Utara - Medan

Key expertise:
cross-platform application development (win32, linux, mac), web development, graFX design, rotary & static equipment, turbomachinery, HVAC, finite element method


....Life is daring adventure or nothing at all...get onboard....


PageRank Checking Icon


andralance (Gtalk ID)

My status
andralance (Skype ID)



...the thing that solves problems, is not the programming language, the critical asset to solving the programming objective is the programmer...

ToolBox
REALbasic 2008r4.2
VS 2005
Aptana
RemObjects Chrome 2.0
RemObjects SDK
SharpDevelop (C#, VB05)
Delphi 2009
Delphi4PHP
Movamp (PHP,MySQL,Apache,CFusion)
Stylus XML Studio
VB 6.0
SQLMaestro (MySQL & FB)
Zend Studio 5.5
X-Mild + Cappuccino

AndTweet

  • waktu disidang MK kemaren, pas ngedengerin rekaman sadapan kok ya semua orang ngeliat kearah pengeras suara...kekekekeke...lucu ye 1 week ago
  • A computer once beat me at chess, but it was no match for me at kickboxing 2 weeks ago
  • There's always a darkness to bring u down, and there's always a light to shine u up, when u have no clue anymore, look into your heart... 2 weeks ago
  • Music is the poetry of the air 2 weeks ago
  • dingin kalilah ruang server ni 2 weeks ago

Berapa Harga Blog Ini?


My blog is worth $17,866.23.
How much is your blog worth?

Blog Stats

  • 76,660 hits

Stuff I’ve Built

Some of my portfolio (email me for full-listing)

Desktop Application
MyExpense (REALbasic+RealSQL) platform: win32, linux, mac
Keep track where your money goes

MyBook 1.0 (REALbasic+RealSQL) platform: win32, linux, mac
Books collection management system

MyBook Codename: Reboot 1.5 (REALbasic+MySQL) platform: win32, linux
Highly modified version from previous version. I tried to hide away as much of MySQL db things i.e: create database, table and field from the user as possible. Just run the MyBook, type your MySQL login and u’re ready to get up and running. The built in database builder will take care the rest.

InLabs (REALbasic+RealSQL) platform: win32, linux, mac
Lab Management system, inc: registration, scoring, asset management, billing and payment, etc

Kindyn (VB 6.0) platform: win32
Kinematics And Dynamics Analysis Simulation Of Slider-Crank Mechanism

Medsys (REALbasic+MySQL) platform: win32, linux, mac
Hospital management System, inc: record, pharmacy, billing, staff management, report, etc

HotelSys (REALbasic+MySQL) platform: win32, linux, mac
Hotel Management System, inc: room management, reservation, billing, services, report, etc

StreetRacer (REALbasic) platform: win32, linux, mac
Engine Tuning, inc: HP calculation, engine design, etc

Web
Patra Citra Collab Portal
The site is developed using Wordpress MU so every member of the organization can have their own blog. Custom theme is designed to meet the look and feel of the organization
Features:
Forum
Podcast
Newsletter
D-day countdown (i.e: anniversary)
Blog

COC - Climate Conservation NGO
Indonesian NGO engaged in climate conservation

ZabiNetwork
PHPIzabi-based social networking site

AndraJobber
Job Board
Status: development

Personal Sandbox
Webmercenary v2.0
url: webmercenary.co.nr

INTRails (Ruby On Rails)
url: n/a
Rails based portal, social networking and collab portal

Lantern Template
Blogger Template (tableless + valid CSS XHTML)

SuneagleZ Template
Wordpress Template (tableless + valid CSS XHTML)

Graphicz
I've worked for various clients in design and print industry in the following category
T-shirt And Sticker Design
Business Card Design
Packaged Product Cover Design
Flyer And Brochure Design
Magazine Cover

c