|
hello,
just like we can tile the MDI child windows in our application can we write code for tiling the dialog boxes opened in parent dialog boxes?I thought of deriving our child dialog class from CFrameWnd.But then we have to tile them on clicking a menu option which then has to written in OnInitDialog() of CDialogDlgi.e the parent class.
please guide if i am proceeding in proper way?
thanks
|
|
|
|
|
|
Hi!
I am a college student.I wrote a filter demux the DVB-s mpeg-2 TS.Now it can render more than one audio streams But it can only render one video stream.It will be dead lock when rendering more than one video stream at the same time.
I dont know the reason.
I sincerely wait for the master's help!
please dont laugh at my poor english,I am a chinses student.
|
|
|
|
|
I have a question concerning your demultiplexer.
What kind of error corrections did you use?
I've also written a demux, but when there are many bitstream errors, the video and audio playback will get asynchron, although the media samples are all timestamped.
Now to your question:
You should trace where exactly the deadlock occurs (which filter, which routine...).
Don't try it, just do it!
|
|
|
|
|
Alexander:
I have no error correcttion,because the data source is DVB-S there is few error in the sattelite channle. Do you exactly know the wrong data ? whether you can drop the data,drop the audio and video data at the same time.
how do you process with the two video out put pin ?
|
|
|
|
|
|
I have no idea yet.
|
|
|
|
|
I resovled this problem.The sample number of output pin is not enough!
I increased the number from 100 to 4000,and the COutputQueue object's list cache from 10 to 1024*1024.Now everything runs well.
|
|
|
|
|
Question: In my Edit Control i want the users to input HEX Values (I know they dont except HEX values so I can only use them in a CString as Characters). They would input something like "AA BB". What i want to do is take those 2 values ("AA" being 1 value and "BB" being the other value) and put them into a UINT array. i am just not sure how to go about extracting characters from a string.
Anyone have any suggestions on how I could do this?
Thanks
|
|
|
|
|
CNewbie wrote:
am just not sure how to go about extracting characters from a string.
You can use the function
WCHAR <code>GetAt</code>(int nIndex)
"Success is the ability of going from one failure to another with no loss of enthusiasm" - W.Churchill
|
|
|
|
|
It seems that a webbrowser control doesn't pass any referer info to a visited website, but does pass browser and version info.
How can I get a webbrowser control (dialog-based app, VC++6)to pass a referer of, say, http://www.mybrowser.com ?
|
|
|
|
|
is it possable to change the name of a .txt file when writing to it? file1.txt file2.txt and so on if so how?
|
|
|
|
|
of course you can, just use sprintf to specify the file name.
like this:
char fname[256];
for (int i=0; i
|
|
|
|
|
"MyDlg" is a dialog class derived from CDialog
"pg_price" is a derived CPropertyPage
on pressing a button pg_price(derived from CPropertyPage), domodal is called
void pg_price::OnBUTTON() <br />
{<br />
MyDlg MyDlg_obj;<br />
MyDlg_obj.DoModal();<br />
}
OnInitDialog of MyDlg (derived from CDialog):
BOOL MyDlg::OnInitDialog() <br />
{<br />
CDialog::OnInitDialog();<br />
return TRUE;
}
now, the problem is that on winxp there isnt any problem. MyDlg_obj.DoModal(); displays the resource of MyDlg
but on win98se, the whole application hangs and become non-responsive upon clicking the button
MyDlg never appeared
so i ran a debugger and found out that the application has no problem running up to "BOOL MyDlg::OnInitDialog()" and returns it without any problem. I hit "f5" again and the application hangs. no assert/buffer overflow problems error messages were given, the whole application simply hangs there. i believe that's because the user interface thread got into something it cant get out of
doing a "step over" on the debugger i got the following
http://img182.imageshack.us/img182/7687/step4em.gif
i really got no idea how this happened
how is it possible that this app works well on winxp but not win98se?
i need that application on win98se platform
using vc++6.0 SP6
win98se/winxp
please assist
|
|
|
|
|
however, on winxp, i get this
http://img34.imageshack.us/img34/9697/winxp0ok.jpg
after some research, i discovered that because the button was located on a CPropertySheet and the domodal is launch from it
this CPropertySheet is one of the pages in the tabs area
this tab area is on my main dialog
anyone have problems doing domodal on CPropertySheet ?
how to solve this problem?
|
|
|
|
|
Just for grins, give your dialog a parent:
void pg_price::OnBUTTON() <br />
{<br />
MyDlg MyDlg_obj(this);<br />
MyDlg_obj.DoModal();<br />
}
and see if that helps.
|
|
|
|
|
I want to export a dialog class from a dll, by using this dialog class, I could create model or modeless dialog in my main project.
Then I need to send messages to mainwnd from the dialog class exported from the already created dll, who can tell me how, or give me some ideas.
Thanks very much.
Best Regards
|
|
|
|
|
Hmm, It seems this question is too hard to answer,
Is it possible to send message to main program's window?
Best Regards
|
|
|
|
|
class __declspec( dllexport ) ... for the DLL
class __declspec( dllimport ) ... for the App.
Further questions?
Don't try it, just do it!
|
|
|
|
|
hi
i made an active x controll that perform the function of rolling dice.
it works fine.now i want to add that on the webpage run on IE. for that purpose i had used the object tag. but my IE does not support that tag.
tell me how can i run my active x through web page.
<title>A Web page with a rolling die
<object id="Dieroll1"
classid="CLSID:46646B43-EA16-11CF-870C-00201801DDD6"
codebase="dieroll.cab#Version=1,0,0,1"
width="200"
height="200">
<param name="ForeColor" value="0" />
<param name="BackColor" value="16777215" />
If you see this text, your browser does not support the OBJECT tag.
Here is some text after the die
tell me how to add active x on web page.
ddd
|
|
|
|
|
Hi,
a user-reported crash minidump reports that the crash happened because EIP was set to 00000000.
Unfortunately, the call stack trace of the bad thread only shows the "00000000()" address in Visual Studio .NET.
Anyone have an idea how I could get more information from the minidump to find out the reason for the crash ?
Thanks,
Manfred
|
|
|
|
|
The dword at the top of the stack can help. It shows you where the call to 00000000 came from.
Don't try it, just do it!
|
|
|
|
|
Sometimes, not always. If the stack pointer was "corrupted" for example by invalid calling convention for example, the function could have returned to this location. The return value could also have been overwritten, so top of stack is a good starting place but you may need to check down the stack to perhaps try to realign the stack to figure out what really happened and if the stack pointer is correct or not and then piece back what happened.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
So, for example the reasons that EIP could be zero (These can also apply to other invalid addresses, however for non-zero invalid addresses there are actually a few more things to look at such as DLLs being unloaded but still on the stack executing).
1. Function Call using a NULL function pointer.
DDS ESP should provide you the return address at the top of the stack of the caller.
2. Invalid calling convention or other mis-operation that would dis-align the stack.
What you could do then is
DDS ESP - xx to dump the stack to find out what the "real" return address was supposed to be. From this you can deduct what the original function call was. Then you can go through that function, find the "RET" and see how many bytes would have been removed. Find the "0" on the stack by deducting this from the current ESP to find out if this is a possible return value match.
Then you can either debug that function, watching the calls and ESP to see where it changes. After each call the ESP should be adjusted to before the parameters on the stack, either immediately upon return or shortly after.
3. Corruption of the stack.
These are a bit tougher. You should dump the stack and attempt to piece together a function call graph using whatever return addresses are still on the stack.
You can check the TEB of the thread to find the top and bottom of the stack so you can also verify if ESP is in the valid range as well. You could then dump the entire stack and find around the area of the problem what return addresses weren't overwritten. Look for data on the stack, for example if you have any arrays hopefully they were strings! If they were you can dump the bytes of the stack and hopefully easily figure out what function had the string that overwrote the return address.
Hopefully one of these methods can help pin point the problem.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
is there anyway to learn which dll files does my program need to run. Or which merge modules to add.
|
|
|
|