Click here to Skip to main content
15,898,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting a char array containing ASCII values to Unicode string Pin
jayshml13-Feb-06 1:30
jayshml13-Feb-06 1:30 
AnswerRe: Converting a char array containing ASCII values to Unicode string Pin
Guffa13-Feb-06 4:37
Guffa13-Feb-06 4:37 
Questionhow to set datagrid property in form1 from other forms Pin
hdv21212-Feb-06 23:03
hdv21212-Feb-06 23:03 
AnswerRe: how to set datagrid property in form1 from other forms Pin
iashishi13-Feb-06 18:05
iashishi13-Feb-06 18:05 
QuestionAuto update msde Pin
JacquesDP12-Feb-06 22:30
JacquesDP12-Feb-06 22:30 
AnswerRe: Auto update msde Pin
leppie12-Feb-06 23:07
leppie12-Feb-06 23:07 
QuestionBSTR to c# string Pin
iashishi12-Feb-06 21:07
iashishi12-Feb-06 21:07 
AnswerRe: BSTR to c# string Pin
Tulika Shrivastava12-Feb-06 22:30
Tulika Shrivastava12-Feb-06 22:30 
GeneralRe: BSTR to c# string Pin
iashishi12-Feb-06 23:14
iashishi12-Feb-06 23:14 
AnswerRe: BSTR to c# string Pin
StealthyMark14-Feb-06 6:03
StealthyMark14-Feb-06 6:03 
GeneralRe: BSTR to c# string Pin
iashishi16-Feb-06 22:02
iashishi16-Feb-06 22:02 
QuestionSearch for File Content Pin
truongminhdao12-Feb-06 21:01
truongminhdao12-Feb-06 21:01 
AnswerRe: Search for File Content Pin
leppie12-Feb-06 21:04
leppie12-Feb-06 21:04 
GeneralRe: Search for File Content Pin
mai_thinh12-Feb-06 23:47
mai_thinh12-Feb-06 23:47 
QuestionMark MSHTML document hosted by WebBrowser as SAVED? Pin
babyprez12-Feb-06 20:48
babyprez12-Feb-06 20:48 
QuestionMnemonic Pin
Talktorajeev12-Feb-06 20:11
Talktorajeev12-Feb-06 20:11 
AnswerRe: Mnemonic Pin
Colin Angus Mackay12-Feb-06 20:23
Colin Angus Mackay12-Feb-06 20:23 
AnswerRe: Mnemonic Pin
leppie12-Feb-06 21:02
leppie12-Feb-06 21:02 
GeneralRe: Mnemonic Pin
Talktorajeev12-Feb-06 22:08
Talktorajeev12-Feb-06 22:08 
QuestionPropertyValueChanged Event not raised in Collection Editor of property Grid Pin
Tulika Shrivastava12-Feb-06 20:03
Tulika Shrivastava12-Feb-06 20:03 
AnswerRe: PropertyValueChanged Event not raised in Collection Editor of property Grid Pin
Kodanda Pani12-Feb-06 22:40
Kodanda Pani12-Feb-06 22:40 
QuestionConvert MFC Fonts to c# Fonts Pin
Tulika Shrivastava12-Feb-06 20:01
Tulika Shrivastava12-Feb-06 20:01 
AnswerRe: Convert MFC Fonts to c# Fonts Pin
Colin Angus Mackay12-Feb-06 20:19
Colin Angus Mackay12-Feb-06 20:19 
GeneralRe: Convert MFC Fonts to c# Fonts Pin
Tulika Shrivastava12-Feb-06 21:35
Tulika Shrivastava12-Feb-06 21:35 
hi,
The information about the font is stored in the follwing format:
1. LoByte (Point size for Font)
2. LoByte (Point size for Font)
3. LoByte(LoWord(Height))
4. HiByte(LoWord(Height))
5. LoByte(HiWord(Height))
6. HiByte(HiWord(Height))
7. LoByte(LoWord(Width))
8. HiByte(LoWord(Width))
9. LoByte(HiWord(Width))
10. HiByte(HiWord(Width))
11. LoByte(LoWord(Escapement))
12. HiByte(LoWord(Escapement))
13. LoByte(HiWord(Escapement))
14. HiByte(HiWord(Escapement))
15. LoByte(LoWord(Orientation))
16. HiByte(LoWord(Orientation))
17. LoByte(HiWord(Orientation))
18. HiByte(HiWord(Orientation))
19. LoByte(LoWord(Weight))
20. HiByte(LoWord(Weight))
21. LoByte(HiWord(Weight))
22. HiByte(HiWord(Weight))
23. Italic(byte)
24. Underline(byte)
25. StrikeOut(byte)
26. CharSet(byte)
27. OutPrecision(byte)
28. ClipPrecision(byte)
29. Quality (byte)
30. PitchAndFamily(byte)
31. Length of face name (L)
For Length L following 2 bytes will be repeated
1. LoByte (character of face name)
2. HiByte (character of face name)

Here the first inforation i.e.Point size for Font is the value which we get from the
CFontDialog::GetSize()
function and the rest of the information are the the parameters of the CFont::CreateFont( int nHeight, int nWidth, int nEscapement, int nOrientation, int nWeight, BYTE bItalic, BYTE bUnderline, BYTE cStrikeOut, BYTE nCharSet, BYTE nOutPrecision, BYTE nClipPrecision, BYTE nQuality, BYTE nPitchAndFamily, LPCTSTR lpszFacename ).
I am not able to map all these parameters to their corresponding c# values and thus cant open the application developed using the previous version( MFC ) and see the fonts properly.Any suggetions???

-- modified at 4:33 Monday 13th February, 2006
QuestionDisplaying data from text file to dataset Pin
mitreviper12-Feb-06 19:37
mitreviper12-Feb-06 19:37 

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.