|
Using Worker Threads[^]
From the following article seems like I can only Post/SendMessage from a Worker thread
only to the MainWindow CMainFrame not to a CDialog
|
|
|
|
|
Not true, I use PostMessage() to a CDialog based window all the time.
Note that SendMessage() cannot be used to send messages to controls that were *not* created by the thread sending the message. See my answer to This Question[^]
|
|
|
|
|
// What Causes a CInvalid Arg Exceptions ??
An invalid dialog's handle, for example
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|
|
Movies to Galaxy Tab 2-Play movies on Galaxy Tab 2 at Galaxy Tab 2 Column
Hot News! Click [b][url=http://www.pavtube.com/special-offer.html]Pavtube Special Offer - 25% Bundle Discount[/url][/b] page, you can get:
[b][url=http://www.pavtube.com/special-offer.html]25% OFF ByteCopy($ 42) + Blu- ray Video Converter Ultimate($ 65) = $80[/url][/b]
[b][url=http://www.pavtube.com/special-offer.html]25% OFF ChewTune($ 29) + Blu- ray Video Converter Ultimate($ 65) = $75[/url][/b]
[b][url=http://www.pavtube.com/special-offer.html]25% OFF ByteCopy($ 42) + Blu-ray Ripper($ 49) = $68[/url][/b]
......
[url=http://www.pavtube.com/special-offer.html][img]http://mts-to-aic-converter.com/wp-content/uploads/2012/07/pavtube-special-offer-bundle-discount.jpg[/img][/url]
Recently, Samsung released [b][url=http://www.foxreal.com/galaxy-tab.html]Galaxy Tab 2[/url][/b], it contains the 10.1 inch and 7.0 inch version. Both two are equipped with latest Android 4.0 OS, the greatest highlight of them is the update of display, no matter image, text, or videos, you will get unprecedented ultra-clear experience.
With the development of film industry, more and more movies shown to us in different forms. Such as Blu-ray, DVD, Digital Copy and more. The most common is Blu-ray or DVD discs, we often watch these disc movies at home via a hardware media player. Meanwhile, many movie files are called as digital copy movies. Like iTunes movies, amazon instant video, Blu-ray/DVD digital copies and movie files purchased from other online stores.
Today, this article is mainly talking about how to [b][url=http://www.foxreal.com/play-any-videos-on-galaxy-tab-2-7.0/]play multiple videos on Galaxy Tab 2[/url][/b]. At the same time, i also will show you the easiest way to get the best video quality on Galaxy Tab 2 10.1 or 7.0.
[img]http://www.foxreal.com/article-images/movies-for-galaxy-tab-2.jpg[/img]
At first, you should know, a video file contains many video parameters, like bitrate, frame rate, sample rate, resolution, video codec and more. Different video parameters will produce different video quality. By testing for many times, [b]Pavtube Studio[/b] designed the presets for Galaxy Tab 2. Which will give you the best video quality on no matter Galaxy Tab 2 10.1 or Galaxy Tab 2 7.0.
[b]For DVDs[/b], you should use Pavtube DVD Ripper as the [b][url=http://www.foxreal.com/convert-dvd-movies-for-galaxy-tab-2-10.1/]DVD to Galaxy Tab 2 converter[/url][/b] to rip and convert DVD movies for Galaxy Tab 2. If you have DVD ISO or IFO image files, you can also import it into this tool for handling.
[b]For Blu-ray movies[/b], just use Pavtube Blu-ray Ripper, the best[b] [url=http://www.pavtube.com/guide/put-play-1080p-bluray-on-galaxy-tab-2-101.html]Blu-ray to Galaxy Tab 2 converter[/url][/b] to convert Blu-ray videos for Galaxy Tab 2. It could deal with Blu-ray disc, Blu-ray ISO, DVD disc, DVD ISO or IFO files. As you see, this tool can help you handling both Blu-ray and DVD movies, but it's more expensive. If you have many Blu-ray and DVD discs, it's a good choice.
Want to [b]play iTunes, digital copy movies on Galaxy Tab 2[/b]. [b]Pavtube ChewTune[/b] could help you. Which is a professional [b][url=http://www.foxreal.com/transfer-itunes-movies-to-galaxy-tab-2-10.1/]DRM video converter[/url][/b]. With it, you can easily convert digital copy movies to Galaxy Tab 2 with few clicks.
Maybe now you have know the solution for common HD videos, yes, just with [b][url=http://www.foxreal.com/video-converter/]Galaxy Tab 2 video converter[/url][/b]. It supports a wide range of video formats, such as TiVo, VP6, MXF, VRO, MTS, M2TS, AVI, WMV, MKV, FLV, VOB, MVI, EVO, MOV, MPG, TOD and more.
Though they are different tools, the approximate operation of them is very similar. As follows:
Step 1. Run the [b][url=http://www.foxreal.com/video-converter/]Movies to Galaxy Tab 2 converter[/url][/b] tool ( according to your need, choose the right one). Import the video file you want to convert.
Step 2. Choose the presets for Galaxy Tab 2 10.1 or 7.0. As follows:
[b]For Galaxy Tab 2 10.1 users[/b], just Click on "Format" box, you will easily find the "Samsung Galaxy Tab 10.1 (*.mp4) ", under "Samsung" category. As follows
[img]http://www.foxreal.com/article-images/galaxy-tab-10.1-profile.png[/img]
By click on "Settings", you can see the full information of this profile:
[img]http://www.foxreal.com/article-images/Galaxy-tab-10.1-profile-settings.png[/img]
[b]For Galaxy Tab 2 7.0 users[/b], please choose " [b]Samsung Galaxy Tab H.264 ( *.mp4)[/b] ". By clicking " Settings" to get the details of this profile.
[img]http://www.foxreal.com/article-images/galaxy-tab-7.0-profile-settings.png[/img]
If you want to get higher video quality, you may adjust size, bitrate, frame rate etc to get what you want.
Step 3. Run the conversion.
When the conversion is done, you can transfer the video file to your Galaxy Tab 2 via USB cable. Then, Enjoy [b][url=http://www.foxreal.com/galaxy-tab.html]watching movies on Galaxy Tab 2[/url][/b].
Tip:
[b][url=http://www.pavtube.com/blu-ray-video-converter-ultimate/]Pavtube Blu-Ray Video Converter Ultimate[/url][/b] integrates a best bluray ripper, a DVD ripper,and a video converter together for you to rip Blu-ray discs, standard DVDs and convert almost all kinds of videos to universal video and audio file types with super fast conversion speed and excellent image and sound quality. It provides numerous optimized formats for a wide range of devices and programs, including Apple TV/Apple TV 2/[b][url=http://www.pavtube.com/apple-tv-3.html]Apple TV 3[/url][/b], Xbox 360, PS3, NAS , Home Theatre devices, WD TV, Popcorn Hour, PSP, [b][url=http://www.foxreal.com/convert-blu-ray-movies-for-google-nexus-7-playing/]Google Nexus 7[/url][/b], iPad/iPad 2/the [b][url=http://www.pavtube.com/guide/blu-ray-to-ipad-3-converter-for-mac.html]new iPad 3[/url][/b], [b][url=http://www.foxreal.com/galaxy-tab.html]Galaxy Tab 2[/url][/b], Xoom, [b][url=http://www.foxreal.com/galaxy-s2/]Galaxy S3[/url][/b], Toshiba Thrive, Transformer Prime, Motorola Droid (X), [b][url=http://www.pavtube.com/put-movies-to-ps-vita.html]Sony PS Vita[/url][/b], etc., so you can enjoy or edit your favorite Blu-ray movies, DVDs and SD/HD videos at will.
|
|
|
|
|
I have createed a dialog template resource, in the dialog editor I set the
WS_POPU P property.
It's fine to generate the modal dialog with the template resource.
Here is my problem: I want to change it's style from
WS_POPUP to
WS_CHILD since I want to generate the dialog in the property page(CPropertySheet).
I have tried many ways. Change the dialog in
OnInitDialog ,
OnCreate ,
PreCreateWindow ,
PreSubclassWindow with
ModifyStyle or
SetWindowLong doesn't work.
Now I wonder whether it's possible to generate the dialog with the same resource and modify the style.
Besides, the method list in Modifying a modal dialog's style and position at run time[^] doesn't work either.
Any help will be appreciate!
|
|
|
|
|
The article you linked to changes the style from WS_CHILD to WS_POPUP. It also suggests that it can not happen the other way around, that is from WS_POPUP to WS_CHILD. Are you sure you're making the same style change?
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Hi!
Can any one tell me how to solve this error?
C1900: Il mismatch between 'P1' version '20060201' and 'P2' version '20050411'
|
|
|
|
|
Which VS version you are using? Did you recently updated the VS ? If so, repairing the installation might work for you.
When I googled for more details, I found this[^].
|
|
|
|
|
Hi!
Installing the SP1 for Visual Studio 2005 fixed this error. Thank you.
|
|
|
|
|
|
I have a similar question, the one that somebody ask me recently : If I have a simple class, with only one method
class Foo
{
public:
Foo();
virtual ~Foo();
void DoSomething();
};
what generate the compiler ? Code for constructor, destructor and method DoSomething() only ? Don't generate a default copy constructor and assigning operator, even is doesn't explicity implemented ?
modified 26-Jul-12 7:22am.
|
|
|
|
|
|
Thank you for your answer.
|
|
|
|
|
Why don't you try to actually compile such code?
For instance you may discover the missed the return value type in DoSomething declaration.
Veni, vidi, vici.
|
|
|
|
|
|
You are perfectly right !
|
|
|
|
|
Hi all,
Is there any particular reason you would initialise private members of a class like this...
<br />
SomeClass::Constructor(void): privateVar1(NULL), privateVar2(true) {<br />
<br />
}<br />
As opposed to this?
<br />
SomeClass::Constructor(void) {<br />
privateVar1 = NULL;<br />
privateVar2 = true;<br />
}<br />
From what I understand the first instance would be useful when inheritance is involved.. Perhaps this is just a favored style?
Cheers,
Mark
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
Const and reference members can only be initialized in an intializer list. Moreover if we don't initialize the variables in the initializers list the compiler will have to do it for us and later on in the constructor this will be initialized again. Hence, there would be two calls for variable initialization
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
_AnsHUMAN_ wrote: Moreover if we don't initialize the variables in the initializers list the compiler will have to do it for us and later on in the constructor this will be initialized again.
I doubt that.
The easiest way for a compiler to provide default values is to do the following
- Request memory block for the object
- Overwrite the entire block with zeros.
- Continue the construction process.
Providing code to set the default value for each member is thus not required.
Any other initialization, beyond the default value, would occur regardless.
|
|
|
|
|
In standard C++, member without default constructor are not initialized to 0 automatically but are random.
Philippe Mori
|
|
|
|
|
Philippe Mori wrote: In standard C++, member without default constructor are not initialized to 0 automatically but are random.
Wrong.
Section 4.9.5 C++ specification clearly states that class member variables have a default value if they do not have an initializer.
class Any
{
....
int var1 = 2;
int var2;
}
Local variables (those declared in a method) have not such default value.
|
|
|
|
|
|
Philippe Mori wrote: As far as I can tell, you have misunderstood the standard.
Yep, you are correct.
|
|
|
|
|
Some compilers initialize memory to zero. But for compatibility reasons, the C++ standard leaves (built-in type) members untouched (I don't know the latest one). Of course, if your members have default constructors, they will be called (before the constructor body) unless you place them in the initializer list.
|
|
|
|
|
w-peuker wrote: Some compilers initialize memory to zero. But for compatibility reasons, the C++ standard leaves (built-in type) members untouched (I don't know the latest one).
Wrong. The only compilers that leave data members non-initialized would be compilers that are not implementing the ANSI C++ specification.
Section 4.9.5 C++ specification clearly states that class member variables have a default value if they do not have an initializer.
class Any
{
....
int var1 = 2;
int var2;
}
<pre>
This happens regardless of how construction occurs.
|
|
|
|
|