Click here to Skip to main content
15,914,074 members
Home / Discussions / COM
   

COM

 
GeneralUsing Component Without Registering It Pin
perlmunger29-Oct-04 8:09
perlmunger29-Oct-04 8:09 
Generalvisual basic programmer needed to work on a virtual serial port project. Pin
zhou226-Oct-04 22:38
zhou226-Oct-04 22:38 
Questiona small example in COM? Pin
liyang yu26-Oct-04 2:54
liyang yu26-Oct-04 2:54 
AnswerRe: a small example in COM? Pin
Michael P Butler26-Oct-04 3:02
Michael P Butler26-Oct-04 3:02 
GeneralRe: a small example in COM? Pin
liyang yu26-Oct-04 3:23
liyang yu26-Oct-04 3:23 
GeneralRe: a small example in COM? Pin
Michael P Butler26-Oct-04 23:09
Michael P Butler26-Oct-04 23:09 
GeneralCOM/DCOM Events Pin
sudeepkukreti26-Oct-04 2:27
sudeepkukreti26-Oct-04 2:27 
GeneralIDL Related - TLB generation Pin
rajandpayal25-Oct-04 13:51
rajandpayal25-Oct-04 13:51 
Hello All,

In my .idl I have the following declarations.

typedef struct AXCS_DYNAXRPARA_T_tag
{
sh_dyna_xrpar_t1 data1;
sh_dyna_xrpar_t2 data2[NO_DYNA_PULSES_MAX];
}AXCS_DYNAXRPARA_T;

sh_dyna_xrpar_t1 and sh_dyna_xrpar_t2 are defined in another .idl file.
Now
when I import the generated .tlb into another file I get compilation
errors
since the .tlh file is getting generated the following way.

struct sh_dyna_xrpar_t1_tag
{
struct acs_obj_header_t_tag header;
unsigned short xrparn;
unsigned short index;
short obj_count;
short no_mask_img;
unsigned char version_shdynaxrpar;
unsigned char dummy1;
short no_dyna_pulses;
};

struct AXCS_DYNAXRPARA_T_tag
{
struct sh_dyna_xrpar_t1_tag data1;
struct sh_dyna_xrpar_t2_tag data2[40];
};

struct sh_dyna_xrpar_t2_tag
{
long xrv;
long xrua;
long xrpt;
};

As you can see, sh_dyna_xrpar_t2_tag is getting declared after struct
AXCS_DYNAXRPARA_T_tag declaration. Why so?? The compilation error I am
getting is

error C2079: 'data2' uses undefined struct 'sh_dyna_xrpar_t2_tag'

Why is the compiler getting confused. How can I correct the above.

Using .h and _i.c is working for me. I want to make the above work with

#import .tlb file.

Regards
Rajdeep

GeneralIDL related. TLB generation Pin
rajandpayal25-Oct-04 10:01
rajandpayal25-Oct-04 10:01 
GeneralGetObject() failed Pin
liyang yu25-Oct-04 4:04
liyang yu25-Oct-04 4:04 
GeneralRe: GetObject() failed Pin
Jörgen Sigvardsson25-Oct-04 8:38
Jörgen Sigvardsson25-Oct-04 8:38 
GeneralRe: GetObject() failed Pin
liyang yu25-Oct-04 8:47
liyang yu25-Oct-04 8:47 
GeneralRe: GetObject() failed Pin
Jörgen Sigvardsson25-Oct-04 8:51
Jörgen Sigvardsson25-Oct-04 8:51 
GeneralRe: GetObject() failed Pin
liyang yu25-Oct-04 8:56
liyang yu25-Oct-04 8:56 
Generalon COM in .NET Pin
ppp00125-Oct-04 1:21
ppp00125-Oct-04 1:21 
General"Interface not registered" with win XP Pin
sanouk24-Oct-04 22:19
sanouk24-Oct-04 22:19 
GeneralRe: "Interface not registered" with win XP Pin
geo_m19-Nov-04 3:27
geo_m19-Nov-04 3:27 
Generalbasic question about COM Pin
liyang yu23-Oct-04 9:14
liyang yu23-Oct-04 9:14 
GeneralRe: basic question about COM Pin
Anonymous23-Oct-04 16:00
Anonymous23-Oct-04 16:00 
GeneralRe: basic question about COM Pin
liyang yu23-Oct-04 16:38
liyang yu23-Oct-04 16:38 
GeneralRe: basic question about COM Pin
liyang yu23-Oct-04 16:40
liyang yu23-Oct-04 16:40 
GeneralRe: basic question about COM - the answer is here!! Pin
liyang yu23-Oct-04 17:14
liyang yu23-Oct-04 17:14 
GeneralRe: basic question about COM - the answer is here!! Pin
User 21559725-Oct-04 19:59
User 21559725-Oct-04 19:59 
GeneralRe: basic question about COM - the answer is here!! Pin
liyang yu26-Oct-04 8:18
liyang yu26-Oct-04 8:18 
GeneralRe: basic question about COM Pin
vikramlinux26-Oct-04 20:05
vikramlinux26-Oct-04 20:05 

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.