Results 1 to 4 of 4

Thread: can mfc program be a node in icegrid application

  1. #1
    leya is offline Registered User
    Name: Leya Wang
    Organization: Wuhan Univ.
    Project: Scalable Communication
    Join Date
    Mar 2006
    Posts
    40

    can mfc program be a node in icegrid application

    here is the situation:
    when i use mfc program as a node in icegrid(use icegridnode), then use icegridadmin to start the server, and the server kept like "activating" ,and it never goes to "activated"
    ,and later icegridadmin says "server activation timed out"

    maybe some part of my program is not correct, but i cannot locate it.

    thanks in advance.
    Last edited by leya; 05-28-2006 at 09:44 PM.

  2. #2
    leya is offline Registered User
    Name: Leya Wang
    Organization: Wuhan Univ.
    Project: Scalable Communication
    Join Date
    Mar 2006
    Posts
    40
    now we know it is related to command line parameter "argc" and "argv"
    mfc cannot get these parameters transparently
    so we are trying to get them by writing some code.

  3. #3
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    I think you can get at the argc and argv through __argc and __argv. They are supposed to be defined in stdlib.h.

  4. #4
    leya is offline Registered User
    Name: Leya Wang
    Organization: Wuhan Univ.
    Project: Scalable Communication
    Join Date
    Mar 2006
    Posts
    40
    it works,thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with MFC console application
    By stanley20080628 in forum Help Center
    Replies: 1
    Last Post: 12-10-2009, 02:07 PM
  2. Can I deploy SessionManager to IceGrid node?
    By Jiangyubao in forum Help Center
    Replies: 2
    Last Post: 10-23-2008, 09:03 PM
  3. Replies: 2
    Last Post: 05-17-2007, 07:12 PM
  4. Proper Cleanup in an MFC Application
    By eric.hill in forum Help Center
    Replies: 13
    Last Post: 08-24-2006, 11:26 AM
  5. About memory leak in MFC program with Ice2.1.2
    By ehero in forum Help Center
    Replies: 1
    Last Post: 07-14-2005, 01:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •