Click here to Skip to main content
15,908,112 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRichTextBox.Rtf property Pin
Sreepathi25-Feb-04 9:46
Sreepathi25-Feb-04 9:46 
GeneralRe: RichTextBox.Rtf property Pin
Mazdak26-Feb-04 4:43
Mazdak26-Feb-04 4:43 
GeneralRe: RichTextBox.Rtf property Pin
Sreepathi26-Feb-04 6:26
Sreepathi26-Feb-04 6:26 
GeneralRe: RichTextBox.Rtf property Pin
Bernd Stottmeister27-Feb-04 1:20
Bernd Stottmeister27-Feb-04 1:20 
GeneralRe: RichTextBox.Rtf property Pin
Sreepathi29-Feb-04 17:17
Sreepathi29-Feb-04 17:17 
GeneralCS0234 Pin
Bernd Stottmeister23-Feb-04 20:46
Bernd Stottmeister23-Feb-04 20:46 
QuestionPermission for socket from remote machine? Pin
Dilys23-Feb-04 12:31
Dilys23-Feb-04 12:31 
GeneralP/Invoke blues: htons & htonl issue Pin
Chen Venkataraman23-Feb-04 4:41
Chen Venkataraman23-Feb-04 4:41 
Ran into this while trying to interoperate with an existing socket based server...

i need to construct a buffer that contains mixture of strings & ints - the shorts/ints are stored in network byte order. So, i came with the following P/Invoke declaration in C#.

<br />
        #region P/Invoke stuff<br />
	[DllImport("ws2_32.dll")]<br />
	private static extern short htons(short value);<br />
<br />
	[DllImport("ws2_32.dll")]<br />
	private static extern long htonl(short long);<br />
	#endregion<br />


Unfortunately, the compiler barfs - says "expected class, delegate, enum, interface or struct". It looks like it doesn't like the return value specified as short or int. They are blittable types & i'm not sure what it doesn't like about them. Any pointers? TIA




Chen Venkataraman
GeneralRe: P/Invoke blues: htons &amp; htonl issue Pin
Chen Venkataraman23-Feb-04 4:43
Chen Venkataraman23-Feb-04 4:43 
GeneralRe: P/Invoke blues: htons & htonl issue Pin
Russell Morris27-Feb-04 8:00
Russell Morris27-Feb-04 8:00 
GeneralRe: P/Invoke blues: htons &amp; htonl issue Pin
Chen Venkataraman27-Feb-04 8:16
Chen Venkataraman27-Feb-04 8:16 
Generaldatagrid, calendar and databinding games... Pin
guim723-Feb-04 4:17
guim723-Feb-04 4:17 
GeneralRe: datagrid, calendar and databinding games... Pin
guim726-Feb-04 21:35
guim726-Feb-04 21:35 
GeneralCOM Interop Pin
jamie__smith23-Feb-04 0:57
jamie__smith23-Feb-04 0:57 
GeneralRe: COM Interop Pin
Matt Philmon23-Feb-04 4:01
Matt Philmon23-Feb-04 4:01 
GeneralRe: COM Interop Pin
Ernst Kuschke4-Mar-04 5:09
Ernst Kuschke4-Mar-04 5:09 
QuestionNMake ?? Pin
Maharishi Bhatia22-Feb-04 17:58
Maharishi Bhatia22-Feb-04 17:58 
AnswerRe: NMake ?? Pin
ian mariano26-Feb-04 1:32
ian mariano26-Feb-04 1:32 
GeneralWindow Location, Multiple Monitor Pin
Matt Philmon20-Feb-04 19:46
Matt Philmon20-Feb-04 19:46 
GeneralRe: Window Location, Multiple Monitor Pin
apferreira26-Feb-04 7:47
apferreira26-Feb-04 7:47 
Questionhow to access web service with SSL from windows application (C#)? Pin
zhyluopro20-Feb-04 13:14
zhyluopro20-Feb-04 13:14 
GeneralTypecast a control Pin
john4620-Feb-04 5:27
john4620-Feb-04 5:27 
GeneralRe: Typecast a control Pin
Judah Gabriel Himango20-Feb-04 6:11
sponsorJudah Gabriel Himango20-Feb-04 6:11 
GeneralRe: Typecast a control Pin
Judah Gabriel Himango20-Feb-04 7:17
sponsorJudah Gabriel Himango20-Feb-04 7:17 
GeneralRe: Typecast a control Pin
john4620-Feb-04 9:29
john4620-Feb-04 9:29 

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.