Hello from Argentina !!!, I'm trying to communicate to programs using a DLL (this would be an IPC) . The first program calls a function in the dll and writes a variable "k". Then the second program call another function in the same dll and reads this variable "k". The problem, as you surely know, is that each program loads it's own copy of the dll and they are not seeing the same "k". So the solution will be using a memory shared section using the pragma command....but I canĀ“t make this work!!, please help me!
The cpp code of the dll:
//****************************************************************************
#include "dll.h"
#include <windows.h>
#include <malloc.h>
#include <memory.h>
#include <math.h>
#include <float.h>
#include <iostream>
#include <fstream>
#include <stdio.h>