Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
GeneralRe: asynchronous function call Pin
S. Senthil Kumar27-Apr-08 3:23
S. Senthil Kumar27-Apr-08 3:23 
GeneralRe: asynchronous function call Pin
George_George27-Apr-08 3:35
George_George27-Apr-08 3:35 
GeneralRe: asynchronous function call Pin
S. Senthil Kumar27-Apr-08 5:16
S. Senthil Kumar27-Apr-08 5:16 
GeneralRe: asynchronous function call Pin
George_George27-Apr-08 17:41
George_George27-Apr-08 17:41 
Questionhow to attach signature to word document Pin
Sunix.Fu26-Apr-08 4:09
Sunix.Fu26-Apr-08 4:09 
Generalapplication given en error when parameters in stored procedure is changes [modified] Pin
sanjubaba26-Apr-08 2:18
sanjubaba26-Apr-08 2:18 
Questionstructure problem in c# Pin
rjkg26-Apr-08 1:08
rjkg26-Apr-08 1:08 
GeneralRe: structure problem in c# Pin
Luc Pattyn26-Apr-08 1:44
sitebuilderLuc Pattyn26-Apr-08 1:44 
Hi,

it depends on what you want it for. If it's just data being shared between two
pieces of C# code, then use:
struct myStructure {
    int number;
    string name;
}


and it will hold your data, whatever the length of the name string will be.

If on the other hand you want to share the data with code in another programming language,
or with a hardware device, then it will take more effort (e.g.with Marshaling attributes
or code) to match the requirements.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


QuestionRe: structure problem in c# Pin
rjkg26-Apr-08 1:52
rjkg26-Apr-08 1:52 
GeneralRe: structure problem in c# Pin
Anthony Mushrow26-Apr-08 2:18
professionalAnthony Mushrow26-Apr-08 2:18 
GeneralRe: structure problem in c# Pin
rjkg26-Apr-08 2:25
rjkg26-Apr-08 2:25 
GeneralRe: structure problem in c# Pin
Anthony Mushrow26-Apr-08 2:35
professionalAnthony Mushrow26-Apr-08 2:35 
GeneralRe: structure problem in c# Pin
Luc Pattyn26-Apr-08 2:21
sitebuilderLuc Pattyn26-Apr-08 2:21 
GeneralRe: structure problem in c# Pin
Guffa26-Apr-08 3:18
Guffa26-Apr-08 3:18 
GeneralRe: structure problem in c# Pin
Thomas Stockwell26-Apr-08 18:12
professionalThomas Stockwell26-Apr-08 18:12 
Generaldefault exception handling Pin
George_George25-Apr-08 22:28
George_George25-Apr-08 22:28 
GeneralRe: default exception handling Pin
Christian Graus25-Apr-08 22:57
protectorChristian Graus25-Apr-08 22:57 
GeneralRe: default exception handling Pin
George_George25-Apr-08 23:07
George_George25-Apr-08 23:07 
GeneralRe: default exception handling Pin
Christian Graus25-Apr-08 23:25
protectorChristian Graus25-Apr-08 23:25 
GeneralRe: default exception handling Pin
George_George26-Apr-08 3:17
George_George26-Apr-08 3:17 
Questionreference type in EXE? Pin
George_George25-Apr-08 22:08
George_George25-Apr-08 22:08 
AnswerRe: reference type in EXE? Pin
Christian Graus25-Apr-08 22:58
protectorChristian Graus25-Apr-08 22:58 
GeneralRe: reference type in EXE? Pin
George_George25-Apr-08 23:05
George_George25-Apr-08 23:05 
GeneralRe: reference type in EXE? Pin
Christian Graus25-Apr-08 23:26
protectorChristian Graus25-Apr-08 23:26 
GeneralRe: reference type in EXE? Pin
George_George26-Apr-08 3:43
George_George26-Apr-08 3:43 

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.