|
Hi All,
Is there any way to know what is my public IP??
example say my public IP is 202.214.215.12
How would I know my IP??
Please dont say ipconfig.
Thanks,
Sunil G.
|
|
|
|
|
Yes, there is a way, you could ask your NAT device what its (and therefore also your) public IP address is.
|
|
|
|
|
Can u give me some idea how to do it??
|
|
|
|
|
Hi,
you could use UPnP of your router
bye
|
|
|
|
|
MonoTorrent can do it (UPnP and NAT-PMP), Windows has stuff for this build-in as well but it's not very reliable (IIRC it depends on a service which can be disabled), and you could read my article (it's a little old though)
|
|
|
|
|
Try a Google search, there are quite a few sites that can find this information for you. I think one of them may even be called "whatsmyip.com".
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
IMO the only reliable way is by asking the external world. Here[^] is one of many sites that may help.
|
|
|
|
|
|
That does not help me at all, I did not have the problem, and I did offer a solution here[^].
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Please use <PRE> tags for code snippets, they improve readability. CP Vanity has been updated to V2.3
modified on Friday, June 10, 2011 8:43 PM
|
|
|
|
|
My router registers at dyndns.org, so I can query the IP address for my dyndns name.
|
|
|
|
|
Hi , have a good day ,
I have an Indicator Weight connect to COM port on My Pc ,
When I press the "Print Button" on the Indicator it sent weight to the Com Port ,
And I receive the data by this events :
private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
TxtOutPut.Text = serialPort1.ReadExisting();
}
So far so good ,
The Only problem I had is that When I press The "Print Button" on the indicator "
The DataReceived Firing 5 times , Before all the data sent , For Example :
The indicator Show The Weight on it's screen Like "US,NT 4.590 KG"
so When I press "Print Button" On the Indicator its Sent :
1) US,NT --- DataReceived Firing ,
2) Space --- DataReceived Firing ,
3) 4.590 --- DataReceived Firing ,
4) Space --- DataReceived Firing ,
5) "\r\n" --- DataReceived Firing ,
I think It's Must Sent the Weight as a whole , ( as Other Indicators Works ! )
Any Suggest Would be Appreciated !
I know nothing , I know nothing ...
|
|
|
|
|
Hi,
you should use the "ReadLine" method instead since it reads the response until it receives a "NewLine" (\n).
Try:
private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
TxtOutPut.Text = serialPort1.ReadLine();
}
|
|
|
|
|
Wow !
Thank you so much , Sir , Very Smart replay !
Here is (5)
P.S:
How I could not realize that ,
I know nothing , I know nothing ...
|
|
|
|
|
The alternative is to wait a while inside the DataReceived handler, so more/all data can come in before you get it all. Say 100 msec.
Or, if you need it fully event driven, start a timer in DataReceived, and read in the Tick handler (don't forget to stop the timer again).
|
|
|
|
|
Nice , I Will try the 100 Msc Things , I think it worth
Since I found more easy than the ReadLine() function ,
Thank you Sir ,
I know nothing , I know nothing ...
|
|
|
|
|
Stark DaFixzer wrote: P.S:
How I could not realize that
By reading the documentation on MSDN[^].
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hi.
I'm writing my own filter in C++ and C#.
How i can change audio format ac-3 to lpcm , during playing video/audio ?
How i can do dinamic format change?
Can anybody help me ?
Thanks.
We are haven't bug,just temporarily undecided problems.
|
|
|
|
|
Hi all,
I have used many time C++ DLL which export functions in C#.net project by using DLLimport. Now i have a C++ DLL which exports classes, so can any body suggest me how can i use C++ DLL classes in my C# project.
Thanks
Bankey
|
|
|
|
|
|
Hi, thanks for your response,
is it possible to use c++ classes from C++ DLL in C# without making wrappers.
i also read this article and other many article, all the article tells i need to make a wrapper for everry class and its members to use in C# project.
if wrapper is only solution than i want which approach will be best like managed C++ wrapper and unmanaged C++ wrapper
Thanks
Bankey
|
|
|
|
|
If possible you can also rewrite your C++ code to managed C++. This can even allow you to use the same source for unmanaged applications and for managed ones. At work we have such a kind of library that uses a lot of compiler switches to determine if the code is to be used with .NET or not.
|
|
|
|
|
bankey1010 wrote: is it possible to use c++ classes from C++ DLL in C# without making wrappers.
No, since the C++ classes are not managed code. Your either need to write a wrapper around it or rewrite the C++ code in C++/CLI (Managed C++). Which you chose is entirely up to you.
|
|
|
|
|
So I am trying to give the user an option of removing registry keys when uninstalling my application (the installer is the windows installer with visual studio).
The problem is it appears the message box appears behind the uninstaller (sometimes). Here is what I am doing:
public CustomInstaller() : base()
{
InitializeComponent();
base.AfterUninstall += new InstallEventHandler(CustomInstaller_AfterUninstall);
}
public override void Uninstall(IDictionary savedState)
{
base.Uninstall(savedState);
}
void CustomInstaller_AfterUninstall(object sender, InstallEventArgs e)
{
DialogResult result = MessageBox.Show("Do you want to remove all settings? (This is not reversible)", "Remove Settings",
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
try
{
Registry.LocalMachine.DeleteSubKeyTree(@"Software\JD Development");
}
catch (Exception ex)
{
MessageBox.Show("Unable to remove registry settings: " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
Process.Start("sc", "delete JDAgent");
}
|
|
|
|
|
I googled (you can do this too) and found some solutions:
1.:
MessageBox.Show(new Form(){TopMost = true},"I'm still on top, YEAH");
2.:
TopMost MessageBox[^]
3.:
[DllImport("user32.dll")]
public static extern int MessageBox(int hWnd, String text, String caption, uint type);
Then just call MessageBox with MB_TOPMOST
|
|
|
|
|
Yeah I was working on this late night and didn't find anything. Just had my wording screwed up in my search parameters instead of just top most messagebox. I dunno. Thanks for the reply.
|
|
|
|