Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Combobox help please... Pin
Nish Nishant21-Jun-02 15:47
sitebuilderNish Nishant21-Jun-02 15:47 
GeneralRe: MFC Combobox help please... Pin
sultan_of_6string21-Jun-02 16:00
sultan_of_6string21-Jun-02 16:00 
GeneralRe: MFC Combobox help please... Pin
21-Jun-02 16:08
suss21-Jun-02 16:08 
GeneralRe: MFC Combobox help please... Pin
Duane21-Jun-02 16:29
Duane21-Jun-02 16:29 
GeneralConverting from Borland to Visual C++ Pin
21-Jun-02 12:31
suss21-Jun-02 12:31 
GeneralRe: Converting from Borland to Visual C++ Pin
JohnnyG22-Jun-02 3:48
JohnnyG22-Jun-02 3:48 
QuestionIs it possible to have a Docking Tool Bar on Dialog?? Pin
Speedy21-Jun-02 11:44
Speedy21-Jun-02 11:44 
GeneralSome coding questions Pin
Alan Chambers21-Jun-02 10:52
Alan Chambers21-Jun-02 10:52 
Hi all, I have some quick fire questions that I would love to know the answers to, so please reply even if you only know one or two, or even have an idea.

1.) How do you go about assigning the 6 char string "Arial" to the LOGFONT.lfFontName property? I keep getting an error about can't convert from char [6] to char [32]?

2.) Is the only way of displaying text with DirectX by use of GDI's HFONT and TextOut methods having retrieved a DC from the surface the text is to go to?

3.) Is it normal to create a HFONT based on the newest LOGFONT spec using CreateFontIndirect() and delete it using DeleteObject(hFont) after the desired text has been displayed. Or is better to create multiple HFONTs for differing texts? Basically is there a time penalty for creating/deleting HFONTs?

4.) How do I get the current screen resolution? At the moment I am using the EnumDisplayModes() with my own callback function. Could I use this to find it?

5.) Is there anyway of using a reference to a structure to save me typing out the structure name when accessing its properties? so that:

MYSTRUCT hello;
hello.name = "hello";
hello.width = 1;
hello.height = 2;

-------------------
MYSTRUCT hello;
*using* hello;
name = "hello";
width = 1;
height = 2;
*end* hello;
-------------------

Thanks for getting this far, hope you can answer some of the questions. Cheers all,

Alan.

P.S. My condolences to all fellow England and USA football fans who saw their teams go out in todays matches Frown | :( .

"When I left you I was but the learner, now I am the master" - Darth Vader
GeneralRe: Some coding questions Pin
Chris Losinger21-Jun-02 11:00
professionalChris Losinger21-Jun-02 11:00 
GeneralRe: Some coding questions Pin
Alan Chambers22-Jun-02 0:11
Alan Chambers22-Jun-02 0:11 
QuestionHow to keep my server alive Pin
Bill Wilson21-Jun-02 8:52
Bill Wilson21-Jun-02 8:52 
AnswerRe: How to keep my server alive Pin
Ramu Pulipati21-Jun-02 10:18
Ramu Pulipati21-Jun-02 10:18 
AnswerRe: How to keep my server alive Pin
A.A.21-Jun-02 10:26
A.A.21-Jun-02 10:26 
GeneralRe: How to keep my server alive Pin
Bill Wilson24-Jun-02 6:20
Bill Wilson24-Jun-02 6:20 
GeneralMultimedia netwok Pin
21-Jun-02 8:32
suss21-Jun-02 8:32 
GeneralRe: Multimedia netwok Pin
dazinith21-Jun-02 8:36
dazinith21-Jun-02 8:36 
GeneralRe: Multimedia netwok Pin
Anonymous10-Oct-02 6:06
Anonymous10-Oct-02 6:06 
GeneralTemplate Troubles (Solved) Pin
Raskolnikov21-Jun-02 8:32
Raskolnikov21-Jun-02 8:32 
GeneralRe: Template Troubles Pin
sultan_of_6string21-Jun-02 9:04
sultan_of_6string21-Jun-02 9:04 
GeneralRe: Template Troubles Pin
redeemer21-Jun-02 12:57
redeemer21-Jun-02 12:57 
GeneralRe: Template Troubles Pin
sultan_of_6string21-Jun-02 15:51
sultan_of_6string21-Jun-02 15:51 
GeneralRe: Template Troubles Pin
jbarton21-Jun-02 10:36
jbarton21-Jun-02 10:36 
GeneralRe: Template Troubles (Solved) Pin
Raskolnikov21-Jun-02 13:27
Raskolnikov21-Jun-02 13:27 
GeneralRe: Template Troubles (Solved) Pin
Paul M Watt21-Jun-02 18:30
mentorPaul M Watt21-Jun-02 18:30 
GeneralRe: Template Troubles (Solved) Pin
Tim Smith22-Jun-02 4:56
Tim Smith22-Jun-02 4:56 

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.