X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Aug 2012 08:03 PM by  anon
TROUBLE WITH PASSING STRUCTURE
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Aug 2012 08:03 PM
    Just like the Ron king's book "calling c from IDL ",In chapter 7,it talks about how to pass stuctures between IDL and c++. Now I need to get a structure created in c++ files. I followed the third example in that book.And I use the exactly the same name as it with the sufix ".c".But the compiler says there are about 12 errors. Is there any wrong with this example ! Is there anyone succeed. then I use the suffix ".cpp" ,then the compiler give no error. but when I test the function declared in the dlm file. IDL message out as follows: % Loaded DLM: TESTSTRUCT. % Dynamically loadable module TESTSTRUCT failed to define routine: TESTSTRUCTURE. % Execution halted at: $MAIN$ Thank you if you have any tips for me!

    Deleted User



    New Member


    Posts:
    New Member


    --
    11 Aug 2012 07:17 PM
    there is a little difference between c and c++. you should place the declarement at the begining. or error 2275 illegal use of this type as an expression !
    You are not authorized to post a reply.