Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
GeneralReplace DLL with my owns Pin
lajiyo26-Nov-03 1:36
lajiyo26-Nov-03 1:36 
GeneralRe: Replace DLL with my owns Pin
Heath Stewart26-Nov-03 2:56
protectorHeath Stewart26-Nov-03 2:56 
GeneralRe: Replace DLL with my owns Pin
Christian Graus26-Nov-03 9:56
protectorChristian Graus26-Nov-03 9:56 
GeneralRe: Replace DLL with my owns Pin
Colin Angus Mackay26-Nov-03 12:28
Colin Angus Mackay26-Nov-03 12:28 
GeneralRe: Replace DLL with my owns Pin
leppie26-Nov-03 13:13
leppie26-Nov-03 13:13 
QuestionHow to install only "Microsoft Jet 4.0 OLE DB Provider" Pin
nrg26-Nov-03 1:30
nrg26-Nov-03 1:30 
AnswerRe: How to install only "Microsoft Jet 4.0 OLE DB Provider" Pin
Heath Stewart26-Nov-03 2:45
protectorHeath Stewart26-Nov-03 2:45 
General** Array in C# Pin
Relampago25-Nov-03 22:25
Relampago25-Nov-03 22:25 
Hi
Im try to get the icq api to work in c# but i trapped into a big problem.

The dll-function:

ICQAPICall_GetOnlineListDetails

BOOL WINAPI ICQAPICall_GetOnlineListDetails(int &iCount, BPSICQAPI_User **ppUsers);

In (Arguments): None
Out (Returns): iCount, ppUsers
iCount - the number of Users to follow
ppUsers - a pointer to the users’ array.
Description: The data returned is in the order of the online list, top to bottom. The users array is initialized with the user’s ICQ# (m_iUIN field) and the Window Handle (m_hFloatWindow) if the user is “floating”. The users array should be freed by calling ICQAPIUtil_FreeUsers to free each user structure and the array itself.

The iCount Parameter i get correctly with passing "out iCount" to the function (it will return the exact count), but the array gets size 1 and consists garbage. I used this:

[MarshalAs(UnmanagedType.LPArray)]
BSICQAPI_User[] ppUsers //its a array of structs.

It doesnt matter if i do ref or not in the function header.


Does somone know how i can get the right parameter for BPSICQAPI_User **ppUsers ?

THX

sorry for my bad english

GeneralRe: ** Array in C# Pin
Heath Stewart26-Nov-03 3:07
protectorHeath Stewart26-Nov-03 3:07 
GeneralRe: ** Array in C# Pin
Relampago26-Nov-03 6:21
Relampago26-Nov-03 6:21 
GeneralRe: ** Array in C# Pin
Heath Stewart26-Nov-03 8:11
protectorHeath Stewart26-Nov-03 8:11 
GeneralRe: ** Array in C# Pin
Relampago26-Nov-03 8:47
Relampago26-Nov-03 8:47 
GeneralRe: ** Array in C# Pin
Heath Stewart26-Nov-03 9:50
protectorHeath Stewart26-Nov-03 9:50 
Generalconnection timeout Pin
Roger Alsing25-Nov-03 21:46
Roger Alsing25-Nov-03 21:46 
GeneralRe: connection timeout Pin
Dennis Klein26-Nov-03 1:12
Dennis Klein26-Nov-03 1:12 
GeneralRe: connection timeout Pin
Roger Alsing26-Nov-03 1:44
Roger Alsing26-Nov-03 1:44 
GeneralSound format converter API Pin
Oyvind Bratland25-Nov-03 21:27
Oyvind Bratland25-Nov-03 21:27 
GeneralRe: Sound format converter API Pin
Heath Stewart26-Nov-03 3:10
protectorHeath Stewart26-Nov-03 3:10 
GeneralRe: Sound format converter API Pin
Oyvind Bratland26-Nov-03 3:20
Oyvind Bratland26-Nov-03 3:20 
GeneralRe: Sound format converter API Pin
Heath Stewart26-Nov-03 3:29
protectorHeath Stewart26-Nov-03 3:29 
GeneralRe: Sound format converter API Pin
Oyvind Bratland26-Nov-03 3:36
Oyvind Bratland26-Nov-03 3:36 
GeneralRe: Sound format converter API Pin
Heath Stewart26-Nov-03 3:40
protectorHeath Stewart26-Nov-03 3:40 
GeneralCaching Configuration Settings Pin
Shaun Becker25-Nov-03 11:01
Shaun Becker25-Nov-03 11:01 
GeneralRe: Caching Configuration Settings Pin
Heath Stewart25-Nov-03 11:56
protectorHeath Stewart25-Nov-03 11:56 
GeneralDisplaying Thumbnails Pin
Mr_Mike25-Nov-03 10:29
Mr_Mike25-Nov-03 10:29 

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.