Archive for Visual Basic

Evolution into a web developer.

I am a windows application programmer…i don’t know whether i can boast about it anymore? The first few years of my programming life were concentrated around visual basic and windows application development. Back then i didn’t have an internet connection(, probably one of the bigger reasons why i evolved away from being one). I created a few applications based on some loose codes from planetsourcecode.com. I really enjoyed it! Every bit of code. I was very inquisitive of the how the softwares were made and that led me into a very simple but exciting world of VB. (I was 14 back then.)

Once i got older (and when i got an internet connection) , i did sense a migration into a much more wider, more reachable platform..the web itself. I was truly inspired by lots of wonderful websites from various design showcases including webcreme, cssremix, cssmania etc. Soon i was exercising my artistic talents and was frantically trying to learn the skills of many accomplished designers. (I used to go ‘wowwwwww.’ seeing some of the websites created by avalonstar.) My entry into professional web development was marked by the founding of Opdyne; a group of young developers, designers, and programmers.

Opdyne has now evolved into a professional firm offering many design solutions with decent quality.(We won’t blab about exquisite designs now as we are still learning.) Now that i look back i find it very difficult to understand whether i would have become an accomplished developer. A few applications like a hapless media player(Neu + Media Player), a CD/DVD indexing software(Thikset) are not enough to make one an expert in that field. Another of my ventures in application development was a CD presentation maker for an event including features like video encryption, authentication module , a fully featured media player , a scriptable interface with advanced skinning options(XTOOP CD).

Just because i am spending all my energy in web development these days doesn’t mean i am done with my old passion. I hope i will be able to complete , many of what i still want to achieve in that field.Presently there are lots of things to finish in Opdyne with release of LF and many other projects slated on immediate dates. Later!

Get User Name.

This is a small but useful code to get the user’s login name from the system.Whenever we make windows apps.It is always not good in addressing the user as guest,user etc.Try..for example this code and address them by the name of what they have logged on.
‘…………Declarations…………………………………………………..

Private Declare Function GetUserName Lib “Advapi32″ Alias “GetUserNameA” (ByVal lpBuffer As String, nSize As Long) As Long

‘…………Function…………………………………………………..

Public Function GetLoginName() As Boolean
Dim s_LoginName as string
s_LoginName = String(20, Chr(0))
GetLoginName = GetUserName(s_LoginName, 20)
End Function

Hope this code will be of great use.