|
Perhaps BeakX could, too!
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
You can also use fstream.h
To get data from the file make an object of ifstream
and to write data to file, make an object of ofstream
then use these objects just like cout and cin in c++. These are very easy to use.
You can visit msdn.microsoft.com for the help on ifstream and ofstream.
Good Luck.
We Believe in Excellence
-- modified at 23:21 Monday 20th February, 2006
|
|
|
|
|
Thanks. I'll be sure and let BeakX know.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
BeakX wrote: But is there a proper and simple MFC method for doing file i/o ? (Sample code greatly appreciated =) )
I belive CStdioFile is one most stable File handlling class MFC have
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi there,
guys, I have an idea to work on some editor ( very simple one with some simple syntax adn color controls). Seems like some fun. Could some one point to some directions where I should start looking, some links or tutorials??
Regards,
|
|
|
|
|
Google for scintilla
~RaGE();
|
|
|
|
|
Thanks for the help. Good starting point
Regards
|
|
|
|
|
|
Thanks for your help,
Regards
|
|
|
|
|
How cain i convert Stream data Image to Image?
I get from Http a Stream data Image but when i will convert to image, always have trouble to Parameters. Anybody know how can i do this? Thanks..
Vander
|
|
|
|
|
Hello,
I have the need for a tab control that renders slighly different from the default control provided in the mfc library. I would like for it to display tabs on the left hand side, but with horizontal text. Additionally, I would like to have navigation buttons (up/down), and for each tab to have a close button. Finally, one must be able to add 'pages' dynamically. In short, I would like to have something like :
No navigation needed
___________________________________
| TAB 1 [x] | |
------------| |
| TAB 2 [x] | |
------------| DIALOG 1 |
| TAB 3 [x] | |
------------| |
| |
| |
|______________________|
Navigation needed
___________________________________
| UP BUTTON | |
------------| |
| TAB 4 [x] | |
------------| DIALOG 5 |
| TAB 5 [x] | |
------------| |
| TAB 6 [x] | |
------------| |
|DOWN_BUTTON|______________________|
I dont mind doing the coding myself, but to be honest, I dont know where to start as far as having it render in this manner. Any suggestions or sample code would be greatly appreciated.
Thanks,
-----------------
Genaro
|
|
|
|
|
|
Thanks for the response.
Unfortunately, this is not exactly what I am looking for. I would like to be able to use the control in a a formview, along with other controls. Particularly, I would like to have a CListCtrl such that when you click on an element, it adds a corresponding tab to the tab control (if one is not already there).
If you can think of any such controls, please let me know.
Thanks,
-----------------
Genaro
|
|
|
|
|
Thanks
modified 28-Sep-16 7:25am.
|
|
|
|
|
Oliver Shikaloski wrote: I think ShellExecute() can help,but I don't know how to implement it.
Just use the "print" verb.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
Hello..
Actually, am working with Serial port interfacing(MFC) in WIN32. Iam using some library which i found while browsing, actually i need to have the output data in Hex but it is in BYTES, so my problem is, how to convert the data which is in BYTES to Hex.
srija
|
|
|
|
|
by converting, you mean printing or storing ?
hexadecimal is only a representation issue. bytes are stored as bits and can be see as 2 hex characters, but this doesn't affect the handling...
what do you want exactly ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
Thank you for your kind reply!
Actually i need to store data as 02 00 01 00 31 15 12..., but how to write the data in Bytes?
Hope you got my problem.
|
|
|
|
|
|
Ya, i need it in a string!!!!
|
|
|
|
|
|
In C(++) use the standard formatting:
char szTarget[128]; // (or any size you need)
sprintf (szTarget,"%.2x %.2x %.2x.......", Byte1, Byte2, Byte3, ......);
or
CString strTarget;
strTarget.Format ("%.2x %.2x %.2x.......", Byte1, Byte2, Byte3, ......);
Success,
William
|
|
|
|
|
|
I am a little confused on what you are trying to do. I assume the data is binary and you want to send strings of hex codes instead? Like this
<br />
0A 2F 3C 2B FC
If so loop through the bytes and output them with string.Format("%02X",onebyte);
John
-- modified at 10:17 Monday 20th February, 2006
|
|
|
|
|
I'm trying to update the VCF calls to draw various themes elements to using the XP theme API's. In doing so I am having problems with two of the API's that *supposedly* return some sort of size information for a particular element. Namely GetThemeMetric and GetThemePartSize.
What I'd like to do is determine the height (or width for a vertial trackbar) of a horizontal trackbar for the little "inset" or "groove" that the thumb part slides over. And apparently this juct can't be done using GetThemeMetric/GetThemePartSize/GetThemeInt etc, as it consistenly returns an hresult error of "Element not found".
I need to determine this because there doesn't *appear* to be a way to draw this correctly without knowing the part size ahead of time, because if you just call DrawThemeBackground and pass in the rect for the control, it fills the whole rect for the slider track - it doesn't draw it the right size for you.
Has anyone else tried this? Is there some other way, other than just hardcodng a value of 2 to 3 pixels (since that's about what it is).
¡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!
|
|
|
|