Click here to Skip to main content
15,884,473 members
Home / Discussions / C#
   

C#

 
QuestionHow to code in for USB to serial......sending and receiving communication Pin
pallaka20-Jul-09 0:11
pallaka20-Jul-09 0:11 
AnswerRe: How to code in for USB to serial......sending and receiving communication Pin
Luc Pattyn20-Jul-09 0:40
sitebuilderLuc Pattyn20-Jul-09 0:40 
QuestionEnterprise application Development (MCPD) Pin
Abdul Rahman Hamidy20-Jul-09 0:03
Abdul Rahman Hamidy20-Jul-09 0:03 
QuestionMulti client - Server application Pin
Tej Aj19-Jul-09 23:42
Tej Aj19-Jul-09 23:42 
AnswerRe: Multi client - Server application Pin
stancrm19-Jul-09 23:58
stancrm19-Jul-09 23:58 
QuestionEvent handling Object reference error Pin
gwithey19-Jul-09 22:44
gwithey19-Jul-09 22:44 
AnswerRe: Event handling Object reference error Pin
Uri Lavi19-Jul-09 22:49
Uri Lavi19-Jul-09 22:49 
AnswerRe: Event handling Object reference error Pin
DaveyM6919-Jul-09 23:04
professionalDaveyM6919-Jul-09 23:04 
This is static
public static string ParseCommand(string m_recievedUCCData)
{
    // ...
    OnUpdate(rxPortData);
    // ...
}
This is not so can only be called by an instance of CommandParser
protected virtual void OnUpdate(CommandData commandData)
{
    // ...
}
If there is no particular reason for the ParseCommand method to be static, then make it an instance member. Alternatively, pass a CommandParser instance as a parameter into the ParseCommand method and act on that.
public static string ParseCommand(string m_recievedUCCData, CommandParser commandParser)
{
    // ...
    commandParser.OnUpdate(rxPortData);
    // ...
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: Event handling Object reference error Pin
gwithey19-Jul-09 23:24
gwithey19-Jul-09 23:24 
AnswerRe: Event handling Object reference error Pin
Luc Pattyn20-Jul-09 0:46
sitebuilderLuc Pattyn20-Jul-09 0:46 
QuestionImpersonation Pin
arkiboys19-Jul-09 21:37
arkiboys19-Jul-09 21:37 
Questioncompress bytes Pin
shekhar25839519-Jul-09 21:35
shekhar25839519-Jul-09 21:35 
AnswerRe: compress bytes Pin
0x3c019-Jul-09 21:41
0x3c019-Jul-09 21:41 
QuestionMost efficient way of taking a screenshot? [modified] Pin
Trapper-Hell19-Jul-09 21:15
Trapper-Hell19-Jul-09 21:15 
Answerrepost. ignore. Pin
Luc Pattyn20-Jul-09 0:49
sitebuilderLuc Pattyn20-Jul-09 0:49 
GeneralRe: repost. ignore. Pin
Trapper-Hell20-Jul-09 2:31
Trapper-Hell20-Jul-09 2:31 
Questionconvert image in bytes Pin
shekhar25839519-Jul-09 20:57
shekhar25839519-Jul-09 20:57 
AnswerRe: convert image in bytes Pin
stancrm19-Jul-09 21:12
stancrm19-Jul-09 21:12 
Questionpicturebox help Pin
mjawadkhatri19-Jul-09 20:48
mjawadkhatri19-Jul-09 20:48 
AnswerRe: picturebox help Pin
PandemoniumPasha19-Jul-09 21:47
PandemoniumPasha19-Jul-09 21:47 
GeneralRe: picturebox help Pin
mjawadkhatri19-Jul-09 21:49
mjawadkhatri19-Jul-09 21:49 
GeneralRe: picturebox help Pin
PandemoniumPasha19-Jul-09 21:51
PandemoniumPasha19-Jul-09 21:51 
GeneralRe: picturebox help Pin
mjawadkhatri19-Jul-09 22:14
mjawadkhatri19-Jul-09 22:14 
Questionimport contacts from hotmail using c# Pin
Charan Pat19-Jul-09 20:48
Charan Pat19-Jul-09 20:48 
AnswerRe: import contacts from hotmail using c# Pin
Ashfield19-Jul-09 21:37
Ashfield19-Jul-09 21:37 

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.