Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading a bitmap over a network Pin
Jack Mott29-Jun-01 7:12
Jack Mott29-Jun-01 7:12 
GeneralRe: Loading a bitmap over a network Pin
Drake Elsari29-Jun-01 7:20
Drake Elsari29-Jun-01 7:20 
GeneralRe: Loading a bitmap over a network Pin
Jack Mott29-Jun-01 7:35
Jack Mott29-Jun-01 7:35 
GeneralRe: Loading a bitmap over a network Pin
Drake Elsari30-Jun-01 14:52
Drake Elsari30-Jun-01 14:52 
GeneralPainting a bitmap over a CStatic Bitmap Pin
29-Jun-01 7:07
suss29-Jun-01 7:07 
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 12:20
suss29-Jun-01 12:20 
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 13:56
suss29-Jun-01 13:56 
GeneralArrays n'stuff Pin
John Uhlenbrock29-Jun-01 7:04
John Uhlenbrock29-Jun-01 7:04 
I have a byte array that is allocated with a size of 4096. That is the max, and I will probably never fill up the array. Then I pass this array to a function that needs to send all that data that is in the array to the serial port.
What is the best way to go about this?

My first idea was to create a CString object to represent the data....like so.....

void SendDataToPort(unsigned char * pData)
{
CString StringToSend;
int iCursor = 0;

while(pData[iCursor] != NULL)
{
StringToSend += pData[iCursor];
iCursor++;
}

// Use either CString::GetBuffer() or CString::operator LPCTSTR() to get the string.
// Sent it.
}

I would think there is an easier way to do this to do this. Also, what is the syntax for using CString::operator LPCTSTR(). Last, I noticed when people post code in messages, they can make it appear with a yellow background, and the code format remains in-tact, how is that done?

Thanks,
John
GeneralRe: Arrays n'stuff Pin
Michael Dunn29-Jun-01 7:36
sitebuilderMichael Dunn29-Jun-01 7:36 
GeneralRe: Arrays n'stuff Pin
John Uhlenbrock29-Jun-01 10:32
John Uhlenbrock29-Jun-01 10:32 
GeneralRe: Arrays n'stuff Pin
Ben Burnett29-Jun-01 11:34
Ben Burnett29-Jun-01 11:34 
QuestionHow do I get LOGFONT from an IFont without using CFont? Pin
Bart-Man29-Jun-01 6:18
Bart-Man29-Jun-01 6:18 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
PJ Arends29-Jun-01 17:00
professionalPJ Arends29-Jun-01 17:00 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
Ben Burnett29-Jun-01 17:01
Ben Burnett29-Jun-01 17:01 
GeneralGetPrivateProfileString() keeps failing Pin
David Osborn29-Jun-01 5:49
David Osborn29-Jun-01 5:49 
GeneralRe: GetPrivateProfileString() keeps failing Pin
#realJSOP1-Jul-01 3:17
mve#realJSOP1-Jul-01 3:17 
QuestionWhat control should I use??? Pin
Michael Martin29-Jun-01 5:39
professionalMichael Martin29-Jun-01 5:39 
GeneralGetting keyboard calls from external application windows Pin
David Higgins29-Jun-01 4:25
David Higgins29-Jun-01 4:25 
GeneralRe: Getting keyboard calls from external application windows Pin
29-Jun-01 4:46
suss29-Jun-01 4:46 
GeneralSplitter Windows Pin
Drake Elsari29-Jun-01 4:08
Drake Elsari29-Jun-01 4:08 
GeneralRe: Splitter Windows Pin
Drake Elsari29-Jun-01 15:53
Drake Elsari29-Jun-01 15:53 
GeneralRe: Splitter Windows Pin
Ben Burnett29-Jun-01 16:55
Ben Burnett29-Jun-01 16:55 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 4:30
Drake Elsari30-Jun-01 4:30 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 8:08
Drake Elsari30-Jun-01 8:08 
GeneralRe: Splitter Windows Pin
Ben Burnett30-Jun-01 8:29
Ben Burnett30-Jun-01 8:29 

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.