Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i set the initial folder selected in SHBrowseForFolder? Pin
Shog921-Feb-02 10:08
sitebuilderShog921-Feb-02 10:08 
AnswerRe: How can i set the initial folder selected in SHBrowseForFolder? Pin
Joaquín M López Muñoz21-Feb-02 10:14
Joaquín M López Muñoz21-Feb-02 10:14 
GeneralRe: How can i set the initial folder selected in SHBrowseForFolder? Pin
Shog921-Feb-02 11:05
sitebuilderShog921-Feb-02 11:05 
AnswerRe: How can i set the initial folder selected in SHBrowseForFolder? Pin
Michael Dunn21-Feb-02 10:48
sitebuilderMichael Dunn21-Feb-02 10:48 
AnswerRe: How can i set the initial folder selected in SHBrowseForFolder? Pin
PJ Arends21-Feb-02 15:42
professionalPJ Arends21-Feb-02 15:42 
GeneralRe: How can i set the initial folder selected in SHBrowseForFolder? Pin
Shog921-Feb-02 20:06
sitebuilderShog921-Feb-02 20:06 
Generalwinsock packets delimiter parsing Pin
Kuniva21-Feb-02 9:50
Kuniva21-Feb-02 9:50 
GeneralRe: winsock packets delimiter parsing Pin
Joaquín M López Muñoz21-Feb-02 10:03
Joaquín M López Muñoz21-Feb-02 10:03 
This same problem got posted yesterday or two days ago. You have two options:
  1. When a new line is to be read, keep reading while '\n' is not found and stuffing all the input to a temporary buffer (in your case an std::string would fit nice). When the end of line is found, return the complete line and keep the last part of what you read (i.e. the part after '\n') in that temporary buffer for the next read operation. A little convoluted, but not hard to program.
  2. For each line written, send before a variable (say an unsigned long) specifying how many bytes the line has. Upon reading, you just have to read the size information first to make then an additional read operation for the exact amount of data needed. This requires that you are in control of the sending part, and poses some crossplatform compatibility problems (that can be fixed, nevertheless).


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Generalcannot find or open a required DBG file VC.NET Pin
JoeSox21-Feb-02 8:24
JoeSox21-Feb-02 8:24 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Joaquín M López Muñoz21-Feb-02 9:04
Joaquín M López Muñoz21-Feb-02 9:04 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Mazdak21-Feb-02 9:20
Mazdak21-Feb-02 9:20 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Joaquín M López Muñoz21-Feb-02 9:24
Joaquín M López Muñoz21-Feb-02 9:24 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Mazdak21-Feb-02 9:59
Mazdak21-Feb-02 9:59 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Michael Dunn21-Feb-02 10:49
sitebuilderMichael Dunn21-Feb-02 10:49 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Joaquín M López Muñoz21-Feb-02 10:59
Joaquín M López Muñoz21-Feb-02 10:59 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
JoeSox21-Feb-02 11:47
JoeSox21-Feb-02 11:47 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Mazdak21-Feb-02 19:13
Mazdak21-Feb-02 19:13 
GeneralRe: cannot find or open a required DBG file VC.NET Pin
Mazdak21-Feb-02 19:12
Mazdak21-Feb-02 19:12 
Questionfunctions to use other than SetWindowText? Pin
Pyropat21-Feb-02 8:10
Pyropat21-Feb-02 8:10 
AnswerRe: functions to use other than SetWindowText? Pin
Paul M Watt21-Feb-02 8:26
mentorPaul M Watt21-Feb-02 8:26 
AnswerRe: functions to use other than SetWindowText? Pin
lucy21-Feb-02 8:28
lucy21-Feb-02 8:28 
AnswerRe: functions to use other than SetWindowText? Pin
Christian Graus21-Feb-02 10:17
protectorChristian Graus21-Feb-02 10:17 
QuestionHow to add "File Edit View..." menù in a CDialog ? Pin
Lockhart21-Feb-02 7:33
Lockhart21-Feb-02 7:33 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Ravi Bhavnani21-Feb-02 7:41
professionalRavi Bhavnani21-Feb-02 7:41 
AnswerRe: How to add "File Edit View..." menù in a CDialog ? Pin
Paul M Watt21-Feb-02 8:05
mentorPaul M Watt21-Feb-02 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.