Click here to Skip to main content
15,899,014 members
Home / Discussions / C#
   

C#

 
QuestionDifference Between _number and number Pin
eddieangel15-Sep-11 6:11
eddieangel15-Sep-11 6:11 
AnswerRe: Difference Between _number and number Pin
BillWoodruff15-Sep-11 7:08
professionalBillWoodruff15-Sep-11 7:08 
GeneralRe: Difference Between _number and number Pin
eddieangel15-Sep-11 7:10
eddieangel15-Sep-11 7:10 
GeneralRe: Difference Between _number and number Pin
BillWoodruff15-Sep-11 7:40
professionalBillWoodruff15-Sep-11 7:40 
GeneralRe: Difference Between _number and number Pin
eddieangel15-Sep-11 7:46
eddieangel15-Sep-11 7:46 
GeneralRe: Difference Between _number and number Pin
BillWoodruff15-Sep-11 7:58
professionalBillWoodruff15-Sep-11 7:58 
GeneralRe: Difference Between _number and number Pin
eddieangel15-Sep-11 8:00
eddieangel15-Sep-11 8:00 
QuestionDLL native win32 variables lifetime? Pin
skaboFer15-Sep-11 3:39
skaboFer15-Sep-11 3:39 
Hi, I'm developing a win32 dll, I'm a c# programmer without a lot of experience in c++. So I decide to do this dll in c#.My dll have to expose a few functions and also has to communicate with a serial port, I resolved pretty well the export functions in the same way as in c++ like win32 API, and about the serial port I will manage it like a safe code object (SerialPort object). But my question is, if one of these functions that the dll export is like "WriteCommMsg(MsgStr * msg)", I don't know were to declare the necesary variables, for example if I'd have to save the last send msg, were this variable would be declared?, I mean, my doubt is what is the lifetime of the variables in a dynamic win32 dll.

For example, try to consider these situation: the user application will call a function of my dll, for example OpenPort()....here my dll has to initialize the port and open it (not only but the basic..), and for doing these create an object of SerialPort....but what happened with the object whe the call to the functions end?....

Hope someone could help me..
thanks
skabo - Robots are a dynamic work of art...

AnswerRe: DLL native win32 variables lifetime? Crosspost Pin
Richard MacCutchan15-Sep-11 4:19
mveRichard MacCutchan15-Sep-11 4:19 
GeneralRe: DLL native win32 variables lifetime? Pin
skaboFer15-Sep-11 4:39
skaboFer15-Sep-11 4:39 
GeneralRe: DLL native win32 variables lifetime? Pin
Richard MacCutchan15-Sep-11 5:46
mveRichard MacCutchan15-Sep-11 5:46 
GeneralRe: DLL native win32 variables lifetime? Pin
skaboFer15-Sep-11 5:54
skaboFer15-Sep-11 5:54 
AnswerRe: DLL native win32 variables lifetime? Pin
BobJanova16-Sep-11 3:52
BobJanova16-Sep-11 3:52 
GeneralRe: DLL native win32 variables lifetime? Pin
skaboFer16-Sep-11 4:45
skaboFer16-Sep-11 4:45 
GeneralRe: DLL native win32 variables lifetime? Pin
BobJanova16-Sep-11 5:12
BobJanova16-Sep-11 5:12 
QuestionAdd Control in WPF Window Pin
Anubhava Dimri15-Sep-11 0:20
Anubhava Dimri15-Sep-11 0:20 
AnswerRe: Add Control in WPF Window Pin
Pete O'Hanlon15-Sep-11 0:26
mvePete O'Hanlon15-Sep-11 0:26 
AnswerRe: Add Control in WPF Window Pin
V.15-Sep-11 1:49
professionalV.15-Sep-11 1:49 
QuestionMemory is available or not at declaring the object. Pin
Anubhava Dimri14-Sep-11 21:30
Anubhava Dimri14-Sep-11 21:30 
AnswerRe: Memory is available or not at declaring the object. Pin
lukeer14-Sep-11 22:04
lukeer14-Sep-11 22:04 
GeneralRe: Memory is available or not at declaring the object. Pin
Wayne Gaylard14-Sep-11 22:21
professionalWayne Gaylard14-Sep-11 22:21 
GeneralRe: Memory is available or not at declaring the object. Pin
Eddy Vluggen15-Sep-11 6:38
professionalEddy Vluggen15-Sep-11 6:38 
AnswerRe: Memory is available or not at declaring the object. Pin
PIEBALDconsult15-Sep-11 2:58
mvePIEBALDconsult15-Sep-11 2:58 
QuestionBitmaps [modified] Pin
Member 780730914-Sep-11 16:56
Member 780730914-Sep-11 16:56 
AnswerRe: Bitmaps Pin
Abhinav S14-Sep-11 17:22
Abhinav S14-Sep-11 17:22 

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.