Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

stephen_young

@stephen_young
About
Posts
16
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use CMFCVisualManagerOffice2007 in dialog App?
    S stephen_young

    Thanx David.Yes the SDI app is OK!!

    C / C++ / MFC tutorial question

  • How to use CMFCVisualManagerOffice2007 in dialog App?
    S stephen_young

    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.

    C / C++ / MFC tutorial question

  • [Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]
    S stephen_young

    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!!

    C / C++ / MFC help c++ sysadmin tutorial

  • [Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]
    S stephen_young

    Thanx for your reply!I will try it.

    C / C++ / MFC help c++ sysadmin tutorial

  • [Solved]My CAsyncSocket class doesn't receive data after some secondes. [modified]
    S stephen_young

    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

    C / C++ / MFC help c++ sysadmin tutorial

  • [solved]RichEdit control in Dialog: "Retrun" does'nt Work !
    S stephen_young

    Code-o-mat wrote:

    Does your rich edit have the multiline style?

    I added the multiline style.

    C / C++ / MFC csharp visual-studio help question

  • [solved]RichEdit control in Dialog: "Retrun" does'nt Work !
    S stephen_young

    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.

    C / C++ / MFC csharp visual-studio help question

  • [solved]RichEdit control in Dialog: "Retrun" does'nt Work !
    S stephen_young

    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.

    C / C++ / MFC csharp visual-studio help question

  • How to handle too many checkbox's click message ?
    S stephen_young

    Thanks Nelek for your detailed advice.I will try Radio Button Control.

    C / C++ / MFC question tutorial

  • How to handle too many checkbox's click message ?
    S stephen_young

    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!

    C / C++ / MFC question tutorial

  • How to handle too many checkbox's click message ?
    S stephen_young

    Thank you Naveen,I read the MSDN page you showed me.I think using ON_CONTROL_RANGE can solve my problem.Thanks a lot!

    C / C++ / MFC question tutorial

  • How to handle too many checkbox's click message ?
    S stephen_young

    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!

    C / C++ / MFC question tutorial

  • directshow:question about deadlock...
    S stephen_young

    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.

    C / C++ / MFC help question

  • directshow:question about deadlock...
    S stephen_young

    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 ?

    C / C++ / MFC help question

  • directshow:question about deadlock...
    S stephen_young

    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.

    C / C++ / MFC help question

  • DirectShow Audio-Video Synchronization
    S stephen_young

    Hi 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

    C / C++ / MFC help data-structures question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups