Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#.Net Pin
Aditya Baraya18-Mar-08 22:55
Aditya Baraya18-Mar-08 22:55 
GeneralRe: C#.Net Pin
Christian Graus18-Mar-08 13:10
protectorChristian Graus18-Mar-08 13:10 
JokeRe: C#.Net Pin
Anthony Mushrow18-Mar-08 15:56
professionalAnthony Mushrow18-Mar-08 15:56 
GeneralMicrosoft CRM 3.0 SDK Problem. Pin
hdv21218-Mar-08 6:54
hdv21218-Mar-08 6:54 
GeneralCreate an ActiveX (or equivalent) usable within the compact framework Pin
Olivier Sannier18-Mar-08 6:24
Olivier Sannier18-Mar-08 6:24 
GeneralRe: Create an ActiveX (or equivalent) usable within the compact framework Pin
Not Active18-Mar-08 6:30
mentorNot Active18-Mar-08 6:30 
GeneralRe: Create an ActiveX (or equivalent) usable within the compact framework Pin
Olivier Sannier18-Mar-08 6:33
Olivier Sannier18-Mar-08 6:33 
QuestionMarshal Unmanaged Type by ByValArray Pin
sthaas18-Mar-08 5:55
sthaas18-Mar-08 5:55 
I am not sure how to handle this and could not find a good example or information on how to do this... I am stuck with how to handle outPropertyDesc. Trying to detrmine the AE_Mode camera is set to which I know is (public const uint AEMode_Manual = 3). I have tried several things and just do not know if I am close or just way off. I appreciate any help...Confused | :confused:

I have the following:
[DllImport("EDSDK.dll")]
public extern static uint EdsGetPropertyDesc(IntPtr inRef, uint inPropertyID,
out EdsPropertyDesc outPropertyDesc);


[StructLayout(LayoutKind.Sequential)]
public struct EdsPropertyDesc
{
public int Form;// Int32 reserved always 0
public uint Access; // reserved always 0 (see below)
public int NumElements; //Int32[] a property data array. The meaning varies depending on the property type

[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
public int[] PropDesc;
}

//
public enum Access : uint
{
Read = 0,
Write,
ReadWrite,
Error = 0xFFFFFFFF,
}

// AEMODE
public const uint AEMode_Program = 0;
public const uint AEMode_Tv = 1;
public const uint AEMode_Av = 2;
public const uint AEMode_Manual = 3;
public const uint AEMode_Bulb = 4;
public const uint AEMode_A_DEP = 5;
public const uint AEMode_DEP = 6;
public const uint AEMode_Custom = 7;
public const uint AEMode_Lock = 8;
public const uint AEMode_Green = 9;
public const uint AEMode_NigntPortrait = 10;
public const uint AEMode_Sports = 11;
public const uint AEMode_Portrait = 12;
public const uint AEMode_Landscape = 13;
public const uint AEMode_Closeup = 14;
public const uint AEMode_FlashOff = 15;
public const uint AEMode_Unknown = 0xffffffff;
QuestiondateChangedEvent??? Pin
Harvey Saayman18-Mar-08 4:51
Harvey Saayman18-Mar-08 4:51 
AnswerRe: dateChangedEvent??? Pin
Rob Philpott18-Mar-08 4:57
Rob Philpott18-Mar-08 4:57 
GeneralRe: dateChangedEvent??? Pin
Harvey Saayman18-Mar-08 5:08
Harvey Saayman18-Mar-08 5:08 
GeneralRe: dateChangedEvent??? Pin
phannon8618-Mar-08 5:13
professionalphannon8618-Mar-08 5:13 
AnswerRe: dateChangedEvent??? Pin
Rob Philpott18-Mar-08 5:01
Rob Philpott18-Mar-08 5:01 
AnswerRe: dateChangedEvent??? Pin
led mike18-Mar-08 5:23
led mike18-Mar-08 5:23 
GeneralTernary Operator Question Pin
dboy22118-Mar-08 4:33
dboy22118-Mar-08 4:33 
GeneralRe: Ternary Operator Question Pin
PIEBALDconsult18-Mar-08 5:12
mvePIEBALDconsult18-Mar-08 5:12 
GeneralRe: Ternary Operator Question Pin
dboy22119-Mar-08 2:45
dboy22119-Mar-08 2:45 
GeneralRe: Ternary Operator Question Pin
dboy22119-Mar-08 3:37
dboy22119-Mar-08 3:37 
GeneralRe: Ternary Operator Question Pin
dboy22119-Mar-08 5:21
dboy22119-Mar-08 5:21 
GeneralRe: Ternary Operator Question Pin
dboy22119-Mar-08 5:44
dboy22119-Mar-08 5:44 
Generalscale in the graph Pin
ciacia18-Mar-08 4:12
ciacia18-Mar-08 4:12 
GeneralRe: scale in the graph Pin
Ennis Ray Lynch, Jr.18-Mar-08 8:29
Ennis Ray Lynch, Jr.18-Mar-08 8:29 
GeneralRe: scale in the graph Pin
ciacia18-Mar-08 16:18
ciacia18-Mar-08 16:18 
GeneralProblem with Fax in C# Pin
arslanjatt18-Mar-08 4:08
arslanjatt18-Mar-08 4:08 
GeneralConfiguration settings of a dll Pin
mukkanti00718-Mar-08 3:47
mukkanti00718-Mar-08 3:47 

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.