小编cub*_*oft的帖子

最好的C++ RTP/RTSP库

我正在寻找C++中的RTP/RTSP库.我找到了pjsip,但它更像C风格.我正在寻找更多的OO库.

c++ udp sip rtp rtsp

33
推荐指数
2
解决办法
8万
查看次数

JAXB XJC代码生成 - Marshaller生成的xml中缺少"schemaLocation"

我使用XJC工具为我的XSD架构生成Java类.当我使用JAXB Marshaller将类编组到XML有效负载中时,我在输出XML中缺少"schemaLocation"参数,但我在xsd文件中声明了此参数.如何在输出XML中强制执行"schemaLocation"参数?

下面是用于代码生成的xsd模式文件的开始:

<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="xsdns" xmlns:messages="http://www.exampleURI.com/Schema1" xmlns:datatypes="http://www.exampleURI.com/Schema1" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.exampleURI.com/Schema1 ./messages.xsd" targetNamespace="http://www.exampleURI.com/Schema1" elementFormDefault="unqualified" version="true">
<xs:include schemaLocation="datatypes.xsd"/>
<xs:complexType name="execute-system-command-struct">
    <xs:annotation>
        <xs:documentation>The request for system command execution.</xs:documentation>
    </xs:annotation>
    <xs:sequence/>
    <xs:attribute name="action" type="datatypes:system-action-kind-enum" use="required">
        <xs:annotation>
            <xs:documentation>The action that the Voice System has to proceed.</xs:documentation>
        </xs:annotation>
    </xs:attribute>
Run Code Online (Sandbox Code Playgroud)

问候

java xml xsd jaxb xjc

19
推荐指数
1
解决办法
2万
查看次数

visual studio 2008 C++没有x64平台

我在Windows 7 x64笔记本电脑上安装了Visual Studio 2008并安装了Service Pack 1.

现在我想将x64平台添加到我的C++解决方案中.但是我的项目的配置管理器中没有可用的x64平台.我确定在Visual Studio安装过程中手动选择了x64支持并且已安装.

我的设置有什么问题?

c++ 64-bit visual-studio-2008 visual-studio windows-7-x64

17
推荐指数
3
解决办法
2万
查看次数

POCO C++ - NET SSL - 如何发布HTTPS请求

如何正确执行POST到HTTPS服务器并正确嵌入登录数据.下面的代码不会返回任何cookie(在Wininet中它会).我想知道POCO HTTP库如何处理HTTP重定向?

MyApp()
{
    try
    {
        const Poco::URI uri( "https://localhost.com" );
        const Poco::Net::Context::Ptr context( new Poco::Net::Context( Poco::Net::Context::CLIENT_USE, "", "", "rootcert.pem" ) );
        Poco::Net::HTTPSClientSession session(uri.getHost(), uri.getPort(), context );
        Poco::Net::HTTPRequest req(Poco::Net::HTTPRequest::HTTP_POST, "/login.php" );
        req.setContentType("Content-Type: application/x-www-form-urlencoded\r\n");
        req.setKeepAlive(true);

        std::string reqBody("username=???&password=???&action_login=Log+In\r\n\r\n");
        req.setContentLength( reqBody.length() );

        //Poco::Net::HTTPBasicCredentials cred("???", "???");
        //cred.authenticate(req);
        session.sendRequest(req) << reqBody;
        Poco::Net::HTTPResponse res;
        std::istream& rs = session.receiveResponse(res);
        std::string resp;

        std::vector<Poco::Net::HTTPCookie> cookies;
        res.getCookies( cookies );
    }
    catch( const Poco::Net::SSLException& e )
    {
        std::cerr << e.what() << ": " << e.message() << std::endl;
    }
    catch( const std::exception& …
Run Code Online (Sandbox Code Playgroud)

c++ https post http poco-libraries

12
推荐指数
1
解决办法
2万
查看次数

VS 2008 Professional,智能设备.NET C#项目 - 慢速构建

我有VS 2008 Professional和Smart Device .NET C#项目.我总共有~100个cs文件.构建需要很长时间,我必须等待链接器约.每次编译项目时都需要1分钟(60秒).我有Core i3,4GB RAM,7200rpm磁盘.

是什么导致这种情况以及如何优化构建?任何Visual Studio选项?

.net c# compilation windows-mobile visual-studio

12
推荐指数
2
解决办法
1万
查看次数

android listview在gmail应用中滑动删除

当项目的滑动效果删除时,显示如何在gmail APP中实现ListView?我已经尝试使用ViewPager作为ListView元素,但这不起作用.

谢谢

android listview swipe-gesture android-viewpager

9
推荐指数
1
解决办法
3万
查看次数

android获取视频缩略图PATH,而不是Bitmap

是否可以获取视频缩略图PATH,而不是Bitmap对象本身?我知道方法

MediaStore.Images.Thumbnails.queryMiniThumbnail
Run Code Online (Sandbox Code Playgroud)

但由于我使用自己的Bitmap缓存机制,我希望获得视频缩略图的路径而不是Bitmap对象本身.此方法返回Bitmap对象,而不是path.谢谢

java eclipse android thumbnails

8
推荐指数
1
解决办法
8679
查看次数

如何在OrmLite中创建sqlite预处理语句?

是否可以在OrmLite中创建一个sqlite预处理语句?如果是这样,如何绑定可能在不同查询之间更改的查询值.

java sqlite android ormlite

8
推荐指数
1
解决办法
3920
查看次数

.NET紧凑框架 - 检测是否在模拟器下?

有没有办法从.NET CF代码检测我们是在仿真器还是真实设备上运行?

谢谢Dominik

.net c# compact-framework device-emulation

7
推荐指数
1
解决办法
1596
查看次数

android MultiAutoCompleteTextView - 在其中显示自定义视图

我正在使用电子邮件联系人建议实现MultiAutoCompleteTextView.我想要的是在MultiAutoCompleteTextView内容而不是字符串中显示联系人徽章.Gmail Android应用程序可以做到这一点.基本上我想要在输入/选择联系人后在MultiAutoCompleteTextView(联系人照片,姓名和电子邮件)中显示的下拉列表中显示的内容.可能吗?

SSchot

java android autosuggest android-edittext

6
推荐指数
1
解决办法
877
查看次数