|
Hi!
When I build my project, I got the following linker error:
error LNK2019: unresolved external symbol _D3DXMatrixTransformation@28 referenced in function "protected: void __thiscall CEGUI::Direct3D9GeometryBuffer::updateMatrix(void)const " (?updateMatrix@Direct3D9GeometryBuffer@CEGUI@@IBEXXZ) CEGUIDirect3D9GeometryBuffer.obj
How do I resolve this error?
|
|
|
|
|
It looks like there is a library directive missing form your linker process. Add a reference to the library that contains the D3DXMatrixTransformation function.
It's time for a new signature.
|
|
|
|
|
It means that you haven't linked with anything that contains the implementation of D3DMatrixTransformation. This either means that:
- You're not linking with a dependent library
- You haven't implemented a function that you should
If you wrote the class CEGUI::Direct3D9GeometryBuffer then it's probably the second. If it's someone else's class have a gawp through their documentation and find out what the dependencies are for that library and link it.
Cheers,
Ash
|
|
|
|
|
Hi everyone,
I want to do integration in MFC coding.
Is there any formulas for doing this one.
Actually i want to do the Ramp,Sin waves of formulas
for simulation of signals
Ramp wave required integration.
how to do integration in programming.
Any library or header files which will do integration.
|
|
|
|
|
Do you want to do the integration in real-time ? Is an approximation ok for you ?
There's an easy and quick way to make an integration, but it is an approximation (and the error margin depends on your sample rate and signal variation). If you remember that an integration of a signal is the calculation of the area under the curve of the signal, you can reach a good approximation by using an "average" method.
When you have two consecutive points of your signal, you will approximate the surface under those points by taking the average Y value and calculate the surface of the rectangle made by this Y and the X difference between the two points.
This looks like:
double dSurface = (Y2 + Y1)/2 * (X2 - X1);
You then need to add all these surface together to get an approximation of the total surface under the curve.
|
|
|
|
|
|
It's discrete data. Calculating the integral is really simple. If you can write a loop and use addition you will be fine.
|
|
|
|
|
hi,
im doing conversion of cstrings to std string.
In cstring mid function is available.
But i cant find the equalent function in std string...
can any one help me?
Thanx.
|
|
|
|
|
You can simulate CString::Mid by using substr[^]. Also have a look at this[^] excellent class.
|
|
|
|
|
Hello all,
im using TeeChart Pro AX v6 of Steema Software SL.
i was wondering how, if at all, can i paint a strip line in a chart insted of a regular line.
thank's
code example for regular line that works in my project:
chart->Series(Series).GetAsLine().SetStairs(true);
chart->Series (Series).GetAsLine().SetInvertedStairs(true);
|
|
|
|
|
Hi All
I have problem to read file.I used CStdioFile.FIle like this
Abc
Xyz
Zsd
Code goes to infinite loop.
if(fileread.Open("C:\\Test.txt",CFile::modeRead | CFile::modeNoTruncate))
{
CString readstring="";
fileread.Seek(0,CFile::begin);
while(fileread.end)
{
fileread.ReadString(readstring.Trim());
}
fileread.Close();
}
Or this code only read first line.Rest line skip.
if(fileread.Open("C:\\Test.txt",CFile::modeRead | CFile::modeNoTruncate))
{
CString readstring="";
fileread.Seek(0,CFile::begin);
while(fileread.end)
{
fileread.ReadString(readstring.Trim());
if(readstring.IsEmpty())
{
break;
}
else
{
}
}
fileread.Close();
}
Can any one give me tips for solve the problem.
Thanks in advance
|
|
|
|
|
Try this -
while (fileread.ReadString(readstring))
|
|
|
|
|
|
You beat me to it.
I must refresh my browser more often.
|
|
|
|
|
You should test for the end of the file using the result from ReadString method of CStdioFile . ReadString returns a NULL pointer when the end of file has been reached. See here[^] for additional details.
A little change for your code:
if(fileread.Open("C:\\Test.txt", CFile::modeRead | CFile::modeNoTruncate))
{
CString readstring="";
fileread.Seek(0,CFile::begin);
while(fileread.ReadString(readstring))
{
}
fileread.Close();
}
|
|
|
|
|
Happens to the best of us.
|
|
|
|
|
Hi,
I have an application developed using wxWidgets(C++ based) with Visual C++ 2008 standard edition. The application runs fine without any problem. But when it comes to closing of an application, it throws and exception message stating
An unhandled win32 exception has occurred in myapp.exe [892]
the number in [] keeps on changing every time.
How do i come out of this exception.? Or can anyone one tell me what leads to such exception??
Thanks in advance
|
|
|
|
|
It could be a lot of things. I suggest you use your debugger to track down the problem, that's one of the best way to retrieve more information about the error.
|
|
|
|
|
The number you see is the process identifier. This is likely to be a new number every time your application is running.
|
|
|
|
|
Did you try to debug the cause after you try to close the window?
If not, it would be a good idea to do that. Alternatively you can take a minidump of the application and use a tool like windbg to analyze the crash.
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
The most common cause I've seen of an exception when you close an application is that someone's been way too clever and generously used pointers mixed with a soupcon of manual memory management. The most common results have been:
- damaging the heap by overwriting something you shouldn't
- double deletion of an object
- using a deleted object
The best way of avoiding this sort of problem is to not have it in the first place. Don't play with pointers and manual memory management unless you really have to. If you do make sure you use all the facilities of the language and runtime library to help you.
Anyway, that's advice for next time... in the meantime have a look at the documentation for structured exception handling (SEH) and how to convert win32 structured exceptions into C++ exceptions. That might help you work out what's happening by decoding what the win32 exception is in the first place.
Another thing you could do is start building earlier versions of the code until you find one that the problem didn't happen in and start working forwards again until you find the first version that caused the problem. The diffs between the versions might give you an idea of what's happening that caused the error.
Cheers,
Ash
|
|
|
|
|
Hi all, i want to play Media player in application im using VC++ 2005,i have added Windows Media Player via COM, and added buttons play stop and pause.
In VC++ 6 there is options like
m_player.SetUrl ("c:\\abc.wmv");
m_player.GetControls().play();
But in VC++ 2005 I am not Getting those options? plz help me.
I wanted to play the WMP in Windows CE?
So please Help me. I have no Idea how to play a Vedio files?
Thanks in advance.
|
|
|
|
|
if you are using .NET framework, please post it in Managed C++/CLI forums
|
|
|
|
|
I too am looking to do the same thing in an existing large Visual Studio 2005 MFC C++ Application.
- Have added the Windows Media Player Control but can't seem to find the way at runtime to add a URL to point to a local file or point to an http:// Address.
So some details would be helpful for the person that originally asked the question and those that are looking for similar answers.
In a Visual Studio 2005 C# project it is very simple to do... just add the Windows Media Player Control to the form. Call the Control "MediaPlayer". Then in your code set the URL to a file or a http:// value as needed.
MediaPlayer.URL = "C:\Windows\Media\FileToBePlayed.avi";
It is quite a bit different in Visual Studio 2005 MFC C++... the Windows Media Player Control objects that are exposed in C# are not exposed in C++... perhaps there is something that got missed along the way.
My search goes on...
-- Modified Tuesday, April 5, 2011 3:48 PM
|
|
|
|
|
Hi,
I already have three registry values (type=REG_SZ):
HKEY_CURRENT_USER\SOFTWARE\FARM\ValueName1
[Value1=I like]
HKEY_CURRENT_USER\SOFTWARE\FARM\ValueName2
[Value2=Apples]
HKEY_CURRENT_USER\SOFTWARE\FARM\ValueName3
[Value3=NULL]
I need a piece of code that reads Value1 and Value2, combine them together and write them to Value3 so Value3 becomes:
HKEY_CURRENT_USER\SOFTWARE\FARM\ValueName3
[Value3=I like Apples]
That's all! simple no? but I have been trying all the day but nothing seems to want to work!
Any help would be very appreciated
|
|
|
|