|
yeetins wrote:
fatal error:can't find the file "streams.h".
You could need a library called "streams.h" It may or may not have come with the download, and not have been installed in the proper library file.
|
|
|
|
|
Yes,I think so.
But where can I find it?After I install DirectX 9.0c SDK,the compiler still can't find it.
|
|
|
|
|
yeetins wrote:
But where can I find it?After I install DirectX 9.0c SDK,the compiler still can't find it.
-If your problem is a library that has been misplaced by the computer, you can find it using the find under the start menu, and manually move the library to the correct folder.
-Your download may not have included the library and you need to find it on the net.
|
|
|
|
|
AFAIR, this is a common header file that all the DirectShow samples use. The header is in a common include folder somewhere in the sample heirarchy. Set the include path appropriately so the compiler can find the file.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am so confused now.There isn't DirectShow samples and DirectShow folder in the SDK I installed in my computer.My computer doesn't have this header file,so ......!
|
|
|
|
|
Hi guys,
I am trying to format the output of a floating point. The number of digits after the decimal point is decided by the user.
I tried the usual method - prompt the user to enter accuracy--store it in a integer variable called 'accy' and use it while displaying -
m_display.Format("% 0.accyf" , output);
The program doesn't give any error while compiling, but when I run it, an error window pops up saying error in line 613, "abort", "cancel" , "retry".
Anyway around this?
-hithesh
|
|
|
|
|
format your format string manually ...
something like :
CString sFormatString;
sFormatString.Format ( "% 0.%i", accyf );
m_display.Format(sFormatString , output)
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Use:
m_display.Format("%0.*f", accy, output);
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks david. That worked.
-hithesh
|
|
|
|
|
Hi guys,
I am trying to implement the backspace function. The last element of the Cstring should be deleted when the backspace button is pressed.
The data is entered by the used in a text display box.
Thanks in advance.
-hithesh
|
|
|
|
|
1. Code to trim rightmost character form CString.
<br />
CString csTemp;<br />
int iLength;<br />
<br />
iLength = csTemp.GetLength();<br />
if( iLength > 1 ){<br />
csTemp = csTemp.Left(iLength - 1);<br />
}<br />
2. Edit field should be handling the backspace keypress already.
|
|
|
|
|
I think you meant if (iLength > 0) ...
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thanks Blake. you saved me a lot of time.
-hithesh
|
|
|
|
|
Removing just the last TCHAR will break if the string ends in a DBCS character. You need to call CharPrev() to move back one "character" from the end (whether it's 1 or 2 bytes).
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
And I actually know better, thanks for the correction
|
|
|
|
|
I hope i will be your partners
|
|
|
|
|
Me Not!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
i am reading some text from the selected file, then when i push a button i want to insert some data to database (ADO), but cant do. There is an error occured.
i tested : when i dont read data from a file, i can use data functions well.
I even close CStdioFile and delete its pointer.
Can anybody help?
|
|
|
|
|
ugur_basak wrote:
There is an error occured.
I give up. What's the error?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Oh come on David Use your ESP, or lacking that, take a wild guess. You may just hit upon the correct solution.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
the error:
Runtime Error!
Program:..... .exe
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
---
the error is about this sentence.
pConnectRead->Open(commandString, connectionString, adOpenStatic, adLockReadOnly, adCmdText);
can this be helpfull to GUESS the solution.
|
|
|
|
|
ugur_basak wrote:
Runtime Error!
Program:..... .exe
Usually this type of error occur due to IMproper/unreferenced Memory allocation.
ugur_basak wrote:
pConnectRead->Open(commandString, connectionString, adOpenStatic, adLockReadOnly, adCmdText);
have you checked that is pConnectRead hold valid memory or any of it args!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
CFileDialog fileDlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_PATHMUSTEXIST, NULL, this);
if(fileDlg.DoModal()==IDOK)
{
sSelectedFile = fileDlg.GetPathName();
}
I guess the problem is about the above code, when i use this dialog window the error happens. But if i use the files path name by editing the editbox there is no error.
But still cannot use this dialog
|
|
|
|
|
At the end i find the solution. its about an ugly problem. When we use CFileDialog without OFN_NOCHANGEDIR, it doesnt release some of the handles, and system crashes...
dlg = new CFileDialog(FALSE, NULL, NULL, OFN_HIDEREADONLY | OFN_NOCHANGEDIR);
this solves everything...
|
|
|
|
|
I need some help in codding ActiveX container. Short description : Microsoft Visual Studio 2003 and other vsersion (6,7) , includes sample TstCon - a sample of ActiveX Container. When I place control and than delete it or open new document, this program hang up every time when i close it.
I modified ContainerItem method OnDelete()... after pItem->Delete() i put delete(pItem); its all works under win2k... but... in 98SE,XP after deleting control, when i try to insert new control an error occured "Failed to connect.Link may be broken".
So does any one knows how to solve this, and force it to work correctly.
Thanks.
|
|
|
|