将DATE转换为BSTR [英] Convert DATE to BSTR

查看:106
本文介绍了将DATE转换为BSTR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何生成包含DATE类型变量信息的BSTR?您能否提供一些示例C ++代码?我正在从VB客户端调用我的* .dll.

How can I produce a BSTR that contains the info from a DATE type variable? Could you provide some example C++ code? I''m calling my *.dll from a VB client.

推荐答案

使用
Use one of the date/time converters[^] (or a simple sprintf()) that creates a string from the value you have.


这篇关于将DATE转换为BSTR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆