
mooman_fl
Avatar/Signature-
Posts
194 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by mooman_fl
-
If the instance of the control is created within the second thread then there shouldn't be a problem. 1. make your control complete with timer in the control. 2. make a form2 class for about box and add code to form2 class to instantiate your custom control with timer 3. In the main application make a function that creates an instance of form2 in a separate thread.... form2 and any contained controls will be in your 2nd thread. Your timer should be able to work then in that second thread since it is actually created as you make the second thread making it a part of that process. I understand what you are talking about.... but it seems like unnessasary hassle.
-
Actually if I understand your problem correctly it seems the easiest way to do it would be to make an about box with your control on it, then set the about box to open it its own thread. Any controls on it then would operate separately from the main program. Just a suggestion. Alot easier than having to assign delegates and worry about possible bad interactions.
-
Thanks everyone for all the replies. Unfortunately I had to cheat a bit. I made a page in PHP that only has the function of outputting the IP addy of the visitor... I then had my program surf to that page and parse out the IP addy. dynamic_sysop: I gave your solution a try but unfortunately all it did for me was return my local IPs. MicroMan: I may fool around with this a bit but part of the problem is that you need to know the external IP of the local network router and it seems that this would just make the packet die when it hits the router and return the packet with the local addy. Could be wrong though... we shall see.
-
Almost found a solution. Found some code for performing a tracert in VB.Net. The first IP returned is the internet IP. All I had to do is have it point to microsoft.com to start the tracert. It comes close to my actual IP... only the last octet is different. Anyone know enough about ICMP to know if this might hold a key to getting this done? For anyone interested the source for doing tracert in VB.Net is here
-
yeah... I saw this already. Not exactly what I wanted. But I have decided that for the present time I am going to use a similar trick but put the IP reporting webpage on my own server. I still invite anyone that can come up with a better way to let me know on this thread or by PM.
-
Getting a OpenFile dialog in Controls Properties
mooman_fl replied to mooman_fl's topic in Windows Forms
Thanks again divil.... I had a feelling you had the answer. LOL -
I would like to know how to get a property that lets me pick a text file at design time from the property list. In other words you get the button with the ... in it and it opens the OpenFile dialog. Also since I have never had to save a custom property in a usercontrol before.... how do I go about saving that filename so that it is the default when the app is compiled and run? I know the first part has to do with the Designer class... not sure on the other one though.
-
thats funny... I have used quite a few P2P and have never had a problem without port forwarding.... never had a problem hosting with newer games either. Most newer games though take into account that the user may have a router though and have some way of detecting and sending the correct IP. Like I mentioned before... I have seen mention of a workaround that connects briefly with an known server (like aol.com or microsoft.com) and then gets your IP from that connection. But I am not sure how to implement that. I can't even seem to find the pages anymore that mentioned it.)
-
This isn't always an option for some of the game players. I am not worried so much as to what will be simple for me... I want to make it easy for the users... Some of them don't follow directions very well. LOL Just telling them how to install new maps for the game turned into a two day troubleshooting event. LOL
-
Is there possible standard for querying a router to get this information? If there is I could always have a checkbox for the user to tell the client that they are behind a router.
-
yes... making a new client for an existing chat server for an old game. The original client lets you start a hosted multiplayer game with other people in the chat... however the original client only sends out the local network IP so people behind a router can't host games (since the IP means nothing to the other player's machines) The original server and client are no longer supported by the game company although they continue to keep the chat server going. I am working on a new chat client for it and I want to fix the bug. Any work-around you can suggest would be welcome. I need to be able to send the correct IP address for a person behind a router to be able to host games.
-
No.... ip config only shows the two local ips for the network adapters. I have heard of a workaround that sends a packet to a well known server like aol or microsoft then gets your ip from that connection... don't know how to implement that though.
-
Still getting only the 2 local addresses... that is it. Obviously the AddressList isn't going to give me what I need.
-
I wish that worked for me... cut and pasted your code. The response came as follows: 192.168.1.35 192.168.1.33 Those are the local adresses of my adapters. I would be happy for ANY type of work around for this problem.
-
Have done that already... all it returns are the 2 local IPs for my network adapters not the live internet IP
-
I have 2 network adapters... both are connected to my local (in-home) network behind a router.... I need my program to find the actual internet IP address... not the local network address of my adapter.
-
I appreciate the reply however that isn't what I need. That simply shows the IP address for my adapter for my intranet (local network).... I need to find my INTERnet (external) IP address.
-
I know this questions has to have been asked before... however search will not let me look up "ip" since it is under 3 characters long. I have also searched on google, and either I am not using the right keywords (probable) or there is nothing out there (doubtful).... I need to be able to find the internet IP of the local machine.... finding the IP of my local network connections is no problem... there are several good examples of that. So if anyone can help even though this is probably a tired question I would be appreciative. (Also forum admin might want to change the limitation on word length for search since many terms we use are 3 characters or less.) Thanks everyone
-
The tutorial is the comments (it is VERY heavily commented code) in the source itself. If divil or whoever wants to update the zip in a day or so I can have a new zip to go in the code library that has a tutorial in HTML files. :D BTW... the "readme" is the first text file you see as you enter the main directory. It give a list of what each directory is and which project to start with for the tutorial.
-
Thanks again VolteFace... I knew it would be difficult to do it that way. I am trying to get him to at least switch to C#..... but haven't had much luck so far. Maybe this will help him decide.
-
Thanks for the answer VolteFace... that is pretty much what I suspected. Got another question then: Would it be possible then to make the same interface in VC++6 and then implement the interface in VB.NET? That might give him an acceptable reference in his plugins? How would I go about referencing that in my project (if it is even possible)?
-
Ok... didn't know where to post this so I am putting it here. Move it if you need to. I am currently working on a VB.NET program that will accept plugins containing GUI's. I have a friend that wants to make a plugin that would greatly enhance my program. However he only writes in VC++6. Is this even possible? A sample of my VB.NET interface is below just in case that has some bearing. from pesi.dll: Public Interface IPopEditorDialogPlugin Event PluginCreated() Event GUICreated() Event GUIDestroyed() Event PluginDestroyed() Event Callback() ReadOnly Property Name() As String ReadOnly Property Version() As String ReadOnly Property Creator() As String ReadOnly Property Description() As String ReadOnly Property LoadOnStartup() As String 'This would hold the URL to an update 'to a folder on a remote server where 'plugin updates can be downloaded from. ReadOnly Property UpdateURL() As String ReadOnly Property FileName() As String Sub Intialize() Sub GetGUI(ByRef hostcontrol As System.Windows.Forms.Control, ByRef displaycontrol As System.Windows.Forms.Control) Function GetReturn() As String Function DestroyGUI() As Boolean End Interface
-
yeah... I knew about the whole ByRef/pointer thing... just wasn't sure how to go about it. Turns out he wants me to make a header file for him with all the declarations he will need :eek:
-
Ok... really hope someone can answer this for me.... I am trying to explain my plugin architecture to someone that uses VC++ .NET so that they can make a plugin for my program. The definition for the Sub in VB.NET is: Public Sub GetGUI(ByRef hostcontrol as System.Windows.Forms.Control, ByRef displaycontrol as System.Windows.Forms.Control) Can someone show me what that declaration would look like in VC++?
-
Ok... after going back through this code I was able to easily stop the TCPListener and close down the thread that listens for new connections. However I haven't figured out how to close down existing connections from the server. Any help on this would be appreciated.