When I clicked Add, it says error 'Object Variable Or with Block Variable Not set' at line
Code:
Set StaticPortMapping = UPnPNAT.StaticPortMappingCollection.Add(CLng(txtExtPort.Text), _
                                                    "TCP", _
                                                    CLng(txtIntPort.Text), _
                                                    Winsock.LocalIP, _
                                                    True, _
                                                    "FAS")
I am using Windows 7 64-Bit.The projetc reference is set to c:\Windows\system32\hnetcfg.dll\2.
I login to internet using WAN Miniport PPPOE.If the Router/Gateway does not support UPnP does this Error raise?. The error displayed in your program is "Add failed, error 0000005B".[/QUOTE]