|
hi
if i remove the #include, no errors are appeared.
Can you try to text the project following the cuid
http://msdn.microsoft.com/workshop/browser/filter/howto/implementingproceduralsurfaces.asp?frame=true
|
|
|
|
|
jackalwisdom wrote:
if i remove the #include, no errors are appeared.
Ok, so if you do not need it, why include it?
jackalwisdom wrote:
Can you try to text the project following the cuid
I would, but not having the DirectX SDK installed makes it somewhat difficult!
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
According to the KB (PSS ID Number: 243298):
CAUSE
The problem occurs because the function InlineIsEqualGUID() is defined both in the ATL header file, AtlBase.h, and the Platform SDK header file, Guiddef.h, in different name spaces. The include paths for the build point first to the Platform SDK include directory, and then to the ATL include directory. In the ATL header, InlineIsEqualGUID() is defined in a name space called "ATL", while in the Platform SDK header it is defined in the global name space. Because AtlBase.h includes the statement
using namespace ATL;
the compiler is unable to distinguish which definition to use.
RESOLUTION
To work around this problem, prefix the call to the InlineIsEqualGUID() function with ::ATL::. This explicitly qualifies the ATL namespace from where the implementation of InlineIsEqualGUID is pulled in. For example:
::ATL::InlineIsEqualGUID()
Ian Darling
"The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
|
|
|
|
|
hi,
thanks for your reply. But i included these head file in internet explorer head files, dxatlpb.h, without any my codes. How to solve the problem.
|
|
|
|
|
Hello
I have been doing a lot of reading lately on how to play a video from C++ using different methods such DX9 VRM and DirectShow.
I am trying to play a video and read the time from it. However I cannot see anyway in which I can do this. I was wandering if any of you coule maybe help. I cant find any samples or anything in MSDN for some that I would thought would maybe be straight forward.
At the current moment I am just using shell extensions to load the video from C++ but this doesnt allow the time to be read.
Thankyou kindly for any help
Riy
|
|
|
|
|
I'm trying to capture the ENTER key on a CEdit Control with the OnKeyDown() function, but it seems that it is not capturing the ENTER key. All the other keys are being captured as it should. i'm using my own edit control, derived from CEdit class.
Any tip ?
Thanks.
|
|
|
|
|
You can catch the ENTER key in your own edit control class in PreTranslateMessage:
BOOL MyClass::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
{
DoAnything();
or
// pMsg->wParam=0;
}
return CDialog::PreTranslateMessage(pMsg);
}
Student
|
|
|
|
|
Are you using the ES_WANTRETURN style?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hello!
I have written an object to CArchive . My object consists of a CString and an integer. I gave up using the CArchive::WriteString() and CArchive::ReadString() functions as it seems CArchive can only handle simple types. So I write my object like this:
nLength = myStr.GetLength();
(*pArchive) << nLength;
pArchive->Write(myStr.GetBuffer(nLength), nLength);
To read back my object is not as easy as I think it should be:
CString tmpStr, myStr;
(*pArchive) >> nLength;
tmpStr.Empty();
pArchive->Read(tmpStr.GetBuffer(nLength), nLength);
myStr.Format("%s", tmpStr);
tmpStr.ReleaseBuffer();
Can anyone suggest an easier way? Thank you
|
|
|
|
|
Because CArchive knows how to stream to/from a CString , you can just use the >> and << operators.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thank you Ravi.
I thought this was how CArchive would work at first too but I had problems and I now think my code was wrong elsewhere because now I fixed other problems as well and I tried what you suggested again and it works OK now.
I also had tried the WriteString() and ReadString() functions but I had problems with them also.
|
|
|
|
|
Glad you're up and running! Check out this[^] article if you'd like to know more about serialization.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I am looking for a tool to aid our development and QA team find memory leaks. Right now we use Perfmon to monitor Private Bytes of application but we are ready to invest in a more advanced tool. Can anyone suggest some tools for me to research?
Environment is VC6 on W2k and higher. Applications range from services to GUI apps. We use STL, MFC and other 3rd Party libraries.
Thanks!
|
|
|
|
|
Commerical?
Check this out: Compuware Boundschecker
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
to find memory leaks is the easiest possible thing.
just create own new/delete, malloc/free, ... functions and add an item to a list when something is allocated and delete the item when there is a free call. so when the app will be closed, you can dump all the remaining items(leaks).
Don't try it, just do it!
|
|
|
|
|
http://support.microsoft.com/?kbid=128731
I need to save registry key into file. How do i do that.
|
|
|
|
|
Anonymous wrote:
I need to save registry key into file. How do i do that.
Exactly how the article prescribes. Have you tried it?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hi,
I need help again
I have one dialog which I will call InvoiceDlg. On this dialog I have some controls. Lets say I have a static control called IDC_INVOICENUMBER. I have a button, IDC_TENDER, and when this button is pressed it will open another dlg called TenderDlg. I want to be able to get the data from InvoiceDlg into TenderDlg. I've tried alot of things such as:
void CInvoice::OnTender() <br />
{<br />
<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENUMBER,invoicenumber);<br />
CTender dlg;<br />
dlg.DoModal();<br />
dlg.m_invoiceme.SetWindowText(invoicenumber);<br />
}
and;
void CInvoice::OnTender() <br />
{<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENO,invoicenumber);<br />
CTender dlg;<br />
<br />
dlg.DoModal();<br />
dlg.SetDlgItemText(IDC_INVOICE, _T(invoicenumber));<br />
<br />
<br />
}
Both these compile with no dramas, however when I try them in the app; they dont do anything, its like they aren't even passing on the data through CTender dlg;
Can someone please help me?! Im tired, I want to goto bed
lol
Thanks
Ashman
|
|
|
|
|
Ashman wrote:
dlg.DoModal();
dlg.SetDlgItemText(IDC_INVOICE, _T(invoicenumber));
The call to dlg.DoModal will show the dialog and therefore any further code in your function won't be executed until the dialog is closed.
You'll need to pass the CString into your class before DoModal and then inside the WM_INITDIALOG handler, set the window text of the control.
e.g
<br />
void CInvoice::OnTender() <br />
{<br />
CString invoicenumber;<br />
GetDlgItemText(IDC_INVOICENO,invoicenumber);<br />
CTender dlg;<br />
<br />
dlg.m_strInvoiceNo = invoiceNumber;<br />
<br />
dlg.DoModal();<br />
<br />
<br />
}<br />
<br />
BOOL CTender::OnInitDialog()<br />
{<br />
CDialog::OnInitDialog();<br />
<br />
m_invoiceme.SetWindowText(m_strInvoiceNo);<br />
<br />
}<br />
<br />
<br />
<br />
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Hello everybody !!
i am newbie for mfc programming can any body of u explain me how to Create multiple view (i mean different type of view such as listview , scroll view for a single document )
thanks in advance..
|
|
|
|
|
|
Hi,
I´m having problems by getting the current selected (current deleted) Item in Outlook.
For example:
When I am deleting an Contact in Outlook my programm catch this event and should get the current selected item but instead
of giving me the index 6 (for exampl.) it gives me the index 5 because outlook sets the selection to highest index shortly after someone is deleting ...
Whats wrong ?
I need badly help, cause I´m working in time-critical project ...
Thanks a lot, JohnX
|
|
|
|
|
The Problem is, that I am building a dynamicly EventHandler who gives me the events from user defined Folders.
(for example a Subfolder under Contacts)
As long as I only programm Events to the TopLevelFolder - everything works;
but when I programm Events to an user defiend folder the GetSelection() returns not what I really have selected.
Can someone help me ?
|
|
|
|
|
I am trying for a long time and seeing the documentation of how can I put a scroll bar in a window create by the MCIWndCreate function that actually can scroll the video inside, can some one help me ?
|
|
|
|
|