Thanx David.Yes the SDI app is OK!!
stephen_young
Posts
-
How to use CMFCVisualManagerOffice2007 in dialog App? -
How to use CMFCVisualManagerOffice2007 in dialog App?Hi everybody,I used vc 2008 sp1 and created a dialog app.I used
CMFCVisualManagerOffice2007::SetStyle(CMFCVisualManagerOffice2007::Office2007\_LunaBlue); CMFCVisualManager::SetDefaultManager(RUNTIME\_CLASS(CMFCVisualManagerOffice2007));
in CAppEx::InitInstance(),but there were nothing happaned.I wonder thether the dialog app couldn't use CMFCVisualManagerOffice2007 . Thanx.
-
[Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]Hi,I found the reason. In OnReceive,I used a fixed length buffer to call Receive function,But in fact,sometimes the incoming data's length is great than the buffer length.So there was some data remained in system buffer,and the app didnt get them,I think it made OnReceive not be called anymore. Thanx everybody's advice!!
-
[Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]Thanx for your reply!I will try it.
-
[Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]Hi everybody: I am greenhand in socket programming. I want to write a little program to receive tcp data and save them from server with multi port(almost 64 ports),the data was in deferent data rate.I read msdn and decided to use CAsyncSocket.I wrote a simple class CMySocket,and overide the OnReceive function.In the function,I want to save the received data to file. When I used the new class,I created 64 CMySocket objects,and connect to the server ports.They connected the server well,and OnReceive function was triggered.But after some seconds,for example 10 seconds or handreds seconds,some objects' OnReceive was never triggered any longer,at last all objects were still ,no data incomed. I have no idea why my objects didnt work continuously.My class had no more function,and only overrided the OnReceive.I wondered whether there exits some method to find the problem. The server program is written with c++ builder,and if I use c++ builder and its socket controls,I have no problem in receiving and saving data.But I dont know why it failed in VC++ 2005. I hope your help,thanx.
modified on Sunday, December 5, 2010 11:34 PM
-
[solved]RichEdit control in Dialog: "Retrun" does'nt Work !Code-o-mat wrote:
Does your rich edit have the multiline style?
I added the multiline style.
-
[solved]RichEdit control in Dialog: "Retrun" does'nt Work !Mattias G wrote:
you could try modifing the style in the resource editor instead of in your code
Thanks. I wonder which style I should modify in the resource editor.
-
[solved]RichEdit control in Dialog: "Retrun" does'nt Work !Hi everybady. I Inserted a richedit control in a Dialog.When I typed string in richedit control I found the control didnt response RETURN key.There was not problem in CRichEditView in single document app. I think perhaps the dialog would process the RETURN down message,and the richedit control had no chance to response it. I used "ModifyStyle(0,ES_WANTRETURN)" set richedit control's style but this didnt resolve the problem. What's the different between richedit control in dialog and document-view app ? Thanks. :sigh: Thanks everybody,I found I must set ES_WANTRETURN in visual studio ,
ModifyStyle(0,ES_WANTRETURN)
in the OnInitDialog() can't modify the style. I wonder whether the RichEditCtrl's style must be set when create.
-
How to handle too many checkbox's click message ?Thanks Nelek for your detailed advice.I will try Radio Button Control.
-
How to handle too many checkbox's click message ?Thanks Nelek for your infomation.I use Ms VC6,and I hope when I select one all the others get unselected ( AS you guess :) ). I think ON_CONTROL_RANGE can solve the problem.I will test it. Good luck!
-
How to handle too many checkbox's click message ?Thank you Naveen,I read the MSDN page you showed me.I think using ON_CONTROL_RANGE can solve my problem.Thanks a lot!
-
How to handle too many checkbox's click message ?Hi, I have many checkbox button.I want to know which button was clicked when user clicked one of them. How can I use One handle function response the click message,and can get which button has been clicked? Thanks!
-
directshow:question about deadlock...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.
-
directshow:question about deadlock...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 ?
-
directshow:question about deadlock...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.
-
DirectShow Audio-Video SynchronizationHi Alexander! I wrote a mpeg-ts demux filter.The source is DVB-s,so there is little error in the data stream.But I encounter a problem:the filter can render more than one audio streams,and render one video and one audio ES,but it can't render more than one video ES.when i connect two video out put pin to the decoder and run the gragh,there is a deadlock happens. I dont know whether you encoutered this problem,I sincerely wait your advice. Thank you very much! Please dont laugh at my poor english ,I am a Chinese student:) stephen young