|
open the menu options, go to the directories tab and add the directx include paths on top of all include paths in the IDE directories.
k_dehairy
|
|
|
|
|
yaminisridaran wrote: but I have installed directx 9.0
So have you checked to see if dshow.h actually exists on your machine?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Sorry for the late reply. I have install the directX SDK june2007 but still I am taking same 46 errors. I have included the directories.Please help me to solve this issue
S.YAmini
|
|
|
|
|
the dshow.h does not exist in my machine. CAn u help me in this.
S.Yamini
|
|
|
|
|
See here[^] you can download it or other files and see this[^] thread if helpfuls.
|
|
|
|
|
yaminisridaran wrote: but I have installed directx 9.0
If you can't answer yes to DavidCrow's question, you should maybe download the latest Platform SDK
from Microsoft, which is the home of the DirectShow SDK.
Once you install the SDK, set the build paths as others have explained (if the install didn't do
it for you).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
This episode brought to you by the number 3
|
|
|
|
|
Sorry for the late reply.I am trying to install directx sdk.
Thanks a lot. I will reply again when it does not work
S.yamini
|
|
|
|
|
I've got a Wizard Form where i create controls in runtime.
I need to attach the reference of a String/double variable to a control. This variables exists in another class. so when the Wizard finishes, i iterate through all the controls and each control updates it's own referenced varaible. In .NET i used the Control.Tag property (is of type Object - that was easy). Want to do the same in C++ but the Control->Tag is of int type.
Im missing something. Help me to convert the parameter Value:
<br />
void ExcuteWizard(..., AnsiString &Value)<br />
{<br />
TTextbox ctrl = new ....;<br />
<br />
ctrl->Tag = Value;
<br />
}<br />
void FinnishWizard()<br />
{<br />
for each control{<br />
((&AnsiString)Control->Tag) = Control->Text;
}<br />
}<br />
Have someone a theory or explanation with regards to pointer and reference conversions?
Thanks.
|
|
|
|
|
Please guys!
Ok at least how do i translate a integer that is a address e.g. 1247075 to the original AnsiString variable refrence?
|
|
|
|
|
you may use a pointer instead of a reference, provided you Tag property ha a compatible size.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Compile Error:
Cannot convert 'AnsiString*' to 'int'
I don't understand :
CPallini wrote: Tag property ha a compatible size.
It's a int-type - one size.
|
|
|
|
|
InOut.NET wrote: Compile Error:
Cannot convert 'AnsiString*' to 'int'
What compiler are you using?
InOut.NET wrote: I don't understand :
CPallini wrote:
Tag property ha a compatible size.
It's a int-type - one size.
if sizeof(int) is the same of sizeof(AnsiString*) then conversion should be possible (and allowed). If the condition above doesn't hold you can use the int value as index of a array of pointers (i.e. adding a level of indirection).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Builder C++ 2006
Yeah i used Tag = (int)AnsiString*
I could not get the int address from the Tag back to AnsiString*.
I decided to ditch AnsiString* and go for a struct* with a few AnsiSting in it.
All work so much easier. I think theres something about the AnsiString type that I don;t understand.
Thanks for your help.
|
|
|
|
|
InOut.NET wrote: I decided to ditch AnsiString* and go for a struct* with a few AnsiSting in it.
Probably the struct * will give you the same sort of problem the AnsiString * gave (I hope the countrary, of course).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
How to set unicode build in VS.net 2005?
|
|
|
|
|
project-> properties -> configuration properties -> character Set
(3rd option from the bottom)
|
|
|
|
|
Hi Guys
I want to detect device arrival on FIREWIRE Port.so how will i go for that.
some sample code is appreciable.
With Regards
RYK
|
|
|
|
|
|
if I am using getchar(), then the execution of the program will stop here if no input is given.
could someone help me figure out if there is another way? Aim: while any input is given, save it to a variable, if not, keep on executing program without stop.
I have used multithread, but it did not work well when I put it running at background.
I am using C
|
|
|
|
|
I don't think there is a function that 'does not wait for input'.
|
|
|
|
|
not necessarily a single function, but with the usage: keep program running, while accept the input if any
|
|
|
|
|
What about multithreading?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I had been used multithread, and it works strange.
It works fine when I run the program at foreground, the first thread keeps running while the second thread waiting for input.
But it does not work well when I run it at background. Without any inputs, both the first and second threads will stop. Only after I manually switching it back to run at foreground, then the first thread runs again.
So I really want to find something similar and simpler than the mulithread way.
|
|
|
|
|
I think what he wants is a kind of thread to wait for input.I suppose that you can use a thread to wait until he gets a string then uses thread communication to inform the main thread of this sting.
|
|
|
|
|
I think you can use feof (I think it works also on stdin ) to know if the keyboard buffer is empty, elseway get the char with getchar .
In this way you don't lock the program to wait a new key.
Russell
|
|
|
|