Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I made seven segment on SDI format.

but I cannot see the number.

i refered this link

A MFC/GDI+ LCD Control[^]

MainFrame part : SDI (Splitter)

 

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
 m_wndSplitter.CreateStatic(this, 2, 1);
 m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMASTER),
                                                CSize(640, 500), pContext);
 /*m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CViewUpper),
                                                CSize(150, 50), pContext);*/
 m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CViewLower),
                                                CSize(150, 50), pContext);
 //m_wndSplitter.CreateView(1, 1, RUNTIME_CLASS(CViewCount),
 //                                               CSize(150, 50), pContext);
 return TRUE;

 return CFrameWndEx::OnCreateClient(lpcs, pContext);
}




C#
Master  is my screen (having problem to show LCD)

//  this part is LCD Display,, (See my attached picture)

void CMASTER::OnLcdDisplay()
{

 m_LcdVolt.SetSegmentStyle( Segment7, FALSE );
 m_LcdVolt.SetValueNbDigit( 4,2 );
 m_LcdVolt.ShowSign( FALSE );
 m_LcdVolt.SetColor( RGB(150,150,0) );
 m_LcdVolt.SetValue( 2.35 );               //--> No work.. I think,

}


I dont know why did not show number,
Posted
Updated 14-Dec-11 19:02pm
v4
Comments
Mohibur Rashid 15-Dec-11 1:04am    
How do you control it?

What port do you use?

i mean,
1. Parallel Port
2. Serial Port
3. USB Port
Mohibur Rashid 15-Dec-11 1:06am    
Now I saw the link, now I know what you mean.
Sun-Mi Kang 15-Dec-11 1:50am    
I used RS-232C USB Port
Sun-Mi Kang 15-Dec-11 1:54am    
this is my program problem picture


http://cyw.do/133aGP/UlAsQ

My program is MODBUS program!
this is video(working) : http://minihp.cyworld.com/45183393/3161472486
Mohibur Rashid 15-Dec-11 1:57am    
I have Understood your problem, Its not related with transferring, or receiving data, you are having problem with displaying output, I think you should re-analysis the original code you are following.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900