Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hiding unwanted properties Pin
AlwiNus14-Apr-07 12:16
AlwiNus14-Apr-07 12:16 
AnswerRe: Hiding unwanted properties Pin
Tristan Rhodes16-Apr-07 3:31
Tristan Rhodes16-Apr-07 3:31 
Questionbarcode scanner Pin
SVb.net12-Apr-07 12:14
SVb.net12-Apr-07 12:14 
AnswerRe: barcode scanner Pin
Christian Graus12-Apr-07 12:21
protectorChristian Graus12-Apr-07 12:21 
AnswerRe: barcode scanner Pin
stancrm12-Apr-07 20:17
stancrm12-Apr-07 20:17 
GeneralRe: barcode scanner Pin
SVb.net15-Apr-07 2:29
SVb.net15-Apr-07 2:29 
QuestionConverting from byte[] to byte* Pin
Kim Ferrari12-Apr-07 10:15
Kim Ferrari12-Apr-07 10:15 
AnswerRe: Converting from byte[] to byte* Pin
George L. Jackson12-Apr-07 12:08
George L. Jackson12-Apr-07 12:08 
I believe you are using "fixed" in the wrong place. You can copy the array as you would normally do in normal C# coding. Then you pin the struct when you use it with the legacy code. Here is an example taken from Microsoft's .Net Framework documention on the C# key word "fixed":
using System;

class Point
{ 
    public int x, y; 
}

class FixedTest 
{
    // Unsafe method: takes a pointer to an int.
    unsafe static void SquarePtrParam (int* p) 
    {
        *p *= *p;
    }

    unsafe static void Main() 
    {
        Point pt = new Point();
        pt.x = 5;
        pt.y = 6;
        // Pin pt in place:
        fixed (int* p = &pt.x) 
        {
            SquarePtrParam (p);
        }
        // pt now unpinned
        Console.WriteLine ("{0} {1}", pt.x, pt.y);
    }
}




"We make a living by what we get, we make a life by what we give." --Winston Churchill

QuestionHow c# app connect to sql server on another pc in local network? Pin
sgeorgije12-Apr-07 9:28
sgeorgije12-Apr-07 9:28 
AnswerRe: How c# app connect to sql server on another pc in local network? Pin
Pete O'Hanlon12-Apr-07 10:10
mvePete O'Hanlon12-Apr-07 10:10 
QuestionRe: How c# app connect to sql server on another pc in local network? Pin
sgeorgije15-Apr-07 1:59
sgeorgije15-Apr-07 1:59 
AnswerRe: How c# app connect to sql server on another pc in local network? Pin
Pete O'Hanlon15-Apr-07 9:24
mvePete O'Hanlon15-Apr-07 9:24 
QuestionMargins on TabControl Tabs Pin
Tojiro12-Apr-07 9:21
Tojiro12-Apr-07 9:21 
Questionsave dialog Box Pin
EEmaan12-Apr-07 9:04
EEmaan12-Apr-07 9:04 
AnswerRe: save dialog Box Pin
Sathesh Sakthivel12-Apr-07 9:15
Sathesh Sakthivel12-Apr-07 9:15 
GeneralRe: save dialog Box Pin
EEmaan12-Apr-07 9:41
EEmaan12-Apr-07 9:41 
AnswerRe: save dialog Box Pin
J$12-Apr-07 10:55
J$12-Apr-07 10:55 
AnswerRe: save dialog Box Pin
Jaiprakash M Bankolli12-Apr-07 19:45
Jaiprakash M Bankolli12-Apr-07 19:45 
QuestionReplacing value in XML Pin
umashankergr812-Apr-07 8:57
umashankergr812-Apr-07 8:57 
AnswerRe: Replacing value in XML Pin
Sathesh Sakthivel12-Apr-07 9:13
Sathesh Sakthivel12-Apr-07 9:13 
GeneralRe: Replacing value in XML Pin
umashankergr812-Apr-07 9:22
umashankergr812-Apr-07 9:22 
AnswerRe: Replacing value in XML Pin
blackjack215012-Apr-07 9:26
blackjack215012-Apr-07 9:26 
GeneralReplacing value in XML Pin
umashankergr812-Apr-07 10:34
umashankergr812-Apr-07 10:34 
GeneralRe: Replacing value in XML Pin
Stefan Troschuetz12-Apr-07 11:23
Stefan Troschuetz12-Apr-07 11:23 
QuestionReplacing value in XML Pin
umashankergr812-Apr-07 8:55
umashankergr812-Apr-07 8:55 

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.