|
SilentSilent wrote: The assignment operator destroys an existing object
false in the sense that it doesn't call the object's destructor, but true in the sense that it modifies the object integrity
|
|
|
|
|
Any constructor, including a copy constructor, builds the object from uninitialized memory. Once the object is "built" all the class's invariants have been established.
An assignment operator sets the state of the object but the class invariants have already been established by a constructor.
Steve
|
|
|
|
|
You might what to implement the copy construtor or assignment operator to do a deep copy instead of shallow copy and also if you want to do any specific thing while doing the copy.
-Prakash
|
|
|
|
|
Hi all,
sorry for posting this question here, but I know that VC++ developers are the best.
Does Windows Media Player Mobile supports audio plug-ins? I want to develop an equalizer and I wonder if there is a support for this.
Plz also, I wonder if I can email microsoft for programming questions, is there an email for microsoft to give such support??
Regards
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: Does Windows Media Player Mobile supports audio plug-ins? I want to develop an equalizer and I wonder if there is a support for this.
yes they do! you have to visit MSDN.microsoft.com and search MEDIA player!
Mohammad A Gdeisat wrote: Plz also, I wonder if I can email microsoft for programming questions, is there an email for microsoft to give such support??
for that you have to own the MSDN library, they are equiped with 5 support instance
"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
Support CRY- Child Relief and You
|
|
|
|
|
Thanks for your reply,
I was taking a tour in media player sdk, and I read the following about windows media player mobile:
ThatsAlok wrote:
Windows Media Player 10 Mobile uses the same UI plug-in model as the desktop Windows Media Player. However, Windows Media Player 10 Mobile can only interact with background UI plug-ins. Because of the similar plug-in models, the same API calls that apply to background UI plug-ins on the desktop also apply to background UI plug-ins on a Windows Mobile device.
In the sdk, microsoft divided plug-ins into four classes:
1. Custom visualizations
2. User interface plugins.
3. DSP plug-ins
4. Rendering plug-ins.
so, can I conclude that WMP mobile does not support dsp plug-ins?? in other words, does this mean I cant develop an equalizer for Pocket WMP??
Thank you
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: the sdk, microsoft divided plug-ins into four classes:
Mohammad A Gdeisat wrote: n the sdk, microsoft divided plug-ins into four classes:
1. Custom visualizations
2. User interface plugins.
3. DSP plug-ins
4. Rendering plug-ins
Mohammad A Gdeisat wrote: o, can I conclude that WMP mobile does not support dsp plug-ins??
isn't above two statement are contradictory!
"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
Support CRY- Child Relief and You
|
|
|
|
|
sorry, but what I mean here is that the desktop version of Windows Media Player supports the above four plugin classes, however, a subset of this support is included in the Mobile (PDA) version of media player which is the user interface plug-ins.. please re-read the SDK quote and tell me what you think...
Thanks alot for your time
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Mohammad A Gdeisat wrote: please re-read the SDK quote and tell me what you think...
could you point me exact SDK link!
"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
Support CRY- Child Relief and You
|
|
|
|
|
|
|
You Spammer!!!
read the posting guidelines first
|
|
|
|
|
Thanks for your forum,but this forum is for questions
|
|
|
|
|
bang bang...
you know what ? your post is simply useless... codeproject is the best programming forum/resource over the web
go die with your spam, looser.
|
|
|
|
|
toxcct wrote: codeproject is the best programming forum/resource over the web
I agree,everyday better yesterday. (Search comments )
|
|
|
|
|
manosza wrote: Here is the link: Forum
Manos.
now you will suffer CodeProject Death! for advertising other forum in programming forum!
"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
Support CRY- Child Relief and You
|
|
|
|
|
hi
I am using VC++6 and MSXML6.0 and manipulating with DOM,
the problem is
I created a root node say <root> and gave a default namespace using either
setAttribute("xmlns","http://..") or createNode(1,"xmlns","http://..");
and when i saved the xml it was found the every child node or tag had the attribute "xmlns" like this
<root xmlns="http://..">
<child1 xmlns=""/>
<child2 xmlns=""/>
</root>
y is it so and also how to avoid this
thanks in advance
|
|
|
|
|
state the code for creation of child node
"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
Support CRY- Child Relief and You
|
|
|
|
|
here is the code for setting child
pe=m_XML->createElement("Header");
if(pe!=NULL)
{
pa=m_XML->createAttribute("a1");
if(pa!=NULL)
{
pa->value=Convert("val1");
pe1->setAttributeNode(pa);
}
pa=m_sclXML->createAttribute("a2");
if(pa!=NULL)
{
pa->value=Convert("val2");
pe1->setAttributeNode(pa);
}
m_XML->documentElement->appendChild(pe);
pe.Release();
}
were pe is IXMLDOMElementPtr,pa is IXMDOMAttributePtr
|
|
|
|
|
Hi
I create a dialog and use the CUniButton from the website to create button on the dialog. The size of dialog is 640x480. Now I use SHLoadImageFile to load a 640x480 bitmap and load the HBITMAP return from SHLoadImageFile into SetBkgndHandle function. If I make the button edge transparent, the button background bitmap will replace the edge and math the bitmap in the dialog.
But if the bitmap is bigger than 640x480, it will cause the mismatch between the button background bitmap and the bitmap in the dialog.
I wnat to compress the bitmap, but if I use StretchBlt and get a new HDC, it's unhelpful for the question.
What method could solve the question??
Any suggestion is useful!! Thanks!!
|
|
|
|
|
Now what do you need?did you see GDI+
|
|
|
|
|
Hi,
I have used SetFocus() method many times in a file in my application.The application works fine but when I run my application and move the cursor to open another application(not necessarily a vc++ application) , the application crashes.Is the crash because of the SetFocus()...If so what is the solution.
Thanks in advance.
Sandhya
|
|
|
|
|
use killFocus()as many no of times as SetFocus()
never say die
|
|
|
|
|
can you show the code, how you have used setfocus.
|
|
|
|
|
Actually I am using the PropertySheets.In one of the propertyPage I have some edit controls.For each edit control there is some validation.I have handled these validations in the respective editcontrol's EN_KILLFOCUS event.
For one of the edit boxes the code is as follows:
void CMyFile::OnKillfocusEditRange()
{
CWnd *cwnd=GetFocus();
if(cwnd->GetDlgCtrlID() == IDCANCEL)
return;
else
CheckRanges(IDC_EDIT_RANGE);
}
void CMyFile::CheckRanges(int intID)
{
CString str;
double d1;
GetDlgItemText(intID,str);
d1=_tcstod(str,NULL);
if(d1 > 5 || d1< -5)
{
AfxMessageBox(_T("Range should be in 5 and -5");
pEdit = (CEdit *)GetDlgItem(intID);
pEdit->SetFocus();
}
}
I am doing the same checking even in the OnApply() .(After setfocus I return FALSE otherwise I return "return CPropertyPage::OnApply(); "
After running the application and when the message "Range should be in 5 and -5" is raised ,after clicking the Ok button of the AfxMessageBox ,if I move the cursor to open some other application there is a crash as "the memory cannot be read"
Sandhya
|
|
|
|