Home Help Center

Alternative Ice::initialize in Client

amrufonamrufon Member AlexOrganization: ISTProject: jDatabase ✭✭
Hello.

This post is inline with my continuing quest to get ICE working with our system. ;) For further reference, you can check out the following posts:
So what's my problem again? Well, the current ICE client samples that I've seen are all expecting that the client is an Application. Unfortunately, in my case ... the client is a DLL.

The idea is something like this:
ASP or VB application --> ICE Client DLL --> internet -->> ICE Server EXE

I have overcome the hump on getting a DLL working ... now my problem is with regards to the line:
//Initialize ICE
ic = Ice::initialize(argc, argv);

My problem with this is that since the ICE client is a DLL, I dont have the argc and argv variables. Is there a way which I can initialize ICE without passing these parameters?

Any help will be greatly appreciated.

Thanks.

Alex

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Just use something like:

    int dummy = 0;
    ic = Ice::initialize(dummy, 0);
  • amrufonamrufon Member AlexOrganization: ISTProject: jDatabase ✭✭
    Marc,

    Thanks. This last code basically completes the C++ part of the puzzle. I'm moving to the VB and J side to see how the thing works in comparison to our original net codes.

    Thanks again.

    Alex
Sign In or Register to comment.