Click here to Skip to main content
15,915,734 members
Home / Discussions / C#
   

C#

 
QuestionWhich timer's callback is on a separate thread? Pin
Jun Du21-Jul-11 8:40
Jun Du21-Jul-11 8:40 
AnswerRe: Which timer's callback is on a separate thread? Pin
jschell21-Jul-11 8:54
jschell21-Jul-11 8:54 
AnswerRe: Which timer's callback is on a separate thread? Pin
Dave Kreskowiak21-Jul-11 9:04
mveDave Kreskowiak21-Jul-11 9:04 
GeneralRe: Which timer's callback is on a separate thread? Pin
Jun Du21-Jul-11 9:21
Jun Du21-Jul-11 9:21 
GeneralRe: Which timer's callback is on a separate thread? Pin
Dave Kreskowiak21-Jul-11 10:00
mveDave Kreskowiak21-Jul-11 10:00 
AnswerRe: Which timer's callback is on a separate thread? Pin
DaveyM6921-Jul-11 9:15
professionalDaveyM6921-Jul-11 9:15 
AnswerRe: Which timer's callback is on a separate thread? Pin
Shameel21-Jul-11 9:42
professionalShameel21-Jul-11 9:42 
AnswerRe: Which timer's callback is on a separate thread? Pin
Luc Pattyn21-Jul-11 17:29
sitebuilderLuc Pattyn21-Jul-11 17:29 
QuestionDelphi 6 code vs C# conversion question Pin
Aurbo721-Jul-11 4:12
Aurbo721-Jul-11 4:12 
AnswerRe: Delphi 6 code vs C# conversion question Pin
Richard MacCutchan21-Jul-11 4:38
mveRichard MacCutchan21-Jul-11 4:38 
GeneralRe: Delphi 6 code vs C# conversion question Pin
Aurbo721-Jul-11 4:49
Aurbo721-Jul-11 4:49 
GeneralRe: Delphi 6 code vs C# conversion question Pin
Richard MacCutchan21-Jul-11 6:34
mveRichard MacCutchan21-Jul-11 6:34 
GeneralRe: Delphi 6 code vs C# conversion question Pin
DaveyM6921-Jul-11 7:48
professionalDaveyM6921-Jul-11 7:48 
If Richard is correct and it's returning a pointer then you may need to copy the data at the pointer to a managed byte array.
C#
byte[] data = new byte[256];
// ...
IntPtr result = DLL.Receive(Adr, Len);
// ...
Marshal.Copy(result, data, 0, 256);

C#
[DllImport("mrdsio.dll", EntryPoint="Receive", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
public static extern IntPtr Receive(int Adr,int Len);

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: Delphi 6 code vs C# conversion question Pin
Aurbo721-Jul-11 8:09
Aurbo721-Jul-11 8:09 
GeneralRe: Delphi 6 code vs C# conversion question Pin
DaveyM6921-Jul-11 9:30
professionalDaveyM6921-Jul-11 9:30 
GeneralRe: Delphi 6 code vs C# conversion question Pin
Aurbo721-Jul-11 10:30
Aurbo721-Jul-11 10:30 
GeneralRe: Delphi 6 code vs C# conversion question Pin
BobJanova22-Jul-11 2:32
BobJanova22-Jul-11 2:32 
AnswerRe: Delphi 6 code vs C# conversion question Pin
BobJanova22-Jul-11 2:31
BobJanova22-Jul-11 2:31 
GeneralRe: Delphi 6 code vs C# conversion question Pin
Aurbo722-Jul-11 4:45
Aurbo722-Jul-11 4:45 
Questioncrystal reports running total problem. Pin
Asif Rehman21-Jul-11 3:27
Asif Rehman21-Jul-11 3:27 
QuestionWhat is best for Parent Child List Pin
Anubhava Dimri20-Jul-11 23:38
Anubhava Dimri20-Jul-11 23:38 
AnswerRe: What is best for Parent Child List Pin
#realJSOP21-Jul-11 0:16
professional#realJSOP21-Jul-11 0:16 
GeneralRe: What is best for Parent Child List Pin
Anubhava Dimri22-Jul-11 0:16
Anubhava Dimri22-Jul-11 0:16 
AnswerRe: What is best for Parent Child List Pin
OriginalGriff21-Jul-11 2:09
mveOriginalGriff21-Jul-11 2:09 
GeneralRe: What is best for Parent Child List Pin
#realJSOP21-Jul-11 2:31
professional#realJSOP21-Jul-11 2:31 

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.