Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows xp unable to locate the program input point in msvcrt.dll 无法定位程序输入点于msvcrt.dll #29

Closed
itas109 opened this issue May 30, 2020 · 3 comments
Labels

Comments

@itas109
Copy link
Owner

itas109 commented May 30, 2020

Describe the bug

_itoa_s Unable to locate the program input point in the dynamic link library msvcrt.dll
_swprintf_s Unable to locate the program input point in the dynamic link library msvcrt.dll

_itoa_s 无法定位程序输入点于动态链接库msvcrt.dll
_swprintf_s无法定位程序输入点于动态链接库msvcrt.dll

Desktop (please complete the following information):

  • OS: windows xp
  • Compiler: QT 5.6.3 mingw492_32
  • Version: 4.0.3.200429
@itas109 itas109 added the bug label May 30, 2020
itas109 added a commit that referenced this issue May 30, 2020
@itas109
Copy link
Owner Author

itas109 commented May 30, 2020

search keys : xp procedure entry point msvcrt.dll

经过测试:

vs2013_xp 可以正常运行
mingw492_32 有问题

解决方案:

  • 使用vs编译
  • 不使用 *_s的安全函数(_itoa_s => _itoa)

@itas109
Copy link
Owner Author

itas109 commented May 30, 2020

void init(int port, int baudRate, itas109::Parity parity, itas109::DataBits dataBits, itas109::StopBits stopbits, itas109::FlowControl flowControl, int64 readBufferSize) ;

串口的标准参数是字符串,int参数只是方便使用。
同时,windows下串口名称命名规则为COMxx,但是在linux中并没有明确的命名规则。
因此,串口号为int的初始化函数存在的意义不大。

@itas109
Copy link
Owner Author

itas109 commented Jun 6, 2020

移除函数
void init(int port, int baudRate, itas109::Parity parity, itas109::DataBits dataBits, itas109::StopBits stopbits, itas109::FlowControl flowControl, int64 readBufferSize) ;

@itas109 itas109 closed this as completed Jun 6, 2020
itas109 added a commit that referenced this issue Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant