Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-07-2003
amrufon's Avatar
amrufon amrufon is offline
Registered User
 
Name: Alex
Organization: IST
Project: jDatabase
 
Join Date: May 2003
Location: Manila, Philippines
Posts: 96
Send a message via Yahoo to amrufon
-->
Question Alternative Ice::initialize in Client

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:
Quote:
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:
Quote:
//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
Reply With Quote
  #2 (permalink)  
Old 08-07-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Just use something like:

int dummy = 0;
ic = Ice::initialize(dummy, 0);
Reply With Quote
  #3 (permalink)  
Old 08-08-2003
amrufon's Avatar
amrufon amrufon is offline
Registered User
 
Name: Alex
Organization: IST
Project: jDatabase
 
Join Date: May 2003
Location: Manila, Philippines
Posts: 96
Send a message via Yahoo to amrufon
-->
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreezeMap lazy initialize xdm Help Center 3 03-01-2006 11:07 PM
Ice::initialize panic Comments 1 10-14-2004 05:01 PM
JNI | Java VM aborts on Ice::initialize chappich Help Center 9 04-28-2004 08:28 AM
Initialize the communicator? lisiliao Help Center 1 04-19-2004 11:42 AM
Ice::initialize hangs on Panther taweili Help Center 0 11-02-2003 07:28 AM


All times are GMT -4. The time now is 11:22 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.