Technical Forum

STEP 7 Additional Software

Error Codes in C++ using S7ProSim

Thread Starter: maxidoodle   Started: 7/2/2012 7:00 PM   Replies: 0

« Previous thread Next thread »
Page 1 of 1 (1 items)
  7/2/2012, 7:00 PM
Joined 7/2/2012
Last visit: 7/6/2012
Posts: 1
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
I am attempting to write a piece of software in C++ that interacts with S7PLCSIM using the provided S7ProSim COM Object. The method ReadInputPoint executes properly and is working fine, however, I cannot seem to write to the input block using WriteInputPoint. I am trying to diagnose the problem, but the only HRESULT returned by the function is S_FALSE (0x00000001). The API claims that "event handling is not necessary in C++", however it also claims that the error codes are returned in the ConnectionError event and not by the called function. How am I supposed to get the error code returned by the ConnectionError event?

Thanks,

-Max
Top
Page 1 of 1 (1 items)
Actions