|
How to create COM Interop in C#?
|
|
|
|
|
Google "COM interop c#" and you will get lots of hits. I know MS do a tutorial which should at least give you the basics. You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
If you have a look in the AssemblyInfo.cs file for the c# DLL there is the following entry, which you can set to true.
[assembly: ComVisible(false)]
|
|
|
|
|
i make program send and receive information between two computers with TCP connection and the IPs are 123.0.0.1 and 123.0.0.2
now i want to apply it over the internet
(what IPs should i use to apply it)
(note: i dont have a static IPs but for every connection i know the IPs)
|
|
|
|
|
sanforjackass wrote: i make program
Is this program a desktop application?
sanforjackass wrote: IPs are 123.0.0.1 and 123.0.0.2
It doesn't matter even if you used 10.0.0.0 and 10.0.0.1, provided they are computer IP addresses.
sanforjackass wrote: now i want to apply it over the internet
Pay a visit here. Franly i think it is your best bet:
http://www.asp.net/[^]
sanforjackass wrote: what IPs should i use to apply it
Computer IP's
sanforjackass wrote: note: i dont have a static IPs but for every connection i know the IPs
You don't need to know this information to program for the internet. This guys:
http://www.codeproject.com/[^]
probably don't know your IP address for you to access their site.Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
He is clearly not making a website.
|
|
|
|
|
How do you know? Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
He said so in his previous posts, and he's still asking about the same subject just phrased slightly differently, IMO it's entirely reasonable to assume that he's still trying to do the same thing
|
|
|
|
|
Okay. Sorry for my wrong answer sanforjackass. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
no it is my problem for not making the first Q. more clear but as he said i want to make my program works over nonstatic IPs over the internet
|
|
|
|
|
No sweat. Is it that you do not know the clients IP in advance? Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
If you know the IP addresses, as you have stated, then it is a matter of opening a TCP connection between them. Plenty of documentation for that.
I know the language. I've read a book. - _Madmatt
modified on Saturday, February 20, 2010 11:05 AM
|
|
|
|
|
Static or non-static is not important. All that is necessary is that you know the IP-address of the computer you wish to connect to, at the time of making the connection. If this information is not publicly available (via hosts or DNS) then you need some other way of finding it. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:12am.
|
|
|
|
|
sanforjackass wrote: for every connection i know the IPs
If you have the IP addresses of the machines you don't need DNS. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
thanks all
i found what i want in (skype bing)
but now i want to send files over it how?
(there is "sendcommand" command what is it if some one know?)
|
|
|
|
|
Hi. I have included the code
this.hide();
in the shown, and load event just to make sure that the form is not seen immediately after starting but resides on the task bar, till someone gets it from there but this does not work since the form is still shown on starting. What could be the problem?Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Okay. I solved it in a hack kind of way. I set the Windows Start property to minimized, then, i set it ShowAtTaskbar false.
In the tray i reversed all this and now im happy. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
set this.Hide() in form_Shown event. it will work.
|
|
|
|
|
I want when a button is clicked, my application shuts down then restarted by the Operating System. I am using Visual Studio 2008 on Vista (TM), and of course programming with C Sharp.
Is it possible to make a new Object like:
MainForm mf = new MainForm();
mf.Show();
Then immediately kill the application?Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
modified on Saturday, February 20, 2010 5:12 AM
|
|
|
|
|
Application.Restart() Best Regards,
Chetan Patel
|
|
|
|
|
Thank you. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Sir
I am doing my project in C#.net&SQl server. I have dought about How to fetch the image data into data formet through OCR technology
|
|
|
|
|
|
Okay, i think you would need a plug in of some sort and consider the BLOB data type, atleast i know it exeist in MysQL. Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|