Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC help : code error 0000007B Pin
TinyDevices15-May-12 3:32
professionalTinyDevices15-May-12 3:32 
AnswerRe: MFC help : code error 0000007B Pin
Andy41114-May-12 22:49
Andy41114-May-12 22:49 
GeneralRe: MFC help : code error 0000007B Pin
CPallini14-May-12 23:09
mveCPallini14-May-12 23:09 
GeneralRe: MFC help : code error 0000007B Pin
Andy41114-May-12 23:18
Andy41114-May-12 23:18 
GeneralRe: MFC help : code error 0000007B Pin
jawadali47714-May-12 23:46
jawadali47714-May-12 23:46 
GeneralRe: MFC help : code error 0000007B Pin
Andy41114-May-12 23:59
Andy41114-May-12 23:59 
GeneralRe: MFC help : code error 0000007B Pin
David Crow15-May-12 3:52
David Crow15-May-12 3:52 
SuggestionRe: MFC help : code error 0000007B Pin
David Crow15-May-12 3:58
David Crow15-May-12 3:58 
jawadali477 wrote:
char COMportPrefix[10] = "COM";
char COMportName[256];

sprintf(COMportName, "%s%d", COMportPrefix, COMportNum); // initialize serial port COM3

strng = CString(COMportName);
strng.Format(_T("%0.9s"), strng);
SetDlgItemText(IDC_STAT, strng);
I'm thinking you could eliminate some overhead here. Try:
strng.Format(_T("COM%d"), COMportNum);
Note that this likely has nothing to do with why open_host_port() is not opening the port.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


AnswerRe: MFC help : code error 0000007B Pin
soaringpilot15-May-12 10:44
soaringpilot15-May-12 10:44 
GeneralRe: MFC help : code error 0000007B Pin
jawadali47716-May-12 19:19
jawadali47716-May-12 19:19 
GeneralRe: MFC help : code error 0000007B Pin
soaringpilot17-May-12 6:19
soaringpilot17-May-12 6:19 
QuestionResponding To Asynchronous Functions Pin
AmbiguousName14-May-12 20:38
AmbiguousName14-May-12 20:38 
AnswerRe: Responding To Asynchronous Functions Pin
CPallini14-May-12 22:08
mveCPallini14-May-12 22:08 
AnswerRe: Responding To Asynchronous Functions Pin
TinyDevices15-May-12 3:31
professionalTinyDevices15-May-12 3:31 
AnswerRe: Responding To Asynchronous Functions Pin
soaringpilot15-May-12 10:51
soaringpilot15-May-12 10:51 
AnswerRe: Responding To Asynchronous Functions Pin
TomasRiker217-May-12 8:12
TomasRiker217-May-12 8:12 
QuestionHow do I check or change text in a VS2008 menu bar menu item Pin
soaringpilot14-May-12 12:22
soaringpilot14-May-12 12:22 
AnswerRe: How do I check or change text in a VS2008 menu bar menu item Pin
«_Superman_»14-May-12 16:32
professional«_Superman_»14-May-12 16:32 
GeneralRe: How do I check or change text in a VS2008 menu bar menu item Pin
soaringpilot15-May-12 10:21
soaringpilot15-May-12 10:21 
Questionc++ win32, What's the best way to handle large fonts 120 dpi Pin
jkirkerx14-May-12 8:33
professionaljkirkerx14-May-12 8:33 
AnswerRe: c++ win32, What's the best way to handle large fonts 120 dpi Pin
enhzflep14-May-12 11:06
enhzflep14-May-12 11:06 
GeneralRe: c++ win32, What's the best way to handle large fonts 120 dpi Pin
jkirkerx14-May-12 11:38
professionaljkirkerx14-May-12 11:38 
QuestionVfw decompression - real sample code wanted Pin
Vaclav_14-May-12 8:24
Vaclav_14-May-12 8:24 
QuestionDrawImage from 2 image buffer Pin
john563213-May-12 23:34
john563213-May-12 23:34 
AnswerRe: DrawImage from 2 image buffer Pin
Richard MacCutchan14-May-12 0:17
mveRichard MacCutchan14-May-12 0:17 

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.