By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

Managed c++ with libraries like ACE and boost

P: n/a
I am trying to invoke a c++ dll from mixed (managed/unmanaged) c++. My
class layout is:

__nogc class ManagedHmsImpl
static void hmsLogon(int hmsRole,
int hcpPrimary,
char* post,
char* panel);

static void initialize(char* propertiesFile);

static void send();

public __gc class ManagedHms

String* hmsLogon(int hmsRole,
int hcpPrimary,
System::String* post,
System::String* panel

void initialize(System::String* propertiesFile);

In my ManagedHmsImpl (which is unmanaged c++), I am calling c++ object
methods belonging to another DLL which uses libraries like (ACE for
threading, sockets etc) and boost (for shared_ptr).

I do not get any compilation errors, but when I run it, the
ManagedHmsImpl method call just hangs. When I remove the references to
code referring to ACE or boost, the function calls return.

It seems to me that Ace and or boost need some settings to work with
managed c++.

I will appreciate if somebody can point me to some information that
will help resolve the issue.

thanks in advance,
Hitendra Gupta

Mar 20 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.