|
Since WriteFile makes a binary copy of the passed memory bytes to the disk there is not trouble to write a UNICODE string (that is a set of unsigned shorts) with it, provided you pass also the correct string size in bytes. On the other hand, if you want to write a UNICODE text file, you need to mark the first two bytes (BOM) of the file correctly (see for instance [^]).
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
|
|
|
|
|
hi i am working in VC++ 6 using Win32 App. .............
tell me how to clear the listbox
AbidBhat
|
|
|
|
|
Send the LB_RESETCONTENT [^] message to the list box window.
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
|
|
|
|
|
Thanks:
can u tell me how to tranfer the selected item(text) from combobox to editbox....
AbidBhat
|
|
|
|
|
int iSel = SendMessage(hCombo, CB_GETCURSEL, 0,0);
if (iSel != -1)
{
SendMessage(hCombo, CB_GETLBTEXT, iSel, (LPARAM) buffer);
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM) buffer);
}
Where buffer is a (properly sized) TCHAR array.
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
|
|
|
|
|
Hey i am not getting ......
where should i add these lines ......i mean to say on which control's event
AbidBhat
|
|
|
|
|
Thanks Pallani i got it ......it is nice to help me ......thank u once again
AbidBhat
|
|
|
|
|
bhat wrote: Thanks Pallani i got it ......it is nice to help me ......thank u once again
Actually is Pallini, anyway... You're welcome.
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
|
|
|
|
|
I think you said where's George and now its on the previous thread.
|
|
|
|
|
Yes, he's back!
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
|
|
|
|
|
He's back with two questions.
|
|
|
|
|
Hello everyone,
I have debugged into STL implementation for allocator in file xmemory (Visual Studio 2008). I found it has not data members, the same as its base class _Allocator_base. Is that correct?
http://msdn2.microsoft.com/en-us/library/6s8wyf7c.aspx
My questions is what is the purpose of copy? It always returns true. Here is the code,
you can see do nothing for copy constructor as well.
allocator(const allocator<_Ty>&) _THROW0()
{
}
template<class _Ty,
class _Other> inline
bool operator==(const allocator<_Ty>&, const allocator<_Other>&) _THROW0()
{
return (true);
}
thanks in advance,
George
|
|
|
|
|
From whence comes your question(s)?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi DavidCrow,
Do you mean I have not made myself understood in the question? If yes, please feel free to let me know and I will rewrite my question to make it convenient in this forum.
Sorry, English is not my native language.
regards,
George
|
|
|
|
|
George_George wrote: Do you mean I have not made myself understood in the question?
No, that's not what I meant at all.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
What is your confusion, DavidCrow? I am learning allocator and have some concept level questions. Any ideas?
regards,
George
|
|
|
|
|
George_George wrote: Any ideas?
None whatsoever.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Simply adding ON_UPDATE_COMMAND_UI doesn't work.
Thanks.
|
|
|
|
|
I just go through the menu items using GetSubMenu()/EnableMenuItem() to enable or disable
items before calling TrackPopupMenu().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I want to enforce the OS, not to suspend a special thread during execution a set of operations, in a ,multithread program in c++.(all of my threads has the Realtime priority)
OS: WinXP
IDE: VS 2005
|
|
|
|
|
I'm not sure I understand your question very well. What you would like to do is in fact that when you process a certain set of operations, disable thread switching (so that no other thread is processed until you have finished to process your set of operations). Is that what you want to do ?
If yes, then I'm almost certain you can't do that. But there are other mean to achieve a similar result: if the only thing you want to do is to avoid that two threads of your program access the same 'resource' (whatever it might be) at the same time, then you can simply use a critical section to protect the access of said resource.
|
|
|
|
|
Actually i am working on my program performance.
I want to know how much does it take to execute a set of operations in a thread,
when 6 threads are running the same set of operations.
I hace a timer for each thread, which starts at the beginning of these operations and
stops at the end of these operations.
but because of time slicing the timer value does not show the time executed by the same thread.
|
|
|
|
|
You would need to add functionality to the operating system scheduler to accomplish this and since Microsoft operating systems are closed source, it is doubtful at best that you would be able to see and modify the source for your intended purpose.
What is the reason that the thread operations are critical? Is it that they need to be executed in order? Do they need to be executed one right after another? If yes is the answer to either of the last two questions, then critical sections is the answer your looking for.
Phil
|
|
|
|
|
Hi,
I wanted to interface an *.htm to my VC++ MFC program but I don't know how. Do I need a container for it?
Is it possible to place in a CView?
How will i implement it?
If you knew of a thread, please let me know.
Hope somebody can help me with this.
Thank you.
|
|
|
|
|
To display HTML documents?
Maxwell Chen
|
|
|
|