Click here to Skip to main content
15,920,383 members
Home / Discussions / C#
   

C#

 
GeneralRe: properties vs public fields Pin
hypermegachi26-Nov-05 12:13
hypermegachi26-Nov-05 12:13 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay26-Nov-05 13:53
Colin Angus Mackay26-Nov-05 13:53 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 6:43
hypermegachi27-Nov-05 6:43 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 13:24
Colin Angus Mackay27-Nov-05 13:24 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 16:53
hypermegachi27-Nov-05 16:53 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 20:26
Colin Angus Mackay27-Nov-05 20:26 
GeneralRe: properties vs public fields Pin
hypermegachi28-Nov-05 3:58
hypermegachi28-Nov-05 3:58 
QuestionUrgent:Marshalling BSTR* Pin
rana7426-Nov-05 6:23
rana7426-Nov-05 6:23 
We have a method which had a signature similar to the one below:
HRESULT handlebstrref(BSTR* val);
Here 'val' has [in,out] attributes.So we populate 'val' and expect the processed value being populated in 'val' when the method returns
So a COM client works fine as below
BSTR val=SysAllocString(L"value string");
if(_loader)
{
_loader->handlebstrref(&val);
char* retstr = OLE2A(val);
_loader->Release();
}
But when we try to do the same in C# interop we get "Object refrence not set to an instance of the object"

We tried the folliwng
comstringdump _c=new comstringdump();
Iobjdump _i=null;
if(_c is Iobjdump)
{
StringBuilder s=new StringBuilder();
s.Append("DEAL");
_i=(Iobjdump)_c;
_i.handlebstrref(s);
string my = s.ToString();
}

Please help us with the correct semantics to marshal the parameter

QuestionISR in C# Pin
mostafa.hk26-Nov-05 5:21
mostafa.hk26-Nov-05 5:21 
AnswerRe: ISR in C# Pin
Stanciu Vlad26-Nov-05 5:39
Stanciu Vlad26-Nov-05 5:39 
Questionregex Pin
Sam 200626-Nov-05 5:12
Sam 200626-Nov-05 5:12 
AnswerRe: regex Pin
Guffa26-Nov-05 8:50
Guffa26-Nov-05 8:50 
AnswerRe: regex Pin
Curtis Schlak.26-Nov-05 10:30
Curtis Schlak.26-Nov-05 10:30 
QuestionControl apperance in VS 2005 Pin
ON7AMI26-Nov-05 4:17
ON7AMI26-Nov-05 4:17 
AnswerRe: Control apperance in VS 2005 Pin
Sam 200626-Nov-05 5:17
Sam 200626-Nov-05 5:17 
GeneralRe: Control apperance in VS 2005 Pin
ON7AMI27-Nov-05 7:22
ON7AMI27-Nov-05 7:22 
Questioninserting images in word document from c#? Pin
Hiral Patel26-Nov-05 2:52
Hiral Patel26-Nov-05 2:52 
QuestionHow do I know that how many users are online? Pin
asifhameed126-Nov-05 1:31
asifhameed126-Nov-05 1:31 
AnswerRe: How do I know that how many users are online? Pin
MoustafaS26-Nov-05 1:51
MoustafaS26-Nov-05 1:51 
Questionread from excel file Pin
eyalso26-Nov-05 1:22
eyalso26-Nov-05 1:22 
AnswerRe: read from excel file Pin
Stanciu Vlad26-Nov-05 3:01
Stanciu Vlad26-Nov-05 3:01 
Questionverify c# on computer Pin
QzRz26-Nov-05 0:36
QzRz26-Nov-05 0:36 
AnswerRe: verify c# on computer Pin
ventomito26-Nov-05 5:29
ventomito26-Nov-05 5:29 
AnswerRe: verify c# on computer Pin
Curtis Schlak.26-Nov-05 7:14
Curtis Schlak.26-Nov-05 7:14 
QuestionTree structure in datagridview Pin
WillemM26-Nov-05 0:32
WillemM26-Nov-05 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.