Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 3:22
Matthew Faithfull28-Jul-08 3:22 
GeneralRe: converting char* into BYTE* Pin
toxcct28-Jul-08 3:30
toxcct28-Jul-08 3:30 
GeneralRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 4:11
Matthew Faithfull28-Jul-08 4:11 
GeneralRe: converting char* into BYTE* Pin
Rajesh R Subramanian28-Jul-08 4:30
professionalRajesh R Subramanian28-Jul-08 4:30 
AnswerRe: converting char* into BYTE* Pin
Rajesh R Subramanian28-Jul-08 4:25
professionalRajesh R Subramanian28-Jul-08 4:25 
GeneralRe: converting char* into BYTE* Pin
Matthew Faithfull28-Jul-08 4:53
Matthew Faithfull28-Jul-08 4:53 
JokeI forgot to include the footer: Pin
Rajesh R Subramanian28-Jul-08 5:08
professionalRajesh R Subramanian28-Jul-08 5:08 
QuestionConsole WIndos Size Pin
Andy20228-Jul-08 3:16
Andy20228-Jul-08 3:16 
I wanted to use a Console Window to output some debug information for my MFC application, that all works fine, but would like to make the Window a bit larger without having to modify the properties of the Console WIndow by hand each time.

I tried this bit of code as the Console was being created - but did not work.

AllocConsole();
m_hConsole = GetStdHandle( STD_OUTPUT_HANDLE );
int handle = _open_osfhandle( (long) m_hConsole, _O_TEXT );
m_fConsole = _fdopen( handle, "w" );
// Try and set the Window to this size !!!!!!!!!!!!!
dwSize.X = 120;
dwSize.Y = 50;
SetConsoleScreenBufferSize(m_hConsole, dwSize);


Any sugegstions please

Andy.
AnswerRe: Console WIndos Size Pin
Luc Pattyn28-Jul-08 4:25
sitebuilderLuc Pattyn28-Jul-08 4:25 
QuestionHow get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 2:49
Member 373633528-Jul-08 2:49 
AnswerRe: How get to UserName ? (with Windows API) Pin
Hamid_RT28-Jul-08 2:57
Hamid_RT28-Jul-08 2:57 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:01
Member 373633528-Jul-08 3:01 
AnswerRe: How get to UserName ? (with Windows API) Pin
_AnsHUMAN_ 28-Jul-08 2:57
_AnsHUMAN_ 28-Jul-08 2:57 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:12
Member 373633528-Jul-08 3:12 
GeneralRe: How get to UserName ? (with Windows API) Pin
_AnsHUMAN_ 28-Jul-08 3:19
_AnsHUMAN_ 28-Jul-08 3:19 
GeneralRe: How get to UserName ? (with Windows API) Pin
Member 373633528-Jul-08 3:37
Member 373633528-Jul-08 3:37 
Questiona Question about Novell eDirectory ? Pin
Sakthiu28-Jul-08 2:24
Sakthiu28-Jul-08 2:24 
Questionprovisioning in Windows Pin
vineeshV28-Jul-08 1:26
vineeshV28-Jul-08 1:26 
AnswerRe: provisioning in Windows Pin
toxcct28-Jul-08 2:08
toxcct28-Jul-08 2:08 
AnswerRe: provisioning in Windows Pin
Hamid_RT28-Jul-08 2:58
Hamid_RT28-Jul-08 2:58 
GeneralRe: provisioning in Windows Pin
vineeshV28-Jul-08 3:43
vineeshV28-Jul-08 3:43 
Question[Solved] How to show the SaveAs dialog with Excel automation? [modified] Pin
followait28-Jul-08 1:03
followait28-Jul-08 1:03 
AnswerRe: [Excel automation] How to show the SaveAs dialog? Pin
Rajesh R Subramanian28-Jul-08 1:22
professionalRajesh R Subramanian28-Jul-08 1:22 
GeneralRe: [Excel automation] How to show the SaveAs dialog? Pin
followait28-Jul-08 1:43
followait28-Jul-08 1:43 
GeneralRe: [Excel automation] How to show the SaveAs dialog? Pin
followait28-Jul-08 2:06
followait28-Jul-08 2:06 

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.