Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 21:38
Le@rner17-Jul-11 21:38 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 21:52
Code-o-mat17-Jul-11 21:52 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Le@rner17-Jul-11 22:05
Le@rner17-Jul-11 22:05 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat17-Jul-11 22:35
Code-o-mat17-Jul-11 22:35 
GeneralMessage Removed Pin
16-Dec-11 0:14
Le@rner16-Dec-11 0:14 
GeneralRe: How to open and read/write from multiple serial ports at the same time? Pin
Code-o-mat16-Dec-11 0:29
Code-o-mat16-Dec-11 0:29 
Questionarray declaration Pin
Danzy8317-Jul-11 10:17
Danzy8317-Jul-11 10:17 
AnswerRe: array declaration Pin
Richard Andrew x6417-Jul-11 10:47
professionalRichard Andrew x6417-Jul-11 10:47 
I think this is an array of unsigned char pointers.

unsigned char (*main_data)[MAD_BUFFER_MDLEN];  is somewhat equivalent to:

unsigned char **main_data;  


The difference is that in the first declaration above, the entire array is created on the stack by the compiler.

You don't need to allocate this array with malloc since it's already on the stack.
The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: array declaration [modified] Pin
Danzy8317-Jul-11 11:56
Danzy8317-Jul-11 11:56 
GeneralRe: array declaration Pin
Richard Andrew x6417-Jul-11 13:45
professionalRichard Andrew x6417-Jul-11 13:45 
GeneralRe: array declaration Pin
Richard MacCutchan17-Jul-11 22:59
mveRichard MacCutchan17-Jul-11 22:59 
AnswerRe: array declaration Pin
«_Superman_»17-Jul-11 15:45
professional«_Superman_»17-Jul-11 15:45 
GeneralRe: array declaration Pin
Richard Andrew x6417-Jul-11 16:14
professionalRichard Andrew x6417-Jul-11 16:14 
GeneralRe: array declaration Pin
«_Superman_»17-Jul-11 16:33
professional«_Superman_»17-Jul-11 16:33 
GeneralRe: array declaration Pin
Richard Andrew x6417-Jul-11 17:32
professionalRichard Andrew x6417-Jul-11 17:32 
GeneralRe: array declaration Pin
Richard MacCutchan17-Jul-11 23:08
mveRichard MacCutchan17-Jul-11 23:08 
GeneralRe: array declaration Pin
«_Superman_»18-Jul-11 9:10
professional«_Superman_»18-Jul-11 9:10 
GeneralRe: array declaration Pin
Richard MacCutchan18-Jul-11 9:19
mveRichard MacCutchan18-Jul-11 9:19 
QuestionControlling microphone gain using "mixer" API? Pin
Vaclav_17-Jul-11 7:40
Vaclav_17-Jul-11 7:40 
AnswerRe: Controlling microphone gain using "mixer" API? Pin
Mark Salsbery17-Jul-11 11:46
Mark Salsbery17-Jul-11 11:46 
GeneralRe: Controlling microphone gain using "mixer" API? Pin
Vaclav_17-Jul-11 12:15
Vaclav_17-Jul-11 12:15 
QuestionVS 2010 and XP Pin
RomTibi16-Jul-11 23:45
RomTibi16-Jul-11 23:45 
AnswerRe: VS 2010 and XP Pin
Richard MacCutchan17-Jul-11 1:04
mveRichard MacCutchan17-Jul-11 1:04 
GeneralRe: VS 2010 and XP Pin
RomTibi17-Jul-11 8:50
RomTibi17-Jul-11 8:50 
GeneralRe: VS 2010 and XP Pin
RomTibi17-Jul-11 17:45
RomTibi17-Jul-11 17:45 

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.