Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get bytes sent and bytes receive with IP Helper function Pin
Fang Jing22-Oct-02 21:59
Fang Jing22-Oct-02 21:59 
GeneralOT: cheers to codeproject Pin
Anonymous22-Oct-02 21:35
Anonymous22-Oct-02 21:35 
GeneralRe: OT: cheers to codeproject Pin
Roger Allen23-Oct-02 0:34
Roger Allen23-Oct-02 0:34 
QuestionA question after looking at the "FTPWander",how can it support resuming interrupted transmission ? Pin
nothingremained22-Oct-02 21:13
nothingremained22-Oct-02 21:13 
Generalprevent the user to use some keystrokes using a service, I'v done this by this way, but it works only in some machines... Pin
Joan M22-Oct-02 20:52
professionalJoan M22-Oct-02 20:52 
GeneralMDI tutorial/links Pin
Mandalay22-Oct-02 20:13
Mandalay22-Oct-02 20:13 
GeneralUNICODE problem! Pin
Daniel Strigl22-Oct-02 20:05
Daniel Strigl22-Oct-02 20:05 
GeneralRe: UNICODE problem! [corrected] Pin
Joaquín M López Muñoz22-Oct-02 21:23
Joaquín M López Muñoz22-Oct-02 21:23 
The following works just fine for me:
#include <atlbase.h>
#include <iostream>
#include <fstream>
 
using namespace std;
 
int main(void)
{
  USES_CONVERSION;
 
  ofstream ofs("out.txt");
 
  ofs<<W2CA(L"Büro")<<endl;
 
  return 0;
}
Maybe the problem is in the third parameter of the call to WriteFile. Shouldn't it be str.GetLength()*sizeof(TCHAR)?
Correction: This is obviously not the problem, since you're writing ANSI strings.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: UNICODE problem! [corrected] Pin
Daniel Strigl23-Oct-02 3:27
Daniel Strigl23-Oct-02 3:27 
GeneralRe: UNICODE problem! Pin
Maximilien23-Oct-02 3:07
Maximilien23-Oct-02 3:07 
GeneralRe: UNICODE problem! Pin
Daniel Strigl23-Oct-02 3:19
Daniel Strigl23-Oct-02 3:19 
Question_ConnectionPtr pCon ????? Pin
Anonymous22-Oct-02 19:23
Anonymous22-Oct-02 19:23 
AnswerRe: _ConnectionPtr pCon ????? Pin
Nish Nishant22-Oct-02 19:29
sitebuilderNish Nishant22-Oct-02 19:29 
GeneralRe: _ConnectionPtr pCon ????? Pin
Anonymous25-Oct-02 19:59
Anonymous25-Oct-02 19:59 
Generallost unicode... Pin
Mel Feik22-Oct-02 18:28
Mel Feik22-Oct-02 18:28 
GeneralRe: lost unicode... Pin
jmkhael23-Oct-02 2:04
jmkhael23-Oct-02 2:04 
GeneralRe: lost unicode... Still Pin
Mel Feik23-Oct-02 3:17
Mel Feik23-Oct-02 3:17 
GeneralView Print Preview Pin
act_x22-Oct-02 17:59
act_x22-Oct-02 17:59 
GeneralRe: View Print Preview Pin
Roger Allen23-Oct-02 1:07
Roger Allen23-Oct-02 1:07 
QuestionHow to change menu's font ? Pin
Nguyen Huynh Hung22-Oct-02 17:52
Nguyen Huynh Hung22-Oct-02 17:52 
AnswerRe: How to change menu's font ? Pin
José Luis Sogorb23-Oct-02 7:11
José Luis Sogorb23-Oct-02 7:11 
GeneralHelp! ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
work_to_live22-Oct-02 15:24
work_to_live22-Oct-02 15:24 
GeneralRe: ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
Roger Allen23-Oct-02 1:10
Roger Allen23-Oct-02 1:10 
GeneralRe: Help! ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
Jonathan Craig23-Oct-02 6:29
Jonathan Craig23-Oct-02 6:29 
GeneralRe: Help! ON_UPDATE_COMMAND_UI Not called prior to menu display Pin
work_to_live23-Oct-02 9:04
work_to_live23-Oct-02 9:04 

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.