Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
QuestionRe: List-box item of PropertyGrid in C# could showing only once Pin
Eddy Vluggen30-Nov-21 7:59
professionalEddy Vluggen30-Nov-21 7:59 
QuestionI want to make 2 Process Synchronization in C# with Mutex Pin
Bharat Bodage24-Nov-21 20:17
Bharat Bodage24-Nov-21 20:17 
AnswerRe: I want to make 2 Process Synchronization in C# with Mutex Pin
OriginalGriff24-Nov-21 21:04
mveOriginalGriff24-Nov-21 21:04 
AnswerRe: I want to make 2 Process Synchronization in C# with Mutex Pin
Richard Deeming24-Nov-21 21:31
mveRichard Deeming24-Nov-21 21:31 
QuestionSource of Integral Calculation Program Using Random Numbers Generation (Kaufman) Pin
Anvar Vaezi23-Nov-21 1:40
Anvar Vaezi23-Nov-21 1:40 
AnswerRe: Source of Integral Calculation Program Using Random Numbers Generation (Kaufman) Pin
OriginalGriff23-Nov-21 3:21
mveOriginalGriff23-Nov-21 3:21 
QuestionFinding Lost Handle Pin
michaelbarb22-Nov-21 8:33
michaelbarb22-Nov-21 8:33 
AnswerRe: Finding Lost Handle Pin
Gerry Schmitz22-Nov-21 9:17
mveGerry Schmitz22-Nov-21 9:17 
QuestionC# How to use place holder in string variable Pin
Mou_kol18-Nov-21 5:34
Mou_kol18-Nov-21 5:34 
AnswerRe: C# How to use place holder in string variable Pin
Mou_kol18-Nov-21 5:53
Mou_kol18-Nov-21 5:53 
AnswerRe: C# How to use place holder in string variable Pin
phil.o18-Nov-21 12:33
professionalphil.o18-Nov-21 12:33 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol19-Nov-21 4:03
Mou_kol19-Nov-21 4:03 
AnswerRe: C# How to use place holder in string variable Pin
BillWoodruff19-Nov-21 17:00
professionalBillWoodruff19-Nov-21 17:00 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol16-Dec-21 6:31
Mou_kol16-Dec-21 6:31 
GeneralRe: C# How to use place holder in string variable Pin
Mou_kol16-Dec-21 6:32
Mou_kol16-Dec-21 6:32 
QuestionAsp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 4:43
Sai Kumar18-Nov-21 4:43 
AnswerRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Richard Deeming18-Nov-21 4:47
mveRichard Deeming18-Nov-21 4:47 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 5:06
Sai Kumar18-Nov-21 5:06 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Richard Deeming18-Nov-21 5:24
mveRichard Deeming18-Nov-21 5:24 
GeneralRe: Asp.net web api(GET) to pull the records(8 lac records) Pin
Sai Kumar18-Nov-21 5:38
Sai Kumar18-Nov-21 5:38 
QuestionTrouble using Canon's EDSDK in VS on mac Pin
Member 1543145718-Nov-21 4:19
Member 1543145718-Nov-21 4:19 
I am trying to communicate with a EOS Rebel T7 on mac, but haven't had any luck.
I downloaded the latest version of the SDK, but could not test the Objective-C sample because I don't (can't yet) have Xcode on my computer.

I found this C# project to be instructive. Ultimately I was able to get the following C# code to compile without errors:

C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using EOSDigital.API;
using EOSDigital.SDK;

namespace ConsoleExample
{
    class Program
    {
        static CanonAPI APIHandler;
        static Camera MainCamera;
        static string ImageSaveDirectory;
        static bool Error = false;
        static ManualResetEvent WaitEvent = new ManualResetEvent(false);

        static void Main(string[] args)
        {
            CanonSDK.InitializeVersion();

            IntPtr camPtrList;
            CanonSDK.EdsGetCameraList(out camPtrList);

            int camCount;
            CanonSDK.EdsGetChildCount(camPtrList, out camCount);
            Console.WriteLine(camCount + " cameras found.");
        }
    }
}


However, I end up with camCount==0; "0 cameras found". I thought this might be because the EOS Utility (which opens automatically when plugging in the camera) is occupying the necessary resources, however I tried uninstalling EOS Utility and this did not help.

Can anyone provide a simple example that I can test (that doesn't require Xcode) in VS or VScode? Any help or advice would be much appreciated. Thank you!

PS: Figuring out how to compile in VS on mac was a struggle as I am unfamiliar with both, so I'm open to any suggestions for other IDEs/compilers/languages if it will make using EDSDK easier.
AnswerRe: Trouble using Canon's EDSDK in VS on mac Pin
Luc Pattyn18-Nov-21 4:55
sitebuilderLuc Pattyn18-Nov-21 4:55 
QuestionC sharp Picturebox linking error Pin
ÖmürTokman8-Nov-21 23:05
ÖmürTokman8-Nov-21 23:05 
AnswerRe: C sharp Picturebox linking error Pin
OriginalGriff8-Nov-21 23:27
mveOriginalGriff8-Nov-21 23:27 
GeneralRe: C sharp Picturebox linking error Pin
ÖmürTokman9-Nov-21 0:09
ÖmürTokman9-Nov-21 0:09 

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.