|
santiageitorx wrote: do you think it can give me some kind of problem using std::strings for byte array handling?
The class is named string , what do you think?
You might want to pick up a copy of Kent Becks book, Implementation Patterns.
led mike
|
|
|
|
|
led mike wrote: The class is named string, what do you think?
This [^], maybe.
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
[My articles]
|
|
|
|
|
santiageitorx wrote: std::string MyString = "\x00\x00\x01\x02";// "It won't copy anything into MyString but...
What if you used wstring instead?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I am making a program in MFC.The main frame take the charge of moniting,if the specified event occured,a short message will be sent.At the same time,I will moniting if there is a new short message had come,if it had,I will do someting with the message.So in the situation above,what should I prefer?The timer or the thread? I am a newer in MFC.Thanks!
|
|
|
|
|
Your description is a bit involved. Could you please elaborate and clarify?
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
[My articles]
|
|
|
|
|
For example the program is used for sending a mobile short message when a button is clicked,at the same time, the backstage is used for checking if there is a new short message had come every three minutes.I mean how I deal with the backstage.Set a timer or make a thread?
|
|
|
|
|
lingerpop wrote: the backstage is used for checking if there is a new short message had come every three minutes.
Since the background operation have to be done in every 3 minutes, timer is inevitable. Your real concern is - which one to use? "Simple mfc message timer" or "thread + timer" ? Well, my suggestion is, if your background operation is time consuming, go for Thread+Timer , or else simple WM_TIMER message will do, since it won't block the GUI.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Does anyone know of a wrapper to CProgressCtrl that accepts __int64 values?
|
|
|
|
|
Seeing how the progress control can only show progress one pixel at a time, and the win32 progress bar control already has a range of 0 to 65535 (a short) which is way more than could ever possibly be shown on a display screen, creating a wrapper to accept __int64 values would be fairly simple. Just a little bit of division to get the number into the proper range.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Can you make your range be between 0 and 100 percent?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Can Somebody Please tell me how to
Read and Write INI file ....
If possible send me some samples too
|
|
|
|
|
|
|
|
Also here [^].
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
[My articles]
|
|
|
|
|
Is it easier to create INI file in REGISTRY
then READ/WRITE TO it?
|
|
|
|
|
For your kind of application, the registry shouldn't be used.
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
[My articles]
|
|
|
|
|
Why cant i use registry????
can u tell me please....
im quite IGNORANT abt all these
|
|
|
|
|
Well, you actually can, but you definitely shouldn't.
The registry should be used for maintainig application settings (i.e. few data), not as application general data storage (i.e. big amount of data).
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
[My articles]
|
|
|
|
|
|
i need to find the BEST and EASIEST method to
CREATE/READ/WRITE INI file
|
|
|
|
|
Reading and writing to a INI file it is very simple.
You can easily make a 'test' INI file, using, for instance the notepad , and then write to (or read from) programmatically.
Check out one of the articles I linked in one of my previous replies to see (in the source files) some sample code.
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
[My articles]
|
|
|
|
|
Yes i did check all those links....
thanks..it was helpful...
but it all tells abt WIN32 CONSOLE Application...
whereas i need.... MFC Application
|
|
|
|
|
For the purpose of read/write to a INI file, the fact it is negligible.
BTW are you able to code a very simple MFC application?
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
[My articles]
|
|
|
|
|
Yes... i can...
Ive done MFC database programming too....
|
|
|
|