Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: Output to MS Word using C# Pin
Eric Gunnerson (msft)2-Nov-01 6:15
Eric Gunnerson (msft)2-Nov-01 6:15 
GeneralCOM server in .Net Pin
Christian B30-Oct-01 1:58
Christian B30-Oct-01 1:58 
GeneralRe: COM server in .Net Pin
Nish Nishant1-Nov-01 13:56
sitebuilderNish Nishant1-Nov-01 13:56 
GeneralRe: COM server in .Net Pin
Christian B2-Nov-01 0:49
Christian B2-Nov-01 0:49 
Generalabout mdi child window Pin
aner_glx28-Oct-01 17:20
aner_glx28-Oct-01 17:20 
Questionhow do u convert a char to an int? Pin
25-Oct-01 19:00
suss25-Oct-01 19:00 
AnswerRe: how do u convert a char to an int? Pin
Christian Graus25-Oct-01 19:05
protectorChristian Graus25-Oct-01 19:05 
AnswerRe: how do u convert a char to an int? Pin
Xian29-Oct-01 7:45
Xian29-Oct-01 7:45 
Ok, it depends on what you want to do though. Are you talking about having a character such as '4' which you want the value 4? Or are you talking about what the Graus-man said and want the ASCII value of the character?

Here is an example:
#include <stdio.h>
#include <stdlib.h>

void main( void )
{
  char c = 'A';
  char d = '4';
  int i = 0;

  printf( "Character '%c' is %d in ascii.\n", c, c );
  printf( "Character '%c' is %d in ascii.\n", d, d );
  printf( "Character '%c' is %d as an integer.\n", d, atoi( &d ) );
}


That yields the output :
Character 'A' is 65 in ascii.
Character '4' is 52 in ascii.
Character '4' is 4 as an integer.


I hope that helps you out!

----
Xian - www.hollowmedia.net
AnswerRe: how do u convert a char to an int? Pin
Carlos Antollini29-Oct-01 7:56
Carlos Antollini29-Oct-01 7:56 
QuestionCan .NET do this? Pin
billb211225-Oct-01 4:25
billb211225-Oct-01 4:25 
AnswerRe: Can .NET do this? Pin
Colin Bowern29-Oct-01 18:22
Colin Bowern29-Oct-01 18:22 
GeneralCommercial Application Development in .NET Pin
Stormwind24-Oct-01 4:03
Stormwind24-Oct-01 4:03 
GeneralRe: Commercial Application Development in .NET Pin
Rassman1-Nov-01 4:26
Rassman1-Nov-01 4:26 
QuestionChanging a control border color? Pin
23-Oct-01 12:53
suss23-Oct-01 12:53 
GeneralDrawing a drag rectangle -- pls help. Pin
23-Oct-01 12:50
suss23-Oct-01 12:50 
GeneralRe: Drawing a drag rectangle -- pls help. Pin
25-Oct-01 22:43
suss25-Oct-01 22:43 
Generalhelp me pls~~ Pin
22-Oct-01 1:12
suss22-Oct-01 1:12 
GeneralRe: help me pls~~ Pin
Bernhard22-Oct-01 4:09
Bernhard22-Oct-01 4:09 
QuestionHow to get disk label? Pin
21-Oct-01 22:10
suss21-Oct-01 22:10 
Question:confused: Why do the Docking not work? Pin
aner_glx17-Oct-01 9:35
aner_glx17-Oct-01 9:35 
AnswerRe: :confused: Why do the Docking not work? Pin
22-Oct-01 1:06
suss22-Oct-01 1:06 
GeneralRe: :confused: Why do the Docking not work? Pin
aner_glx23-Oct-01 13:36
aner_glx23-Oct-01 13:36 
GeneralLPVoid and Beta2 Pin
A.A.16-Oct-01 10:54
A.A.16-Oct-01 10:54 
GeneralRe: LPVoid and Beta2 Pin
Eric Gunnerson (msft)17-Oct-01 9:54
Eric Gunnerson (msft)17-Oct-01 9:54 
GeneralRe: LPVoid and Beta2 Pin
A.A.19-Oct-01 15:30
A.A.19-Oct-01 15:30 

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.