How to connect to pc's learn here !!

hqdefault

Your configuration is a bit off. If it is a local cross over cable then do this,
PCA
IP: 192.168.2.2
Netmask: 255.255.255.0
GW:blank
DNS:blank

PCB
IP:192.168.2.3
Netmask:255.255.255.0
GW:blank
DNS:blank
Ensure NETBIOS over TCP is enabled on both adapters, you don't have a DNS server so you want to ensure they can resolve a local WINS address (NETBIOS). Also disable the windows FW, it is completely unecessary unless your connecting your PC directly to the internet without a SOHO gateway device, or if your using a public wireless hotspot.
Windows 7 has this nice feature that lets you setup a profile for different networks. Ensure Link layer topology mapping and discovery is enabled on both PC's adapters. When the PC asks about the network tell it that its "home network". Inside the windows FW configuration set the FW to disabled under home network. This will deactivate the FW whenever it is a local connection. Or you can just disable the Windows Firewall service.