Global variable assignments inconsistent #2718
-
Global variable assignments inconsistent. Please tell me where is wrong? I add a global variable at src/platform/custom_define.c Assignments at tools/sample/sample.c::RunServer() It has compiled properly, start quicsample server, a client has connected, but printf is unexpected.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The only APIs exposed are from the function table. Since MsQuic is built into a DLL, global variables will not be exposed outside of the DLL, and assigning in sample.c will not update the variable inside MsQuic itself. |
Beta Was this translation helpful? Give feedback.
The only APIs exposed are from the function table. Since MsQuic is built into a DLL, global variables will not be exposed outside of the DLL, and assigning in sample.c will not update the variable inside MsQuic itself.