|
Hello Everybody!!!!
I have once problem .
I had developed server and client application.
Server is running on specific ip address which the ip address i took from my dialup connection and specific port.
I gave friends of mine my client application through the internet Letting them try to connect to my pc and i gave them my current ip address which i took from my dialup connection.
Then my friends failed to connect to my pc and throws exception for them telling them "Can't connect to non-connected sockets".
Something like that.
But my client applications seems not to recognize my machine on the internet i don't know why.
By the way my application and server runs successfully on both local machine and through Large Lan of about 30 pcs connected to each other in cyber cafe of internet and it works really very good but i don't know why it doesn't work for the internet .
By the way,
My connection to websites on port 80 is successfully done but i don't know why the client application can't connect to my pc By knowing my ip address and the port to connect to.
Please any one with networking ideas please refer to me with any solution or suggestions or even any idea.
Thanks.
Your friend,
Snouto override.
Mess With The Best And Die Like The Rest
|
|
|
|
|
Hi,
I've got a C# class library compiled with VS 2005 Express. Is this likely to be the reason why a #using statement in my Managed C++ project in VS2003 fails to compile? The error:
fatal error C1192: #using failed on 'xxx.dll' Is there any difference between library formats? Is there any solution?
Joel Holdsworth
|
|
|
|
|
VS 2005 is .NET 2.0 and VS 2003 is .NET 1.1 . I think you can't mix it. But I'm not sure
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
Joel Holdsworth wrote: Is there any solution?
The short uncomplicated answer is NO. Why not compile the MC++ project in VC Express?
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
leppie wrote:
Why not compile the MC++ project in VC Express?
Hmm... I did have a try at that for 10 minutes. It failed to #include <windows.h> .. so I had a look at the directory settings in the options box. For some reason the list of directories does not show up in this build. There's a panel called Directories, but only a big gaping hole where the list should be . So I assumed that VCExpress had been labotomised, and would be of no use... What do you think?
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^] - now available in MSWord format![^]
-- modified at 18:52 Saturday 22nd October, 2005
|
|
|
|
|
This is a wild guess, but I think the latest Platform SDK contains the headers for VS 2005. I remember I read there was some issue. Give it a try.
xacc-ide 0.0.99-preview7 now with C#, C, C++, IL, XML, Nemerle, IronPython, Perl, Caml, SML, Ruby, Flex, Yacc, Java, Javascript, Lua, Prolog and Boo highlighting support!
|
|
|
|
|
There is no difference between a dll made using different languages. The code in the dll is IL code, so it's compiled to an language-independent format.
It's probably because the code is not CLR compliant, e.g. the code is using some constructions that are C# specific. Also, the code might be CLR compliant, but it's compiled without setting the CLR compliance flag in the assembly.
MSDN reference to the error messsage[^]
---
b { font-weight: normal; }
|
|
|
|
|
|
Joel Holdsworth wrote: So how would I set that flag - I can't see it anywhere
Add the folloeing attribute declaration to assemblyinfo.cs:
[assembly:CLSCompliant(true)]
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
How can apply the XP stlye to these controls. All the other controls on my forms such as radiobuttons, Command Buttons, etc. have adopted the XP style apar from these two. How can i force them to adopt it. I'm sure theres a way because i've seen quite a few applications with XP stlye NumericUpDown and CheckedListBox controls.
|
|
|
|
|
hi,
i have a slight problem with arrays. Heres what i want to accomplish.
I have an array A consisting of around 500 elements and another array B consisting of around 100 elements. Now i wish to remove all the items from array A that exist in array B. What would be the fastest way to do this?
Note: The array consists of strings.
|
|
|
|
|
The following code will do it:
using System;
using System.Collections;
namespace ConsoleApplication5
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
string[] names = new string[500];
for (int x=0; x<500; x++)
{
names[x] = "Name " + x.ToString();
}
string[] otherNames = new string[300];
for (int y=0; y<300; y++)
{
otherNames[y] = "Name " + y.ToString();
}
string[] final = RemoveIntersects(names, otherNames);
string foo = "";
}
private static string[] RemoveIntersects(string[] targetArray, string[] duplicateArray)
{
ArrayList target = new ArrayList(targetArray);
ArrayList duplicate = new ArrayList(duplicateArray);
foreach(string check in duplicate)
{
if (target.Contains(check))
target.Remove(check);
}
return (string[])target.ToArray(typeof(string));
}
}
}
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
Probably the fastest way is to put them both into a Hashtable as key values, then get the Keys propery from it. However with only 500 of one and 100 of the other, performace shouldn't be a big issue. It won't preserve order, of course.
Here's how it would look for strings:
string [] MergeLists( string [] A, string [] B )
{
Hashtable table = new Hashtable();
foreach( string s in A )
table[s] = s;
foreach( string s in B )
table[s] = s;
ArrayList items = new ArrayList( table.Keys );
return (string[])items.ToArray( typeof(string) );
}
If you had really large collections to merge, this would probably pay off performance-wise. For smaller collections it won't hurt too much to search through for collisions (or even wrap them in ArrayLists and use Contains() ).
Matt Gerrans
|
|
|
|
|
By the way, if you are using VS.NET 2005, you can create a more generic solution:
public T[] MergeArrays<T>( T[] A, T [] B)
{
Dictionary<T,T> table = new Dictionary<T,T>();
foreach (T item in A)
table[item] = item;
foreach (T item in B)
table[item] = item;
List<T> items = new List<T>(table.Keys);
return items.ToArray();
}
Matt Gerrans
-- modified at 2:24 Sunday 23rd October, 2005
Generics syntax is a bit of a pain to mix with html (I didn't want to use the "Ignore HTML tags" option, because then I can't format the code)
|
|
|
|
|
on my "treeView1_AfterSelect(...)
I have this
************************
if(nodeSel=="Node One selected")
{//Object created
MTO a = new MTO();
//MTO method called
a.mtoModel();
}
THis class id defined like this
**********************
class MTO
{
private TextBox textBox1 = new TextBox();
private Panel panel1 = new Panel();
public void mtoModel()
{
MessageBox.Show("Test", "node")
textBox1.Text = " ";
textBox1.Location = new System.Drawing.Point(80,16);
textBox1.BackColor = Color.FromArgb(245, 160, 75);
panel1.Controls.AddRange(new Control[]{textBox1});
}
}
When I select the node 1 , the message is displayed (node one selected) but hte components are not created in the panel. Any ideas?
|
|
|
|
|
sorry, it calls the right message
"Test"
|
|
|
|
|
this.Installers.AddRange
(new System.Configuration.Install.Installer[]
{this.serviceProcessInstaller1,this.serviceInstaller1});
this is all one line.
what is the meaning of curly brackets there ?
(not exaclty relating to Installer but in general C# syntax because
I see that type of code quite often used in different cases and I
fail to understand it.
|
|
|
|
|
This means that a new array with the values this.serviceProcessInstaller1 and this.serviceInstaller1 is created.
You could also write it like this:
System.Configuration.Install.Installer[] tmpArray = new System.Configuration.Install.Installer[2];
tmpArray[0] = this.serviceProcessInstaller1;
tmpArray[1] = this.serviceInstaller1;
this.Installers.AddRange(tmpArray);
|
|
|
|
|
Ok, we're declaring an array with square brackets "[]" and initialising it with the items withn the curly brackets "{}"
Regards.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
I have a button that when clicked, it populates a panel control with radio buttons and textBoxes controls.
Is there a simple way to reset (clear) the panel instead of removing each control at a time?
|
|
|
|
|
|
tell me one thing plz,i am working on voice chat project, in this case which approch is better (for audio or vedio)
1> using win32 API
2> DirectSound
and one more thing ,our windows uses win32 APIz or DirectSound,thanks
|
|
|
|
|
|
thanks for ur reply, plz tell me windows uses win32 APIz or DirectX for audio purposes ?, and other person should have installed directsound to use my application or my exe file will not bother?.thanks
|
|
|
|
|
Hi
pakFari wrote: plz tell me windows uses win32 APIz or DirectX for audio purposes
Windows uses Win32-API. Dx was introduced as an API for games and multimedia-appz in the middle of the 1990s.
pakFari wrote: and other person should have installed directsound to use my application or my exe file will not bother?
DirectX is included in windows since Windows98. In windowsXP sp2 DirectX 9.0c and .NET 1.1 framework (in the english version, but not in the german ) is included, so everyone should run your application.
André
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|