Hello Everyone,
I'm new to managed code, if I have something like this in WIN 32, how can I move it to managed..
HRESULT result = _channel->WritePacket((
unsigned char*)buffer, strlen(buffer)); return(!FAILED(result));How can I do the same thing......
Thanks,
Harsimrat

HRESULT in managed code
Redmanmc
int result = _channel.WritePacket(buffer, buffer.length());
return (result==0)true false;
EPINAUD
If you are using C++, you can use that exactly the same way since VC++ 2005 supports mixed mode applications. I'd recommend that over RCW.
Danik
DevGuy
See http://msdn2.microsoft.com/en-us/library/f31k2c87.aspx