0 关注者 · 1 帖子

C++ 是一种通用编程语言。它具有命令式、面向对象的通用编程特性,同时还提供了用于低级内存操作的工具

了解更多信息

文章 Jingwei Wang · 九月 16, 2022 3m read

连接前准备:

  1. C++ 开发环境
  2. InterSystems ODBC 驱动 (ODBC 驱动会随InterSystems IRIS安装包自动安装在服务器中)
  3. Connection String

步骤:

  1. Connection String:其中#include 用来导入需要使用的libraries,"Driver=InterSystems IRIS ODBC35;Host=localhost;Port=1972;Database=USER;UID=SQLAdmin;PWD=deployment-password;\0";是connection string。
    #ifdef WIN32
    #include <windows.h>
    #endif
    #include <sqlext.h>
    #ifdef UNICODE
    #include <sqlucode.h>
    #endif
    #include <stdio.h>
    
    int main()
    {
               RETCODE rc;                                        /* Return code for ODBC functions */
               HENV henv = NULL;                  /* Envir
0
0 272