MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    mirai-cpp】Cyan::MiraiBot没有成员SendMessageA

    HTTP API和第三方SDK
    3
    8
    692
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • xiling
      xiling last edited by

      一介学生,,目前只会cpp还很不精,这个实在弄不了了QAQ
      屏幕截图(151).png
      官方API是这么说的啊....(总不能根据报错把这个宏取消掉...?)
      如果有别的,在戳一戳事件发送消息的方法也可以........
      戳一戳事件的成员里是确实没有sendmessage相关的东西,不过看到它是可以取得发送人id的,所以想试试......
      大佬大佬QAQ 不知道上面给的信息全不全,但是拜托了——

      1 Reply Last reply Reply Quote 0
      • xiling
        xiling last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • xiling
          xiling last edited by

          上面那个删掉的回复请忽略........它又出来了

          1 Reply Last reply Reply Quote 0
          • xiling
            xiling last edited by

            8MBBUJ3[M_N@IS55]P70~K5.png ![L[NXE$P`VH9S1%IR_BMNNF.png
            又出了另一个问题,搜了半天,试了半天........我又不行了;;

            xiling 1 Reply Last reply Reply Quote 0
            • xiling
              xiling @xiling last edited by

              @xiling 我直接把头文件里的这个重载给删掉了,然后能运行了,,但头文件的这个地方可能是管编码转换的还是什么,,,出了很奇怪的bug,还是想解决一下这个问题.......有没有大佬,救命aaaaaaaaqaq

              1 Reply Last reply Reply Quote 0
              • StageGuard
                StageGuard last edited by

                去mirai-cpp的github仓库发个issue试试,可能sdk开发者没在这里

                xiling 1 Reply Last reply Reply Quote 0
                • xiling
                  xiling @StageGuard last edited by

                  @stageguard 啊这个问题一般的程序员大佬解决不了吗......打扰sdk开发者。。。。什么的,,呃、我自己再试试吧、、

                  1 Reply Last reply Reply Quote 0
                  • C
                    cyanray last edited by

                    你直接或者间接引用了 windows.h (比如你引用了 httplib 这个库)
                    在所有 #include 最下面加
                    #ifdef SendMessage
                    #undef SendMessage

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact