Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:29:40+00:00 2026-06-03T07:29:40+00:00

Now I have another problem with WCF server/client. I have a method: bool spr_wiersz(int

  • 0

Now I have another problem with WCF server/client.

I have a method:

bool spr_wiersz(int wiersz, int kolumna) //check_row(int row, int column)
        {
            for (int i = 0; i < 9; i++)
            {
                if (i != kolumna)
                {
                    //if(grid(row,i)==grid[row,column]
                    if (tablica[wiersz, i] == tablica[wiersz, kolumna]) 
                        return false;
                }
            }
            return true;
        }

And I want send every one value to clients and they will check it and return true, or false to server.

ex.
client 1 compare for i=0
client 2 compare for i=1
client 3 compare for i=2
client 1 compare for i=3
client 2 compare for i=4
......

To send something to everyone clients I use :

subscribers.ForEach(delegate(ImessageCallback callback)
            {
                if (((ICommunicationObject)callback).State == CommunicationState.Opened)
                {


                }
            });

I hevan’t any idea how conect this ;/
And another problem is, how send grid to client to compare value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:29:41+00:00Added an answer on June 3, 2026 at 7:29 am

    I solve the problem 🙂
    it almost work properly.

    bool spr_wiersz(int wiersz, int kolumna) 
            {
                wys_tab();
                Console.WriteLine("wiersz: {0}, kolumna: {1}", wiersz, kolumna);
                int i_wiersz=0;
                bool[] result = new bool[9];
                while (i_wiersz < 9)
                {
                    subscribers.ForEach(delegate(ImessageCallback callback)
                    {
                        if (((ICommunicationObject)callback).State == CommunicationState.Opened)
                        {
                            Console.WriteLine("wiersz: {0}, kolumna: {1}, i: {2}", wiersz, kolumna, i_wiersz);
                            result[i_wiersz] = callback.spr_wiersz(wiersz, kolumna, i_wiersz);
                            i_wiersz++;
                        }
                    });
                    for (int j = 0; j < i_wiersz; j++)
                    {
                        if (result[j] == false)
                        {
                            return false;
    
                        }
                    }
    
                }
                return true;
            }
    

    It’s work good only for 1,3 or 9 clients. For other number of clients this doesn’t work yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been struggling with Zend_Navigation all weekend, and now I have another problem, which
I follow your suggests by now I have another problem. ifndef MARKERCONTAINE_H define MARKERCONTAINE_H
I have another problem with my scripy now I have made it more advance,
Ok now i have another problem i want to send one or more variable
EDIT: I have now discovered the problem is with my WCF service getting dirty
Building on this question , now I have another problem. Given this, shipments =
I have a table: Employee (employeeID) EmployeeRank (rankID, employeeID) Now I have another table
I have a string String mainString=///BUY/SELL///ORDERTIME///RT///QTY///BROKERAGE///NETRATE///AMOUNTRS///RATE///SCNM///; Now I have another strings String str1= RT;
I have a menu item to which I add another item. Now I want
Say I have two models and one belongs to another. Now normaly you would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.