Click here to Skip to main content
14,825,934 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: for project Pin
CPallini31-May-16 23:33
mveCPallini31-May-16 23:33 
AnswerRe: for project Pin
Richard MacCutchan31-May-16 23:39
mveRichard MacCutchan31-May-16 23:39 
QuestionRe: for project Pin
David Crow1-Jun-16 2:50
MemberDavid Crow1-Jun-16 2:50 
AnswerRe: for project Pin
Bram van Kampen1-Jun-16 15:26
MemberBram van Kampen1-Jun-16 15:26 
QuestionHow to determine file offset of each section using RVA in pe file ? Pin
Member 1254265131-May-16 1:26
MemberMember 1254265131-May-16 1:26 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Richard MacCutchan31-May-16 2:00
mveRichard MacCutchan31-May-16 2:00 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Bram van Kampen1-Jun-16 15:11
MemberBram van Kampen1-Jun-16 15:11 
QuestionCopy certain member variable data of a structure Pin
manoharbalu30-May-16 23:45
Membermanoharbalu30-May-16 23:45 
We have a big structure with nearly 300 member variable arrays within it. A Partial of the structure is shown below. We have this structure shared in the memory with another application using CreateFileMapping function. So both the application runs in the same machine sharing the memory. The values of the structure keeps on changing continously based on formulas and calcualtions. Now I need to transfer some of the data values that are changed to another application using sockets continously. If I try to transfer the entire structure of size around 900000bytes continously it gives me problem and hangs.

Please provide me step by step methods to get the values of some of the member variables from the entire structure simply without using any loops to some other structure (only changed values) so that I could transfer this comparitively small structure via sockets to another application and do a similar copy method to get the changed data to the same struture TModDB there in the other application.

struct TModDB
{

float IVKK [600];
char FIL [600];
char FDDD [600];
float FCDCP [600];
float FLH [600];
float FEFTH [600];
float FKL [30][600];
float FPRES [600];
float FTEMP [600];
float FHTR [600];
float FXS [30][600];
float FS1S [600];
float FPDER [600];
float FTDER [600];
float FXDER [30][600];
float FS1DER [600];
float FS5DER [600];
float HEHF [200];
float SS2 [1500];
float SMP [30][1500];
float SK1 [1500];
float SK2 [1500];
float SK3 [1500];
float P1 [250];
float P2 [250];
float P3 [250];
float P4 [250];
float P5 [250];
char LOGIC [100];
float MK3 [100];
char CLOGIC [92];
char CSWT [92];
char LOGV [1500];
char SFEFTH [600];
char SFHOLDUP [600];
char SFTEMP [600];
char SHECDER [200];
char SHEHDER [200];
char SCSPEED [92];
char SFPRES [600];
char SFSDER [30][600];
char SGEFDER [300];
float LMHI [750];
float LMLO [750];
char XVA ;
char FRZE;
char GGGO;
.
.
.
.
char MdelCd;

};
AnswerRe: Copy certain member variable data of a structure Pin
Richard MacCutchan31-May-16 0:31
mveRichard MacCutchan31-May-16 0:31 
GeneralRe: Copy certain member variable data of a structure Pin
manoharbalu31-May-16 0:40
Membermanoharbalu31-May-16 0:40 
GeneralRe: Copy certain member variable data of a structure Pin
Richard MacCutchan31-May-16 0:47
mveRichard MacCutchan31-May-16 0:47 
AnswerRe: Copy certain member variable data of a structure Pin
Jochen Arndt31-May-16 1:43
professionalJochen Arndt31-May-16 1:43 
AnswerRe: Copy certain member variable data of a structure Pin
leon de boer31-May-16 3:59
Memberleon de boer31-May-16 3:59 
GeneralRe: Copy certain member variable data of a structure Pin
manoharbalu1-Jun-16 2:25
Membermanoharbalu1-Jun-16 2:25 
GeneralRe: Copy certain member variable data of a structure Pin
Bram van Kampen1-Jun-16 15:51
MemberBram van Kampen1-Jun-16 15:51 
GeneralRe: Copy certain member variable data of a structure Pin
manoharbalu1-Jun-16 20:02
Membermanoharbalu1-Jun-16 20:02 
GeneralRe: Copy certain member variable data of a structure Pin
leon de boer1-Jun-16 20:18
Memberleon de boer1-Jun-16 20:18 
GeneralRe: Copy certain member variable data of a structure Pin
leon de boer2-Jun-16 19:31
Memberleon de boer2-Jun-16 19:31 
QuestionRe: Copy certain member variable data of a structure Pin
David Crow31-May-16 5:07
MemberDavid Crow31-May-16 5:07 
QuestionC++ Smartphone application, get data from MySQL Pin
PonSvens29-May-16 10:04
MemberPonSvens29-May-16 10:04 
AnswerRe: C++ Smartphone application, get data from MySQL Pin
CPallini29-May-16 20:58
mveCPallini29-May-16 20:58 
AnswerRe: C++ Smartphone application, get data from MySQL Pin
leon de boer29-May-16 22:53
Memberleon de boer29-May-16 22:53 
AnswerRe: C++ Smartphone application, get data from MySQL Pin
Richard MacCutchan30-May-16 1:16
mveRichard MacCutchan30-May-16 1:16 
GeneralRe: C++ Smartphone application, get data from MySQL Pin
leon de boer30-May-16 2:43
Memberleon de boer30-May-16 2:43 
GeneralRe: C++ Smartphone application, get data from MySQL Pin
Richard MacCutchan30-May-16 3:02
mveRichard MacCutchan30-May-16 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.