|
Did you copy libzmq.dll to your bin folder?
Has the XP box got the right version of the .Net framework on it?
|
|
|
|
|
well i have checked the bin Box and i found the dll even when i wanted to build the program (make setup) i have put the file into the dependency so when the program want's to setup on other computer it'll copy all of that dlls (libzmq,zeromq) into the folder .and then i have checked the box in the windows xp , it was there .
and sth more , even your program haven't get executed there .
it throw an error on jim page is like :
System.DllNotFoundExpection:Unable to load Dll 'libzmq':The specified procedure could not be found.(Exception from HRESULT:0x8007007F)
at ZeroMQ.Interop.zmq_init(Int32_threads)
at ZeroMQ.ZmqSocket..Ctor(int32 type,Nullable 1 context)
at ZeroMQ.ZmqDealerSocket..ctor()
at ChatClient.Client.Main(string[] args) in c:\my Development\ZeroMq\ZeroMQ_ChatTest\ChatClient\Client.cs:Line 13
and the line 13 is refer to zmqDealerSocket dealer = new ZmqDealerSocket();
i'll try to download another .netframework .4
|
|
|
|
|
hi again . im sorry for bothering again .
im wondering why you didint use the router class instead of the dealer in the server class ?
im sorry but can you explain alittle about what you done here im new with zeromq but i know the basic , i know that that we need to define a new socket and connect the socket/listen i was doing this in past but now im seeing new things like dealer subscriber and publisher im wondering do they do the same things as the socket is do . but i'll appriciate if you just alittle explain what you done here . ty
|
|
|
|
|
I didn't use the router because it prepends each message with an integer connection ID. I used the client name to identify the client instead.
Honestly, there's not much point me explaining what I've done - my code is minimal. All of the information you need, and more, is in the excellent ZeroMQ documentation. Read the 0MQ Guide - all of the socket patterns are described in great detail in there. Also, looking at the code samples in conjunction with the 0MQ API would help.
I'm sorry if that sounds a bit like RTFM but...
|
|
|
|
|
no , is okay , ty very much . i've learned alot.
i'll figure it out soon or later .
ty again
|
|
|
|
|
hi my friend , im sorry for bothering you again .
just a simple qustion i have .
how should i do sth in the server side dealer.onrecived event . like lets say . close second form in that event(dealer.onrecived) before publisher.send() has executed .
i want to do that but it throw an error and saying :
Cross-thread operation not valid: Control 'Form2' accessed from a thread other than the thread it was created on.
i know that , when im start(run) a method with a thread , i should define a delegate and then invoke the object to access it .
but here i dont know how to access the object .
any help i'll apriciate that .
|
|
|
|
|
This is nothing to do with the question you originally raised, and I'm afraid I've helped you as far as I'm prepared to. I'm not going to write your application for you - it's yours not mine.
One final hint: UI operations from a background thread are not allowed. Both Google and CodeProject will give you more than enough information if you only look.
|
|
|
|
|
how can i solve this problem?
|
|
|
|
|
|
i saw it. but i solve it by Updating the vs 2012.
any way, thanks alot
|
|
|
|
|
Mohamad Shahmardan wrote: thanks alot
You're welcome!
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em> ProgramFOX
|
|
|
|
|
in the code i know for shure that i did get the data to my string sqlCity.but when the code come to adap.Fill(dt); it just jump to the catch.i try to do debugging but i did not find the reason why it not fill my dt datatable.can someone tell my what is the problem ?
public partial class test1 : System.Web.UI.Page
{
public SqlConnection myConn;
sqlDataAdapter adap;
public DataTable dt;
protected void Page_Load(object sender, EventArgs e)
{
string conn = @"Data Source=.\SQLEXPRESS;AttachDbFilename='"
+ Server.MapPath(@"App_Data\Database.mdf") + "';Integrated Security=True;User Instance=True";
myConn = new SqlConnection(conn);
try
{
myConn.Open();
string sqlCity = "select * from common";
adap = new sqlDataAdapter(sqlCity, myConn);
dt = new DataTable();
adap.Fill(dt);
}
catch
{
MessageBox.Show("Error.....");
}
finally
{
myConn.Close();
}
}
}
|
|
|
|
|
Use your catch clause properly to help you diagnose your problem; something like:
catch (Exception e)
{
MessageBox.Show("Error: {0}", e);
}
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i already try this and not found the problem .finally i found code that look the same and working
public partial class test1 : System.Web.UI.Page
{
public DataTable dt;
protected void Page_Load(object sender, EventArgs e)
{
string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename='"
+ Server.MapPath(@"App_Data\Database.mdf") + "';Integrated Security=True;User Instance=True";
string query = "select * from common";
SqlConnection conn = new SqlConnection(connString);
SqlCommand cmd = new SqlCommand(query, conn);
dt = new DataTable();
try
{
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
conn.Close();
da.Dispose();
}
catch
{
MessageBox.Show("Error.....");
}
}
}
|
|
|
|
|
So you copied your classmates solution.
There is an error in your original code so technically its not the same. Your new assignment is to find the difference and post it here
|
|
|
|
|
Hello everyone,
I have a problem, i want to use the following namespace
System.Windows.Int32Rect not exist
but i can't find it or it doesn't exist.
How can i obtain it.
Thanks in advance,
z3ngew
|
|
|
|
|
The solution of this problem is to add the
WindowsBase.dll from the references of the framework
z3ngew
|
|
|
|
|
This is not a namespace but a structure. Or to be more precise:
Int32Rect is a structure that has been placed in the System.Windows namespace. If you cannot find it then you are missing the WindowsBase library.
|
|
|
|
|
Which version of .NET framework are you using? According to the documentation[^] this was introduced in 3.0.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I'm using .Net FrameWork 4
z3ngew
|
|
|
|
|
I Define a user control that Inherits From Control Class
I want to show many instances of that class in a new class than inherits from Pannel Class
When I make instances and run this Code, there is no control in my Pannel:
This.Controls.add(new...);
modified 12-Jan-13 2:44am.
|
|
|
|
|
Without seeing the rest of the code, it's impossible to answer the question accurately.
Though, chances are good that you didn't set the Location property of any of the controls you created and they're all sitting on top of one another in the upper left corner of the panel.
|
|
|
|
|
Thankss a lot
this is the entire code:
public Mine[,] Mines;
public void Start()
{
this.Controls.Clear();
int counter = this.Bombs;
Mines= new Mine[Rows, Columns];
for (int i = 0; i < Rows; i++)
{
for (int j = 0; j < Columns; j++)
{
Mines[i, j] = new Mine()
{
IsColored = true,
IsHidden = true,
Location = new System.Drawing.Point(j*16,i*16)
};
this.Controls.Add(Mines[i, j]);
}
}
}
|
|
|
|
|
Two things you need to do: First, try setting a Size for each Mine: 10x10 will probably help.
Second, how are you sure that they aren't being added? Try setting a BorderStyle as well:
for (int i = 0; i < Rows; i++)
{
for (int j = 0; j < Columns; j++)
{
Mines[i, j] = new Mine()
{
IsColored = true,
IsHidden = true,
Location = new System.Drawing.Point(j * 16, i * 16),
Size = new Size(10,10),
BorderStyle = BorderStyle.FixedSingle
};
this.Controls.Add(Mines[i, j]);
}
}
See if you can see them then.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Hi,
I am new to the OOP in asp.net.
I have created a console application, within which I call another class, let us call it class A.
I want to logging of events going on in the application.
I am using the app.config, the define the log file path. and using simple System.IO.File.WriteAll to write to this file.
But for some reason, the log captures only the statements written in the main part of the app and not what was logged in class A. I am writing to the same log file.
How can I make it so the log file keeps appending??
Much appreciated!!
|
|
|
|