Archive

Archive for the ‘Programming’ Category

SquallLTT presents: My PDA phone :D

June 24th, 2009

Here is the link to the video clip: http://www.25phut.net/uploadedvideoclips/viva.html

In conclusion I’d like to say that Windows Mobile phones are the best, at least, to me. Countless softwares are available out there. And, I can do some coding for my PDA as u can see in the video, I’ve implemented image processing (Canny Edge detection), written a program to operate a robot via WIFI, and much more… :D

Network programming in C#

May 5th, 2009

Basic definitions

It is important to have a firm understanding about networking. Here, I only mention about some very basic knowledge.

- Protocol: is a set of rules and procedures used for communication. Computers on a network must agree upon a common protocol in order to communicate.

- IP (Internet Protocol) is the method or protocol by which data is sent from one device to another on the Internet. Each computer on the Internet has at least one IP address that uniquely identifies it from all other computers on the Internet. IP by itself is something like the postal system. It allows you to address a package and drop it in the system, but there is no direct link between you and the recipient. Though there are other network protocols available to the Windows network programmer, IP provides the most robust technique for sending data between network devices, especially if they are located across the Internet.

Read more…

Author: SquallLTT Categories: Programming Tags: , ,

C# programming language

May 5th, 2009

Microsoft .NET

Microsoft .NET contains 2 main components: Framework and Integrated Development Environment (IDE). Framework is the most important part of .NET and it is the core of the environment.

.NET Framework contains:

  • 4 main programming languages: C#, VB.NET, C++ and JScript.NET
  • Common Language Runtime (CLR) – this is the core of the framework – which is Microsoft implementation of the Common Language Infrastructure (CLI) standard – handles code execution and all of the tasks associated with it: compilation, memory management, security, thread management, and enforcement of type safety and use.

Read more…

Author: SquallLTT Categories: Programming Tags:

[VB.NET] Detect whether the USB device is plugged in or taken out without timer

May 3rd, 2009


.NET programming
The following VB.NET code will help you to check whether a USB device is plugged in or taken out. No timer is used here. You can integrate this tip to your program just by copy and paste.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    Private WM_DEVICECHANGE As Integer = &H219
 
    Public Enum WM_DEVICECHANGE_WPPARAMS As Integer
        DBT_CONFIGCHANGECANCELED = &H19
        DBT_CONFIGCHANGED = &H18
        DBT_CUSTOMEVENT = &H8006
        DBT_DEVICEARRIVAL = &H8000
        DBT_DEVICEQUERYREMOVE = &H8001
        DBT_DEVICEQUERYREMOVEFAILED = &H8002
        DBT_DEVICEREMOVECOMPLETE = &H8004
        DBT_DEVICEREMOVEPENDING = &H8003
        DBT_DEVICETYPESPECIFIC = &H8005
        DBT_DEVNODES_CHANGED = &H7
        DBT_QUERYCHANGECONFIG = &H17
        DBT_USERDEFINED = &HFFFF
    End Enum
 
    Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
        If m.Msg = WM_DEVICECHANGE Then
            Select Case m.WParam
                Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEARRIVAL
                    MsgBox("USB device is just plugged in!")
                Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEREMOVECOMPLETE
                    MsgBox("USB device is just taken out")
            End Select
        End If
        MyBase.WndProc(m)
    End Sub
Author: SquallLTT Categories: Programming Tags: ,
Easy AdSenser by Unreal