Home > Software engineering >  Win32 DLL extern map variable data storage problem
Win32 DLL extern map variable data storage problem

Time:09-26

I wrote a win32 DLL procedures, declarations, and defines an extern map global variables, using the export function to write the map variable values, external program each call to export function to insert a value each time, the department to read the map variable inside the DLL, found that only a value, regardless of the external program through the export function to write how much value in the map, this is how to return a responsibility excuse me

CodePudding user response:

The map does not achieve the purpose of sharing,

CodePudding user response:

It is recommended to use the export interface insert data, management and processing map within a DLL

CodePudding user response:

reference 1st floor oyljerry response:
this map does not achieve the purpose of sharing,


It should be said that the data is not stored in the map, to the normal inside the DLL cannot handle the data

CodePudding user response:

refer to the second floor zgl7903 response:
recommended export interface insert data, management and processing within a DLL map


Yes, I am using the export function to write the data map, but inside the DLL can only be read into a data, feeling every time before inserting data map data have been emptied

CodePudding user response:

Insert the data interface to set breakpoints in the function, test and operation, insert data after setting a breakpoint, monitor map _Size, look at what time is the modified

CodePudding user response:

reference 5 floor zgl7903 reply:
insert data set breakpoints in the interface function, test and operation, insert data after setting a breakpoint, monitor map _Size, look at what time is the modified

To have a look. Before each insertion, the size of 0 odd, DLL any default rules?

CodePudding user response:

refer to 6th floor u010137031 response:
Quote: refer to the fifth floor zgl7903 reply:

Insert the data interface to set breakpoints in the function, test and operation, insert data after setting a breakpoint, monitor map _Size, look at what time is the modified

To have a look. Before each insertion, the size of 0 odd, DLL any default rules?

The map should be put a Shared data segment
  • Related