gpt4 book ai didi

c# - Windows Phone 二维码阅读器

转载 作者:太空狗 更新时间:2023-10-30 01:04:46 24 4
gpt4 key购买 nike

我正在开发 Windows Phone 应用程序,我需要一个简单的二维码阅读器。我正在关注 a tutorial .

我都做了,现在我必须补充

private PhotoCamera camera;

但是总是出现这个错误:

The type or namespace name 'PhotoCamera' could not be found (are you missing a using directive or an assembly reference?)

为什么会出现此错误?

最佳答案

确保你添加使用:

using Microsoft.Devices;

因为 PhotoCamera 类可从 Microsoft.Devices 命名空间获得。否则你需要使用完全限定的类名:

private Microsoft.Devices.PhotoCamera camera;

关于c# - Windows Phone 二维码阅读器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21781298/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com