Click here to Skip to main content
14,775,466 members
Home » Discussions » C#
   

C#

 
AnswerRe: Getting all the nodes in a treeview Pin
Eslam Afifi16-Jun-09 9:26
MemberEslam Afifi16-Jun-09 9:26 
AnswerRe: Getting all the nodes in a treeview Pin
I Believe In GOD16-Jun-09 12:07
MemberI Believe In GOD16-Jun-09 12:07 
GeneralRe: Getting all the nodes in a treeview Pin
Quake2Player16-Jun-09 12:23
MemberQuake2Player16-Jun-09 12:23 
GeneralRe: Getting all the nodes in a treeview Pin
Dave Kreskowiak16-Jun-09 13:06
mveDave Kreskowiak16-Jun-09 13:06 
QuestionDynamically applying font values to the label control from the database. Pin
praveenkumar_vittaboina16-Jun-09 7:26
Memberpraveenkumar_vittaboina16-Jun-09 7:26 
AnswerRe: Dynamically applying font values to the label control from the database. Pin
Henry Minute16-Jun-09 7:31
MemberHenry Minute16-Jun-09 7:31 
Question[Message Deleted] Pin
mypicturefaded16-Jun-09 7:00
Membermypicturefaded16-Jun-09 7:00 
QuestionHow to Interop 2D char in c# Pin
platso_58816-Jun-09 5:42
Memberplatso_58816-Jun-09 5:42 
I have written a COM DLL which gives the
out parameter as BSTR**(Typically 2D Char Array).

This COM function will fill the values of BSTR** variable.

I am able to use this function sucessfully in MFC Application.
But I face problem in using it in C#.

The Sample code is as follows:

///////////COM Function////////////////////////////////////////
STDMETHODIMP CSampleTest::GetAllDeviceList2(BSTR** szMaclist)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());

for(int i=0;i<10;i++)
{
szMaclist[i] = new BSTR[100];
wchar_t *szTmp = new wchar_t[100];
wsprintf(szTmp,L"Device%d",i+1);
*szMaclist[i]=SysAllocString(szTmp);
}
return S_OK;
}
///////////////////////////////////////////////////////////////
I acessed this in VC++ by,
BSTR **szMaclist = new BSTR*[10];
CoInitialize(NULL);
HRESULT hr = CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,iid,(void**)&pText);
if( SUCCEEDED(hr) )
{
pText->GetAllDeviceList2(szMaclist);
pText->Release();
}
and i am sucessful in acessing this function in MFC Application.

Can anyone tell me how to acess GetAllDeviceList2() function in c#.
AnswerRe: How to Interop 2D char in c# Pin
Moim Hossain16-Jun-09 10:07
MemberMoim Hossain16-Jun-09 10:07 
GeneralRe: How to Interop 2D char in c# Pin
platso_58816-Jun-09 19:34
Memberplatso_58816-Jun-09 19:34 
QuestionHow to get the document which is associated with a process having specific Guid value? Pin
svt gdwl16-Jun-09 5:31
Membersvt gdwl16-Jun-09 5:31 
QuestionIPicture to byte[] Pin
Sander123432116-Jun-09 5:24
MemberSander123432116-Jun-09 5:24 
AnswerRe: IPicture to byte[] Pin
Rob Philpott16-Jun-09 5:47
MemberRob Philpott16-Jun-09 5:47 
GeneralRe: IPicture to byte[] Pin
Sander123432116-Jun-09 5:50
MemberSander123432116-Jun-09 5:50 
GeneralRe: IPicture to byte[] Pin
Rob Philpott16-Jun-09 5:57
MemberRob Philpott16-Jun-09 5:57 
AnswerRe: IPicture to byte[] Pin
0x3c016-Jun-09 9:58
Member0x3c016-Jun-09 9:58 
QuestionUnmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
DaveyM6916-Jun-09 4:57
professionalDaveyM6916-Jun-09 4:57 
AnswerRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
Luc Pattyn16-Jun-09 5:27
sitebuilderLuc Pattyn16-Jun-09 5:27 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
DaveyM6916-Jun-09 5:54
professionalDaveyM6916-Jun-09 5:54 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
DaveyM6916-Jun-09 14:25
professionalDaveyM6916-Jun-09 14:25 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
Luc Pattyn16-Jun-09 15:10
sitebuilderLuc Pattyn16-Jun-09 15:10 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
DaveyM6917-Jun-09 1:46
professionalDaveyM6917-Jun-09 1:46 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
DaveyM6917-Jun-09 10:07
professionalDaveyM6917-Jun-09 10:07 
GeneralRe: Unmanaged function pointers / Marshal.GetFunctionPointerForDelegate Pin
Luc Pattyn17-Jun-09 10:29
sitebuilderLuc Pattyn17-Jun-09 10:29 
Questionapp domain !!! help please!!! Pin
yams251016-Jun-09 4:33
Memberyams251016-Jun-09 4:33 

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.