type TMyClass = class(TObject) public class var X: Integer; end;
Kamis, 28 Juli 2011
Delphi : Static variable
Static variable on a class :
Selasa, 26 Juli 2011
Delphi : Invalid Pointer Operation
owhh my!! what a...
what is this invalid pointer operation, where could i trace the source of the bug??
:D
Do not mend my friend for there is a will there is a way..
first you will need this wonderful project :
http://sourceforge.net/projects/fastmm/
what is this invalid pointer operation, where could i trace the source of the bug??
:D
Do not mend my friend for there is a will there is a way..
first you will need this wonderful project :
http://sourceforge.net/projects/fastmm/
- Do not forget to set the "FASTMM4Options.inc" on your directory of units and looks for the line that says FullDebugMode
- Go to your project options : set linker map to "Detailed"
- Include the "FastMM_FullDebugMode.dll" to where your binary is executed
now.. when there is memory leaks detected, you will get a full detailed causes and stacks trace
Woow....
just Wow..
:)
Productivity : Using bookmark on CodeGear
You can mark a location in your code with a bookmark and jump directly to it from anywhere in the file. You can set up to ten bookmarks. Bookmarks are preserved when you save the file and available when you reopen the file in the Code Editor.
Reference : Embarcadero
- To set a bookmark
In the Code Editor, right-click the line of code where you want to set a bookmark. The Code Editor context menu is displayed.
Choose Toggle BookmarksBookmark n, where n is a number from 0 to 9. A bookmark icon is displayed in the left gutter of the Code Editor.
Tip: To set a bookmark using the shortcut keys, press CTRL+SHIFT and a number from 0 to 9.
- To jump to a bookmark
In the Code Editor, right-click to display the context menu.
Choose GoTo BookmarksBookmark n, where n is a number from 0 to 9.
Tip: To jump to a bookmark using the shortcut keys, press CTRL and the number of the bookmark. For example, CTRL+1 will jump you to the line of code set at bookmark 1.
- To remove a bookmark
In the Code Editor, right-click to display the context menu.
Choose Toggle BookmarksBookmark n, where n is the number of the bookmark you want to remove. The bookmark icon is removed from the left gutter of theCode Editor.
Reference : Embarcadero
Senin, 25 Juli 2011
I am Blessed!
Have you look at your mother eyes lately?
Have you hold Her hand and say thank you deep from your hearth?
How's your Father, the one who protects you from everything? putting roof on your head? giving beds to your sleep, giving good dreams everyday?
Your Parents are your heaven, remember that always! though some times it could be hard to understand them, it's actually harder for them to understand yours, but they always tried to understand yours, have you tried to understand theirs? :D
My mother approach me today and said she had the money to help me buy the house, i have 21 mil in my hand, and she said she could help me with another 40 mil, i know that she don't have that much of money, i'm really confused why she told me that.. maybe someday i will understand what's the meaning of her words..
My mother always told me not to give up on everything, not to scare on anything except the Lord ;)
she is not only told me, but she is showing it to me each and every day
she told me to believe the good Lord with every breath, expects everything good in the future
She is the most optimistic person i ever met :) Thank you mom.. thank you dad, thank you big sister
a taste of heaven on earth.. thank you Lord
So.. i will not give up! never!
My mother is my role model my father is my guardian and my sister is my guidance and so my friends, what more could i ask for?
Thank you Lord, i'm very grateful
Have you hold Her hand and say thank you deep from your hearth?
How's your Father, the one who protects you from everything? putting roof on your head? giving beds to your sleep, giving good dreams everyday?
Your Parents are your heaven, remember that always! though some times it could be hard to understand them, it's actually harder for them to understand yours, but they always tried to understand yours, have you tried to understand theirs? :D
My mother approach me today and said she had the money to help me buy the house, i have 21 mil in my hand, and she said she could help me with another 40 mil, i know that she don't have that much of money, i'm really confused why she told me that.. maybe someday i will understand what's the meaning of her words..
My mother always told me not to give up on everything, not to scare on anything except the Lord ;)
she is not only told me, but she is showing it to me each and every day
she told me to believe the good Lord with every breath, expects everything good in the future
She is the most optimistic person i ever met :) Thank you mom.. thank you dad, thank you big sister
a taste of heaven on earth.. thank you Lord
So.. i will not give up! never!
My mother is my role model my father is my guardian and my sister is my guidance and so my friends, what more could i ask for?
Thank you Lord, i'm very grateful
Minggu, 24 Juli 2011
Delphi : How to rotate bits?
Rotating bits using delphi is not directly supported
here is a function i found searching the internet to rotate the bits :
Source : http://www.merlyn.demon.co.uk/del-bits.htm
here is a function i found searching the internet to rotate the bits :
function JHROR32(Value : dword ; N : integer) : dword ; begin Result := (Value shr N) + (Value shl (32-N)); end; function JHROL32(Value : dword ; N : integer) : dword ; begin Result := (Value shl N) + (Value shr (32-N)); end;Hope you find it usefully! ;)
Source : http://www.merlyn.demon.co.uk/del-bits.htm
C++ and Delphi bitwise operator
Converting Eh?
Hmm.. not a pretty sight :D
but there it is :
note : delphi shifting : "shl" and "shr"
Operator name | Syntax | in C | |
---|---|---|---|
Bitwise NOT | ~a | Yes | |
Bitwise AND | a & b | Yes | |
Bitwise OR | a | b | Yes | |
Bitwise XOR | a ^ b | Yes | |
Bitwise left shift | a << b | Yes | |
Bitwise right shift | a >> b | Yes |
but there it is :
note : delphi shifting : "shl" and "shr"
Delphi Variable sizes
Although we are on a high programming language, the size of variables is very important when you are working with untyped / binary files and also socket programming, here is the basic types and also their sizes
Have a good and nice day everyone.
I'm trying to leaving my traces for anyone who would venture the world of programming
hehehehe :D
Type Storage size RangeThis table is pasted from the original source at http://www.delphibasics.co.uk/Article.asp?Name=Numbers a great website for leaning delphi language
Byte 1 0 to 255
ShortInt 1 -127 to 127
Word 2 0 to 65,535
SmallInt 2 -32,768 to 32,767
LongWord 4 0 to 4,294,967,295
Cardinal 4* 0 to 4,294,967,295
LongInt 4 -2,147,483,648 to 2,147,483,647
Integer 4* -2,147,483,648 to 2,147,483,647
Int64 8 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Single 4 7 significant digits, exponent -38 to +38
Currency 8 50+ significant digits, fixed 4 decimal places
Double 8 15 significant digits, exponent -308 to +308
Extended 10 19 significant digits, exponent -4932 to +4932
* Note : the Integer and Cardinal types are both 4 bytes in size at present (Delphi release 7), but are not guaranteed to be this size in the future. All other type sizes are guaranteed.
Have a good and nice day everyone.
I'm trying to leaving my traces for anyone who would venture the world of programming
hehehehe :D
Source Code
Looking for a fast way to accomplish your programming task?
search here! :)
http://koders.com/info.aspx?page=LanguageReport&la=delphi
a very great source code resource for your repetitive job
do not, re-invent the wheel dear friend..
search here! :)
http://koders.com/info.aspx?page=LanguageReport&la=delphi
a very great source code resource for your repetitive job
do not, re-invent the wheel dear friend..
Sabtu, 23 Juli 2011
How to indent block on Code Gear or Delphi
Indent : cntrl+shift+i
Unindent : cntrl+shift+u
Unindent : cntrl+shift+u
Jumat, 22 Juli 2011
C++ Xml Processing
Looking for components to utilize the power of xml to your applicaitons?
here is the two major xml library that i find to be simple and portable (linux, windows, mac)
http://xerces.apache.org/xerces-c/
http://www.grinninglizard.com/tinyxml/
here is the two major xml library that i find to be simple and portable (linux, windows, mac)
http://xerces.apache.org/xerces-c/
http://www.grinninglizard.com/tinyxml/
Free Fonts Resource
Cool fonts for your project :
FontSquirel absolutely free for commercial
Dafont - some free for commercial,some are not..
fonts4free.net - some free for commercial some are not
FontSquirel absolutely free for commercial
Dafont - some free for commercial,some are not..
fonts4free.net - some free for commercial some are not
Selasa, 19 Juli 2011
Clearing the screen "CLS" command on Linux
you can use the clear command or the cntrl+l
:D Enjoy..
:D Enjoy..
Linux environtment on Windows system?
The answer is Cygwin!
as a developer, you would need the gcc compiler at the minimum ;)
Neat project!
as a developer, you would need the gcc compiler at the minimum ;)
Neat project!
Senin, 04 Juli 2011
Catatan Penting Developing App for palm pre
Just a simple reminder to my self :
- Never forget to destroy textures
- add virtual to your destructors
- check and re-check if you are comparing floating value
- memory management for palm pre
- debugging a palm pre app
- for memory leak detector, use VLD
- https://developer.palm.com/content/api/dev-guide/pdk.html
that's it and you are good to go
Langganan:
Postingan (Atom)