|
If I remember it right, a laaaawwng time ago, I read a similar solution to the same problem on a C++ book. I don't know, but I think it was that Bruce Eckel's book.
[Add] Confirmed that book. How amazing you remembered it right. Or, may be if you are working on plain C++, you must be doing it occasionally. [/ADD]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Sunday, April 6, 2008 4:33 AM
|
|
|
|
|
Rajesh R Subramanian wrote: I read a similar solution to the same problem on a C++ book
It's in a book ?? I'm proud I'm siltently becoming an author. Anyway my last project dealt with a lot of streams that at the end of the project I had to find F,S,T,R,E,A,M keys' imprints lost on my keyboard.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
VuNic wrote: It's in a book ?? I'm proud I'm siltently becoming an author.
Too fast cowboy. I meant to say that this kind of in and out streaming is typical to plain C++. You providing such a solution make you appear to be a plain C++ programmer.
I would have suggested something like CStdioFile, but the bloody plain C++ works well too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: plain C++
Real men.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
You mean __asm?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
00000001.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
0x00000005!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
sorry to know that you hate MFC, but I wanna know whether MFC can plot a 3D graph from 3 arrays or not. If not, would you please suggest some API or source code to achieve the requirements??
actually i wanna to plot many points in a 3d graph where the coordinates of 3 diferrent axes are stored at 3 different txt files.
Thank you for your code for solving my previous question!
cheers,
john
|
|
|
|
|
No programming question in Lounge.
*Dang!* Oops hehe ok ok. We are in the forum.
johndoelee wrote: MFC can plot a 3D graph from 3 arrays or not
You mean you want to visually mark voxels in a 3D space?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
No need to be so specific like voxels
I need a simple 3D line graph. The input will be the x y z coordinates from 3 different arrays.
Thank you!
Cheers,
John
|
|
|
|
|
No 3D, but Cedric Moonen's charting control[^] worked for me.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
How about This?[^]
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Thank you for your recommendation. I think it meets my requirements, but I cant implement it due to set-up problems. anyway, thank you very much!
Cheers,
John
|
|
|
|
|
Also, I need to mention you that my present project[^] is in plain C++. Loads of fun. No, really.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
You've taken up the red pill. Welcome to the dark world. I've spent enough time wrestling with plain C++. Some STL atleast? Nope. To be true our prototypes are almost built with plain C. They are kind enough to wrap them up in a class atleast. As you have mentioned in your thread, it's a s1,s2,s3,s4.. t1,t2,t3,var1*, var2**,var*** array1[], array2[]. all the way!.They look at "vectors" as a database! They feel it's complex operation to put something into a vector. Instead they simply use pointers. I felt dizzy at first but later managed to get along with them.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
VuNic wrote: I hate MFCs
I love it. I'll want you guys to sit in a row and write an ActiveX control from scratch in plain C++. I'll give you paper towels to wipe that sweat and blood while you do the dodgy thing.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: I love it.
The problem is yours.
(just kidding).
Rajesh R Subramanian wrote: I'll want you guys to sit in a row and write an ActiveX control from scratch in plain C++. I'll give you paper towels to wipe that sweat and blood while you do the dodgy thing
ATL , IMHO is much better for the above task. We can even write the ActiveX as you proposed: we've Jeff Glatt's wonderful article series on our side [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
Rajesh R Subramanian wrote: What are you doing answering C++ queries on a sunday, you addict.
Five for this.
Rajesh R Subramanian wrote: Now, I'll wait for this book:
Writing ActiveX components with nothing but the 8086 assembler - by CPallini.
Five.
Rajesh R Subramanian wrote: BTW, Jeff Glatt's series rocks.
Five.
Unfortunately I can vote your post only once.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Unfortunately I can vote your post only once.
So you can consider mine.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
OK. I'm considering...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Now, I must add a separate reply for every sentence I write to you. That way, I'll gain lotsa fives.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Well I have only a 5 to spend on your posts. Do you prefer a single five or five 1 s?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
1 x 5 != 5 x 1 @ CP.
So, I'll take a single five, I think.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
When you change the font of a combo box, how do you get the combo box to resize itself correctly, or what is the right way to do this manually? When I send a WM_SETFONT with a new font handle nothing happens.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|