Delphi Programming Interview Questions and Answers

Delphi Questions and Answers:

1 :: What should I give to Windows API functions that want a hWnd?

Each form has a property called Handle, which contains the form's hWnd. Many controls also have hWnd properties. However, don't try to pass Canvas.Handle to an API function expecting a hWnd, because TCanvas's Handle property is a hDC, not a hWnd.
0/5 Rating (0 vote)
Is This Answer Correct?    2 Yes 0 No
Place Your Answer

2 :: Why do I get exception messages even though I am in protected code?

By default, the internal debugger will halt any time there is an exception, even if the exception is trapped by code. This can often be useful for debugging purposes. If it offends you, turn it off. You control it from the Options/Environment menu.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

3 :: How do I write a global error handler?

Use the Application.OnException event. Look in the help under "application events" for details of how to create and attach an event handler to the application variable.
0/5 Rating (0 vote)
Is This Answer Correct?    1 Yes 0 No
Place Your Answer

4 :: I am trying to call from Delphi and it GPFs. Whats up?

Based on the number of postings to comp.lang.pascal, it would seem that by far the largest number of problems calling Windows API functions or non-Delphi DLLs are caused by passing Pascal-style strings to functions that expect null-terminated (PChar) strings. This is the first thing you should check if you get a GPF or other strange results when calling an external function. See section 6.11 for more information on which type of strings go where.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

5 :: When I use the Glyph property, how do I know which color is transparent?

Delphi always assumes that the color of the bottom left-hand corner pixel is the background color and should be displayed as transparent. Yes, it took me a while to figure this out. It's not documented anywhere, but if you have the VCL source, you can look at the code in BUTTONS.PAS.
0/5 Rating (0 vote)
Is This Answer Correct?    0 Yes 0 No
Place Your Answer

Rate This Category:
0/5 Rating (0 vote)
Place Your Question



Top: Delphi Programming Interview Questions and Answers
Delphi Programming Interview Questions and Answers

Top Frequently Asked Delphi Question
Frequently Asked Delphi Job Interview Question


Top Frequently opened Computer Programming Job Interview categories
Most popular Computer Programming Job Interview categories

Comments About Delphi Programming Interview Questions and Answers

Share your valuable opinions, ideas and suggestions about Delphi Programming Interview Questions and Answers
While placing your comment your email address is required but won't be published any where else; Personal information will be kept confidential; we do not sell or release our respective visitors private information.
  1. Webmaster 23rd of May 2012

    Webmaster Said

    Tell us what you feel about Delphi Programming Interview Questions and Answers
    All comments will be published after review. No login or registration is required to post a comment on Delphi Programming Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
    So start sharing your thoughts regarding Delphi Programming Interview Questions and Answers
    Thank you.

Leave a Comment

Leave a Comment
  1.  Enter This Verification Code  Regenerate Verification Code  



Your reply will be added to the comment above (Below any other replies to this comment) -

Top Comments About: Delphi Programming Interview Questions and Answers
Comments on Delphi Programming Interview Questions and Answers

 
Top of Link batk to Delphi Programming Interview Questions and Answers
Link batk to Delphi Programming Interview Questions and Answers