Click here to Skip to main content
14,976,940 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK11-Sep-07 20:18
MemberOrkun GEDiK11-Sep-07 20:18 
GeneralRe: debugging a dll on command line Pin
carrivick11-Sep-07 22:26
Membercarrivick11-Sep-07 22:26 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK12-Sep-07 1:16
MemberOrkun GEDiK12-Sep-07 1:16 
GeneralRe: debugging a dll on command line Pin
carrivick12-Sep-07 5:46
Membercarrivick12-Sep-07 5:46 
GeneralRe: debugging a dll on command line Pin
Orkun GEDiK11-Sep-07 20:14
MemberOrkun GEDiK11-Sep-07 20:14 
QuestionPlotting the wav file Pin
Maynka11-Sep-07 3:51
MemberMaynka11-Sep-07 3:51 
AnswerRe: Plotting the wav file Pin
jhwurmbach11-Sep-07 4:58
Memberjhwurmbach11-Sep-07 4:58 
AnswerRe: Plotting the wav file Pin
carrivick11-Sep-07 10:07
Membercarrivick11-Sep-07 10:07 
To plot this properly you need to establish the range of values represented by each x-axis pixel and then plot a vertical line. Unless the plot area allows more than one pixel per sample.

struct Plot
{
int y_min;
int y_max;
}
samples_per_xaxis_pixels = number_of_samples / display_width;

Plot * plot_array = new Plot[ display_width / number_of_samples ];
for(int x=0,i=0;x<number_of_samples;i++,x+=samples_per_xaxis_pixels)
{

int y_min = INTMAX;
int y_max = -INTMAX;
for(i=x;i<x+samples_per_xaxis_pixels;x++)
{
plot_array[i].y_min = samples_array[x]<plot_array[i].y_min?samples_array[x]:plot_array[i].y_min;
plot_array[i].y_max = samples_array[x]>plot_array[i].y_max?samples_array[x]:plot_array[i].y_max;

}
}


And then plot it !
GeneralRe: Plotting the wav file Pin
Maynka11-Sep-07 18:58
MemberMaynka11-Sep-07 18:58 
QuestionModify tooltip - Mouse over file (.xml) Pin
AeJai11-Sep-07 3:50
MemberAeJai11-Sep-07 3:50 
AnswerRe: Modify tooltip - Mouse over file (.xml) Pin
carrivick11-Sep-07 10:44
Membercarrivick11-Sep-07 10:44 
GeneralRe: Modify tooltip - Mouse over file (.xml) Pin
AeJai11-Sep-07 12:32
MemberAeJai11-Sep-07 12:32 
GeneralRe: Modify tooltip - Mouse over file (.xml) Pin
carrivick12-Sep-07 0:48
Membercarrivick12-Sep-07 0:48 
QuestionMFC: How to disable toolbar buttons Pin
progDes11-Sep-07 3:15
MemberprogDes11-Sep-07 3:15 
AnswerRe: MFC: How to disable toolbar buttons Pin
bob1697211-Sep-07 6:52
Memberbob1697211-Sep-07 6:52 
AnswerRe: MFC: How to disable toolbar buttons Pin
Mark Salsbery11-Sep-07 6:56
MemberMark Salsbery11-Sep-07 6:56 
AnswerRe: MFC: How to disable toolbar buttons Pin
progDes11-Sep-07 7:15
MemberprogDes11-Sep-07 7:15 
QuestionIVMRWindowlessControl:: RepaintVideo Pin
P e t e r11-Sep-07 2:49
MemberP e t e r11-Sep-07 2:49 
AnswerRe: IVMRWindowlessControl:: RepaintVideo Pin
carrivick11-Sep-07 10:49
Membercarrivick11-Sep-07 10:49 
QuestionCListCtrl problem Pin
josip cagalj11-Sep-07 2:19
Memberjosip cagalj11-Sep-07 2:19 
AnswerRe: CListCtrl problem Pin
Mark Salsbery11-Sep-07 7:03
MemberMark Salsbery11-Sep-07 7:03 
GeneralRe: CListCtrl problem [modified] Pin
josip cagalj11-Sep-07 21:39
Memberjosip cagalj11-Sep-07 21:39 
GeneralRe: CListCtrl problem Pin
Mark Salsbery12-Sep-07 6:28
MemberMark Salsbery12-Sep-07 6:28 
AnswerRe: CListCtrl problem Pin
Nelek11-Sep-07 23:05
protectorNelek11-Sep-07 23:05 
QuestionUnable to connect to Named Pipe Pin
nagadravid11-Sep-07 1:44
Membernagadravid11-Sep-07 1:44 

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.