Click here to Skip to main content
15,917,968 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: C sharp Picturebox linking error Pin
OriginalGriff9-Nov-21 0:17
mveOriginalGriff9-Nov-21 0:17 
AnswerRe: C sharp Picturebox linking error Pin
Richard MacCutchan8-Nov-21 23:39
mveRichard MacCutchan8-Nov-21 23:39 
GeneralRe: C sharp Picturebox linking error Pin
ÖmürTokman9-Nov-21 0:13
ÖmürTokman9-Nov-21 0:13 
AnswerRe: C sharp Picturebox linking error Pin
Eddy Vluggen10-Nov-21 3:06
professionalEddy Vluggen10-Nov-21 3:06 
Questionwriting content of csv files into oracle Pin
md arif 20214-Nov-21 23:27
md arif 20214-Nov-21 23:27 
AnswerRe: writing content of csv files into oracle Pin
Richard MacCutchan5-Nov-21 0:34
mveRichard MacCutchan5-Nov-21 0:34 
AnswerRe: writing content of csv files into oracle Pin
OriginalGriff5-Nov-21 1:30
mveOriginalGriff5-Nov-21 1:30 
GeneralRe: writing content of csv files into oracle Pin
Richard MacCutchan5-Nov-21 2:09
mveRichard MacCutchan5-Nov-21 2:09 
QuestionDerived Treeview override not being called at all. Pin
pr1mem0ver4-Nov-21 3:47
pr1mem0ver4-Nov-21 3:47 
AnswerRe: Derived Treeview override not being called at all. Pin
Richard Deeming4-Nov-21 4:01
mveRichard Deeming4-Nov-21 4:01 
GeneralRe: Derived Treeview override not being called at all. Pin
primem0ver4-Nov-21 5:17
primem0ver4-Nov-21 5:17 
GeneralRe: Derived Treeview override not being called at all. Pin
Richard Deeming4-Nov-21 5:32
mveRichard Deeming4-Nov-21 5:32 
GeneralRe: Derived Treeview override not being called at all. Pin
primem0ver4-Nov-21 5:42
primem0ver4-Nov-21 5:42 

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.