Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 1:41
professionalDaveyM6910-Sep-10 1:41 
GeneralRe: How to call the function in cellcore.dll? Pin
Luc Pattyn10-Sep-10 1:59
sitebuilderLuc Pattyn10-Sep-10 1:59 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 2:09
professionalDaveyM6910-Sep-10 2:09 
GeneralRe: How to call the function in cellcore.dll? Pin
Luc Pattyn10-Sep-10 2:17
sitebuilderLuc Pattyn10-Sep-10 2:17 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 2:19
professionalDaveyM6910-Sep-10 2:19 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 0:28
professionalDaveyM6910-Sep-10 0:28 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds10-Sep-10 0:33
whiteclouds10-Sep-10 0:33 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6911-Sep-10 22:25
professionalDaveyM6911-Sep-10 22:25 
Following the discussion I had with Luc, I've done some investigation into the way uinions work, and he is correct, the parameters inside the union block start at the same place in memory - in otherwords, the struct will contain one of the handles but not both so the best way to declare it is:
C#
[StructLayout(LayoutKind.Sequential)]
private struct LINEINITIALIZEEXPARAMS
{
    public uint dwTotalSize;
    public uint dwNeededSize;
    public uint dwUsedSize;
    public uint dwOptions;
    public IntPtr handle; // Will be either hEvent OR hCompletionPort
    public uint dwCompletionKey;
}

Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: How to call the function in cellcore.dll? [modified] Pin
whiteclouds12-Sep-10 17:45
whiteclouds12-Sep-10 17:45 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6913-Sep-10 12:52
professionalDaveyM6913-Sep-10 12:52 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds13-Sep-10 15:33
whiteclouds13-Sep-10 15:33 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6914-Sep-10 8:25
professionalDaveyM6914-Sep-10 8:25 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds14-Sep-10 17:00
whiteclouds14-Sep-10 17:00 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6914-Sep-10 21:41
professionalDaveyM6914-Sep-10 21:41 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds16-Sep-10 23:53
whiteclouds16-Sep-10 23:53 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6918-Sep-10 2:33
professionalDaveyM6918-Sep-10 2:33 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds18-Sep-10 3:33
whiteclouds18-Sep-10 3:33 
QuestionPassing array of c# objects to vbscript [modified] Pin
scootyohansen9-Sep-10 22:03
scootyohansen9-Sep-10 22:03 
QuestionValidating string values Pin
Ramkithepower9-Sep-10 21:54
Ramkithepower9-Sep-10 21:54 
AnswerRe: Validating string values Pin
Kubajzz9-Sep-10 22:07
Kubajzz9-Sep-10 22:07 
GeneralRe: Validating string values Pin
Ramkithepower9-Sep-10 22:26
Ramkithepower9-Sep-10 22:26 
GeneralRe: Validating string values Pin
OriginalGriff10-Sep-10 0:28
mveOriginalGriff10-Sep-10 0:28 
AnswerRe: Validating string values Pin
PIEBALDconsult10-Sep-10 3:46
mvePIEBALDconsult10-Sep-10 3:46 
QuestionNot getting the reason for 'Application.OnThreadException' raised. Pin
srng.net9-Sep-10 21:31
srng.net9-Sep-10 21:31 
AnswerRe: Not getting the reason for 'Application.OnThreadException' raised. Pin
Richard MacCutchan9-Sep-10 22:11
mveRichard MacCutchan9-Sep-10 22:11 

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.