Clarion blog works!
Posted August 19th, 2009 by Andrew PopoffThere are two new posts at Clarion blog. This is about tooltips and auto-save option. This is not so significant changes but it is better then silence.
Tags: Clarion 7 | No Comments »
Clarion Developer Blog
The future depends on us. It is up to us to the future of Clarion.
Will this programming language to live long and happy life or dies in oblivion depends on us. If you have to say, do it here in this blog. Welcome!
Read More
There are two new posts at Clarion blog. This is about tooltips and auto-save option. This is not so significant changes but it is better then silence.
Tags: Clarion 7 | No Comments »
I missed a few events when I had the vacation.
I can not watch a video at www.clarionlive.com. I see only the pictures from the blog. The main thing for me that: “Its worth mentioning that the new Report Writer will be shared by both Clarion 7 (win32) and Clarion.Net.”

I returned from vacation. I am full of strength and ready for work:)

PS
I have received several letters during this time. I will try to answer them tomorrow.
I will have a three weeks vacation. I have a plan to visit my parents who live about 7000 miles away from me. I think this trip will give me a new strength for a work. I will be back around August 16.
Tags: vacation | No Comments »
I just had registered at clarionshop.com. You can see the CFC Library here.
Tags: CFC Library, ClarionShop | No Comments »
Today I have tried to add the CFC Library at clarionshop.com. I was not able to do so. I’m using Opera.
I have tried about 3 or 4 times. But nothing happened. My products list is still empty. IE did not want to open this site. I will try tomorrow again.
Motleysoft’s site looks ugly but it works as I expect.
Many features of clarionshop.com are not working for a long time, but people still enjoy this website. I don’t undertsand why.
Tags: ClarionShop, MotleySoft | No Comments »
This version includes the template for menu. You can set the style of menu such as MS Office XP and MS Office 2003. The documentation is missing. I think that it will be available in next version. I think that version 2.6 is the last version which is free for private use. The next versions will be available only by annual subscription.
The installation package contains a lot of examples which demonstrates the library possibilities. You can find all examples in Clarion “EXAMPLES/CFC Library”-folder after install.
Download the setup-file for C6
Download the setup-file for C7
Tags: CFC Library | No Comments »
I have almost done with CFC Menu template. Today I present a demo video. I’ve made this video with a SnagIt. Video contains a minor disturbance, but I think that it is not important.
You can download a video here (2MB).
Tags: CFC Library | No Comments »
Today I had find an annoying bug. I think that this bug exists elsewhere in my code.
I use a GROUP and OVER for defining the low and high-order words.
For example,
lParam LONG
lParamG GROUP,OVER(lParam)
low SHORT
high SHORT
END
I made a copy of this GROUP for ULONG-variable:
wParam ULONG
wParamG GROUP,OVER(wParam)
low SHORT
high SHORT
END
But it is wrong! I’ll need to define the each parameter of this group as UNSIGNED:
wParam ULONG
wParamG GROUP,OVER(wParam)
low USHORT
high USHORT
END
Tags: bug | No Comments »
I have not written here for a long time. This happened because I did not have interesting news. I was boring programming enterprise applications.
Tags: news.clarionlife.net | No Comments »

Today we are celebrate Russia Day. Actually I don’t know what is this day about. It is a just another holiday for me.
Tags: holiday | No Comments »
You can see a new community blog here.
I think that we can create a new forum at clarionlife.net. For example, en-forum.clarionlife.net
or sv-forum.clarionlife.net. We can
We have the popular forum for russian community at forum.clarionlife.net. You can see the our forum here (translated with Google).
Tags: Clarion 7, forum | No Comments »
I have a problem when using MS SQL 2008. The recovery model for my database is configured as a “Full“.
I do a full backup of the database every night. I do a transaction log backup every hour. The transaction log file for the two weeks of use has increased to 55Gb. The size of the database that is about 10Gb.
I have truncated the transaction log earlier using the following script:
MS SQL 2000 BACKUP LOG database_name WITH TRUNCATE_ONLY DBCC SHRINKDATABASE (database_name, 10)
But this script does not work in MS SQL 2008. I found only one way to truncate the transaction log. The essence of the method is that it is necessary switch recovery model from FULL to SIMPLE, and make a truncation of the log.
I do a full backup of the database before performing this operation.
MS SQL 2008 ALTER DATABASE database_name SET RECOVERY SIMPLE DBCC SHRINKFILE (log_name) WITH NO_INFOMSGS ALTER DATABASE database_name SET RECOVERY FULL
It works
Tags: MS SQL Server | No Comments »
I was in a small vacation. Now I am ready to work
Tags: vacation | No Comments »
Today I tried to create a thread using Windows API. I always thought that there are no problems. But it turned out that I can not do anything. I can not even use the MESSAGE in the thread procedure. The application always crashes.
Below is the code that creates a new thread and simply increases the value of a variable. It works.
PROGRAM
MAP
MODULE('WinAPI')
CreateThread(LONG,LONG,LONG,LONG,LONG,LONG),ULONG,PASCAL,NAME('CreateThread')
memcpy(LONG,LONG,LONG),LONG,RAW,NAME('_memcpy'),PROC
END
TThreadProc(LONG lpParameter),PASCAL
END
Window WINDOW('Caption'),AT(,,129,115),FONT('MS Sans Serif',8,,FONT:regular),GRAY
BUTTON('Start thread'),AT(4,4,81,18),USE(?OkButton),DEFAULT
BUTTON('Show results'),AT(4,30,81,18),USE(?CancelButton)
END
ThreadID LONG
Param LONG
hThread ULONG
CODE
OPEN(Window)
DISPLAY
ACCEPT
CASE ACCEPTED()
OF ?OkButton
hThread = CreateThread(0,0,ADDRESS(TThreadProc),ADDRESS(Param),0,0)
MESSAGE('Thread handle: ' & hThread)
OF ?CancelButton
MESSAGE('Param: ' & Param)
END
END
TThreadProc PROCEDURE(LONG lpParameter)
loc:Var LONG
CODE
! MESSAGE('Enter TThreadProc') crashed
LOOP
loc:Var += 1
memcpy(lpParameter,ADDRESS(loc:Var),4)
END
Tags: Windows threads | No Comments »