|
|
|
||||||
|
Hello.
Backgrounder first. I'm a VB programmer who's trying out ICE with VB so that I can integrate it with our applications. You can categorize me as a newbie with regards to C++. Also, this post is in connection with Using ICE with Single Threaded DLL post. Ok, now with the problem: 1.) I created a VB ActiveX DLL which only has one interface. A function wich accepts a string and returns a string. Pretty simple. 2.) I made the following slice definition to support the DLL. Quote:
jSocketsI.h Quote:
Quote:
IceServer.cpp Quote:
Quote:
Any help? Thanks. Alex |
|
||||||
|
Hello Marc,
Its a good thing you replied to this post and said that everything looks Ok. Because when I was trying to trim down the VB code so I can post it here ... I thought of a solution which worked!!! Ok, first off, what I was trying to do was something like this: Quote:
The pjServer was initialized by the Main Application Quote:
Quote:
So my solution was to modify my VB DLL from an ActiveX Apartment Threaded DLL to an ActiveX EXE library (please refer to the attached image on how I configured the VB project for this). Then I modified the my Ice Adapter in such a way that each new call made by the client will create a new instance of the ActiveX EXE library. Here's the change codes: jSocketsI.h Quote:
Quote:
Summary As I say, this works. Unfortunately, I'm not satisfied with my solutions. Let me put it this way: To get into a living room of a house, all you need to do is walk up to the door and go in. What I just did was make my own ladder, climb up to the second floor, crawl through the window and go down the stairs just to get to the living room. Although, because of time constraints, I'll have to stick with my current solution (until a better one comes up) and move to making an IceClient DLL that can be called by our proprietary libraries. I was wondering if anybody has insights, thought and/or ideas on this issue of mine. Also, did I really understand how ICE works or I'm just fooling myself? Thanks. Alex Last edited by amrufon : 08-06-2003 at 11:18 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I Simultenously Access an ICE server | alexm | Help Center | 1 | 11-17-2006 03:19 AM |
| DLL access violation | youkind | Help Center | 2 | 08-15-2006 04:47 AM |
| How to get access to marshaled/demarshaled data | andreynech | Help Center | 2 | 06-14-2005 06:48 AM |
| service access control problem | yomi | Help Center | 7 | 04-04-2004 10:36 AM |
| Self access problem | Jonathan | Help Center | 2 | 03-31-2004 06:40 AM |