Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Queue help Pin
ian_ok1-Dec-02 8:52
ian_ok1-Dec-02 8:52 
GeneralRe: Queue help Pin
Christian Graus1-Dec-02 12:59
protectorChristian Graus1-Dec-02 12:59 
GeneralRe: Queue help Pin
ian_ok2-Dec-02 3:29
ian_ok2-Dec-02 3:29 
GeneralRe: Queue help Pin
Gary R. Wheeler3-Dec-02 15:12
Gary R. Wheeler3-Dec-02 15:12 
GeneralLink errors with GDI+ Pin
Salvador Dali1-Dec-02 3:58
Salvador Dali1-Dec-02 3:58 
GeneralRe: Link errors with GDI+ Pin
Michael Dunn1-Dec-02 5:41
sitebuilderMichael Dunn1-Dec-02 5:41 
GeneralRe: Link errors with GDI+ Pin
Salvador Dali1-Dec-02 10:41
Salvador Dali1-Dec-02 10:41 
GeneralHelp with Buffers! Pin
Paddy1-Dec-02 2:09
Paddy1-Dec-02 2:09 
Hi,
I hope someone can solve this problem for me please!

I have a program in C for recording raw audio samples from the souncard into a buffer in the memory. It compiles and runs perfecty in visual studio. However when I copy the code into a VC++ program it complains about all the memory commands like malloc, realloc ect. Maybe I have to include some .lib file?? Here is some of the code that is causing the problem:


static PBYTE        pBuffer1, pSaveBuffer;<br />
<br />
<br />
<br />
pBuffer1 = malloc (INP_BUFFER_SIZE) ;

error C2440: '=' : cannot convert from 'void *' to 'PBYTE'


pWaveHdr1->lpData = pBuffer1 ;
error C2440: '=' : cannot convert from 'PBYTE' to 'LPSTR'


pSaveBuffer = realloc (pSaveBuffer, 1) ;
error C2440: '=' : cannot convert from 'void *' to 'PBYTE'


Any ideas? Thanks in advance,
Paddy.
GeneralRe: Help with Buffers! Pin
markkuk1-Dec-02 2:37
markkuk1-Dec-02 2:37 
GeneralRe: Help with Buffers! Pin
Paddy1-Dec-02 2:53
Paddy1-Dec-02 2:53 
GeneralRe: Help with Buffers! Pin
slt1-Dec-02 11:57
slt1-Dec-02 11:57 
GeneralRe: Help with Buffers! Pin
Anonymous1-Dec-02 11:57
Anonymous1-Dec-02 11:57 
GeneralChanging priority in a priority queue Pin
pankajdaga1-Dec-02 1:53
pankajdaga1-Dec-02 1:53 
Questionhow can i serialize a tree struct using c++. not use mfc Pin
ttzzgg_807131-Dec-02 1:04
ttzzgg_807131-Dec-02 1:04 
AnswerRe: how can i serialize a tree struct using c++. not use mfc Pin
Christian Graus1-Dec-02 2:43
protectorChristian Graus1-Dec-02 2:43 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
ttzzgg_807131-Dec-02 2:57
ttzzgg_807131-Dec-02 2:57 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
Christian Graus1-Dec-02 9:41
protectorChristian Graus1-Dec-02 9:41 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
Gary R. Wheeler1-Dec-02 5:19
Gary R. Wheeler1-Dec-02 5:19 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
Ravi Bhavnani1-Dec-02 6:39
professionalRavi Bhavnani1-Dec-02 6:39 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
ttzzgg_807131-Dec-02 7:59
ttzzgg_807131-Dec-02 7:59 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
Paul Ingles1-Dec-02 7:15
Paul Ingles1-Dec-02 7:15 
GeneralRe: how can i serialize a tree struct using c++. not use mfc Pin
devvvy1-Dec-02 10:18
devvvy1-Dec-02 10:18 
QuestionHow do I ROTATE rectangels in a View? Pin
doruA30-Nov-02 21:59
doruA30-Nov-02 21:59 
AnswerRe: How do I ROTATE rectangels in a View? Pin
Paul M Watt1-Dec-02 7:14
mentorPaul M Watt1-Dec-02 7:14 
QuestionHow do I resize rectangels in a View Pin
doruA30-Nov-02 21:59
doruA30-Nov-02 21:59 

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.