Click here to Skip to main content
15,888,271 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Resizing frame Pin
Stuart Dootson17-Feb-09 1:03
professionalStuart Dootson17-Feb-09 1:03 
GeneralRe: Resizing frame Pin
baerten17-Feb-09 2:29
baerten17-Feb-09 2:29 
QuestionHow to access child window controls? Pin
Abhijit D. Babar17-Feb-09 0:35
Abhijit D. Babar17-Feb-09 0:35 
AnswerRe: How to access child window controls? Pin
Stuart Dootson17-Feb-09 0:57
professionalStuart Dootson17-Feb-09 0:57 
Questionuse GdiPlus :: Font to SetFont of a static text control or convert GdiPlus :: Font to CFont Pin
_T("No name")17-Feb-09 0:33
_T("No name")17-Feb-09 0:33 
AnswerRe: use GdiPlus :: Font to SetFont of a static text control or convert GdiPlus :: Font to CFont [modified] Pin
Nuri Ismail17-Feb-09 3:17
Nuri Ismail17-Feb-09 3:17 
QuestionUser account that connect to a shared folder. Pin
Green Fuze16-Feb-09 23:47
Green Fuze16-Feb-09 23:47 
QuestionProblems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj16-Feb-09 23:35
josip cagalj16-Feb-09 23:35 
Hi,
in my app I have the following code:
std::ofstream f(sPath.GetBuffer(0), std::ios::binary);
f.write((const char *) pBytes, dwSize);
f.close();

I also include 'iostream.h' #include <iostream.h></iostream.h>
I'm getting error:
-error C2027: use of undefined type 'basic_ios<char,struct> >'
-error C2065: 'binary' : undeclared identifier
-error C2079: 'f' uses undefined class 'basic_ofstream<char,struct> >'
-error C2078: too many initializers
-error C2228: left of '.write' must have class/struct/union type
-error C2228: left of '.close' must have class/struct/union type

Help?
Thanks!

P.S. Using vc++ 6 on WinXP SP3
AnswerRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Cedric Moonen16-Feb-09 23:41
Cedric Moonen16-Feb-09 23:41 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj16-Feb-09 23:49
josip cagalj16-Feb-09 23:49 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj17-Feb-09 0:14
josip cagalj17-Feb-09 0:14 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Stuart Dootson17-Feb-09 0:51
professionalStuart Dootson17-Feb-09 0:51 
AnswerRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Stuart Dootson17-Feb-09 0:08
professionalStuart Dootson17-Feb-09 0:08 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj17-Feb-09 0:15
josip cagalj17-Feb-09 0:15 
QuestionUsing GDI over OpenGL in Vista Pin
Gastello16-Feb-09 22:50
Gastello16-Feb-09 22:50 
QuestionNeed help on how to move line between two horizontal sliders with slider position [modified] Pin
John50216-Feb-09 22:37
John50216-Feb-09 22:37 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»16-Feb-09 23:05
professional«_Superman_»16-Feb-09 23:05 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 0:01
John50217-Feb-09 0:01 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 1:06
professional«_Superman_»17-Feb-09 1:06 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 1:38
John50217-Feb-09 1:38 
QuestionRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 2:29
professional«_Superman_»17-Feb-09 2:29 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 2:52
John50217-Feb-09 2:52 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 19:10
professional«_Superman_»17-Feb-09 19:10 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
John50217-Feb-09 23:24
John50217-Feb-09 23:24 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 23:35
professional«_Superman_»17-Feb-09 23:35 

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.