|
I got an example which can play back a wavefile with streaming buffer.now,I modify some lines for Lan chat. However I try my best ,It doesn't work. So wanna your help.
Well,First I simulate this situation that 2 men chat. Set same WaveFormatEx two point,and One Point Read a wavefile and Send data to
the other PC.
The other PC Receive quiet well,I use the data to playback(stream buffer mode) ,but It does't work. Nothing can be Heard.
what's wrong in my app?
|
|
|
|
|
We don't have magicaly abilities to find out what is wrong with you code without looking at it. If you need help then post with more details about what exactly are you doing with small code snippets.
-Saurabh
|
|
|
|
|
I am calling two new dialogs on two different button clicks in my first dialog.
For the first time it is executing correctly.
Once i close one dialog and open another it is givin g system error and aborting the application.
Please tell me where it is going wrong.
|
|
|
|
|
How did you create dialog and how did you close it?
|
|
|
|
|
Please paste your code snippet.
Regards,
Sandip.
|
|
|
|
|
You could be using some uninitialized variable in your code for the second time. Did you try and debug your code?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I've developed an application using Visual C++ 2005. This application showed me error at linking. The errors are:
HelloWorld.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall dtABC::Application::~Application(void)" (__imp_??1Application@dtABC@@MAE@XZ) referenced in function __unwindfunclet$??0HelloWorld@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z$0
HelloWorld.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall dtABC::BaseABC::OnMessage(struct dtCore::Base::MessageData *)" (?OnMessage@BaseABC@dtABC@@MAEXPAUMessageData@Base@dtCore@@@Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall dtCore::Transformable::GetTransform(class dtCore::Transform &,enum dtCore::Transformable::CoordSysEnum)const " (?GetTransform@Transformable@dtCore@@UBEXAAVTransform@2@W4CoordSysEnum@12@@Z)
D:\HelloWorld1\Debug\HelloWorld1.exe : fatal error LNK1120: 54 unresolved externals
These are not defined by me. What to do?
|
|
|
|
|
Did you link library to your application?
|
|
|
|
|
Hi all,
How can i get the total Number of Days in a month?
how can check number of days in a month are 28,29,30,or 31?
Please help me for this.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
ThatsMe. wrote: how can check number of days in a month are 28,29,30,or 31?
int GetNumberOfDays( int nYear, int nMonth )
{
COleDateTime objDate;
int nDay = 29;
for( ;nDay < 32; nDay++ )
{
objDate.SetDate( nYear, nMonth, nDay );
if( objDate.GetStatus() == COleDateTime::invalid )
{
break;
}
}
return --nDay;
}
|
|
|
|
|
Wouldn't this always return 31?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: Wouldn't this always return 31?
How? Can you explain?
|
|
|
|
|
if( objDate.GetStatus() == COleDateTime::invalid ) fails for some reason so the function always returns 31. I recall seeing this code somewhere in MSDN (??? probably). Used it some time back.
[modified]A quick look at MSDN gives me this:If you call GetStatus on a COleDateTime object constructed with the default, it will return valid
Eg:The status of this is 2000, 2, 31 = valid ???
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
modified on Wednesday, June 11, 2008 1:21 AM
|
|
|
|
|
_AnShUmAn_ wrote: If you call GetStatus on a COleDateTime object constructed with the default, it will return valid
But I am calling SetDate() after the construction of COleDateTime object. Suppose if you set a date as objDate.SetDate( 2008, 2, 30 ); The date will be invalid and if( objDate.GetStatus() == COleDateTime::invalid ) will return true.
|
|
|
|
|
I just tried this bit of code and it always returns me 31. even the parameters to the function when passed as 2000,2 returns 31. ??? Any reasons. I modified my last post to include this.
BTW does this code execute as expected at your end.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: BTW does this code execute as expected at your end.
yes. it returns 29.
Is it because of some OS environment problem ?I am running on windows XP with SP2.
|
|
|
|
|
Same here [WinXP SP2]. but it always returns 31. Will try and find the reason behind this behaviour and get back if possible.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Can any one else tell us whats the behavior in your machines??
|
|
|
|
|
It returns 29.
I have XP and SP2
Regards,
Sandip.
|
|
|
|
|
|
It returns 29,dont worry your code is correct.
|
|
|
|
|
|
BTW does your problem solve I think it was about threads,right?
|
|
|
|
|
Hamid. wrote: does your problem solve
That Delete file problem??nop. I failed to find a working solution.
Any way I updated my article. I have metioned the problem and have asked to tell me if any one finds some other solutions.
|
|
|
|
|
2 down votes . Seems some body doesn't like the idea.
|
|
|
|