Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reinterpret_cast question Pin
Maarten Kools14-Apr-04 10:15
professionalMaarten Kools14-Apr-04 10:15 
GeneralRe: reinterpret_cast question Pin
Gary R. Wheeler14-Apr-04 13:38
Gary R. Wheeler14-Apr-04 13:38 
GeneralRe: reinterpret_cast question Pin
Paul Ranson14-Apr-04 11:08
Paul Ranson14-Apr-04 11:08 
GeneralThanks for info Pin
ursus zeta14-Apr-04 12:39
ursus zeta14-Apr-04 12:39 
QuestionHow do I display image data? Pin
Member 15847214-Apr-04 9:22
Member 15847214-Apr-04 9:22 
AnswerRe: How do I display image data? Pin
Mike Dimmick14-Apr-04 9:30
Mike Dimmick14-Apr-04 9:30 
GeneralRe: How do I display image data? Pin
Member 15847214-Apr-04 11:17
Member 15847214-Apr-04 11:17 
GeneralDocument/View question Pin
stelitsisan14-Apr-04 8:46
stelitsisan14-Apr-04 8:46 
I have an SDI application.
This code in on the OnOpen document function.
for(i=0; i<numevents; i++)="" the="" numevents="" are="" midi="" events="" extracted
="" from="" document
="" {
="" event="pTrackList[0]-">GetEvent(i);
time = event->time;
status = event->status;
data1 = event->data1;
data2 = event->data2;
data3 = event->data3;
//temp = tempo(data1, data2, data3);

if(status == 144 && data2 > 0)
{
tempPoint = tempGrid->FindNote(data1);
tempPoint.y = -tempPoint.y;
tempPoint.x = cur_pos;
tempPoint.x = tempPoint.x * 720;
cur_pos++;
pView->AddNoteToptArray(tempPoint);
}
The Find Note function returns some coordinates. The AddNoteToptArray adds the tempPoint value to a CPoint array which is used to draw in the OnDraw Function. The problem is that the notes are drawn and then immediately cleared of the screen. Is that when the view is updated from the document..? Is the only way to make this work to use a document to hold all the data I need to draw the notes? Will it need to have virtual functions to draw them as well?I don't know much about document/view arctitecture so any kind of help could prove usefull!
GeneralLinker error only in release mode Pin
doctorpi14-Apr-04 8:38
doctorpi14-Apr-04 8:38 
GeneralRe: Linker error only in release mode Pin
doctorpi14-Apr-04 8:47
doctorpi14-Apr-04 8:47 
GeneralRe: Linker error only in release mode Pin
Mike Dimmick14-Apr-04 9:32
Mike Dimmick14-Apr-04 9:32 
GeneralDAO Debug and Release Pin
Rome Singh14-Apr-04 8:18
Rome Singh14-Apr-04 8:18 
GeneralDependency Walker Pin
pcdev14-Apr-04 8:04
pcdev14-Apr-04 8:04 
GeneralRe: Dependency Walker Pin
Mike Dimmick14-Apr-04 9:43
Mike Dimmick14-Apr-04 9:43 
GeneralHaving problems with this code need direction Pin
jss67200114-Apr-04 8:02
jss67200114-Apr-04 8:02 
GeneralArray of objects Pin
Anonymous14-Apr-04 7:49
Anonymous14-Apr-04 7:49 
GeneralRe: Array of objects Pin
John M. Drescher14-Apr-04 7:56
John M. Drescher14-Apr-04 7:56 
GeneralRe: Array of objects Pin
Anonymous14-Apr-04 8:08
Anonymous14-Apr-04 8:08 
GeneralRe: Array of objects Pin
John M. Drescher14-Apr-04 9:31
John M. Drescher14-Apr-04 9:31 
GeneralRe: Array of objects Pin
toxcct14-Apr-04 11:28
toxcct14-Apr-04 11:28 
GeneralRe: Array of objects Pin
John M. Drescher14-Apr-04 12:24
John M. Drescher14-Apr-04 12:24 
GeneralRe: Array of objects Pin
toxcct14-Apr-04 9:06
toxcct14-Apr-04 9:06 
GeneralRe: Array of objects Pin
Cedric Moonen14-Apr-04 21:48
Cedric Moonen14-Apr-04 21:48 
GeneralSerialize Class Data Pin
Qhristian14-Apr-04 6:56
Qhristian14-Apr-04 6:56 
GeneralOpening file in path of executable Pin
jgctr414-Apr-04 6:48
sussjgctr414-Apr-04 6:48 

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.