sohail_k
April 16th, 2004, 01:14 AM
Hi,
I am developing an application in which i am using .tlh file generated from typelibrary of one COM component.
It works fine if i use this file in VC++6.0 application but i get compiler error when i include it in my VC++.Net application.
I have generated it first by using #import "File.Tlb".. which inturn generates "File.tlh and File.tli" files on compilation.
Then i removed #import and used this "File.tlh" in my application as -
#include "File.tlh"
I get Compiler error for File.tlh in VC++.Net saying
error C2143: syntax error : missing ')' before 'constant'
error C2143: syntax error : missing ';' before 'constant'
error C2059: syntax error : ')'
error C2238: unexpected token(s) preceding ';'
etc
Same files works fine when used in VC++6.0 application
Since I havent changed anything in this file I am confused what is the problem....
Being a novice in VC++.net (this is my first App in it)... I am more confused
Help me.
I am developing an application in which i am using .tlh file generated from typelibrary of one COM component.
It works fine if i use this file in VC++6.0 application but i get compiler error when i include it in my VC++.Net application.
I have generated it first by using #import "File.Tlb".. which inturn generates "File.tlh and File.tli" files on compilation.
Then i removed #import and used this "File.tlh" in my application as -
#include "File.tlh"
I get Compiler error for File.tlh in VC++.Net saying
error C2143: syntax error : missing ')' before 'constant'
error C2143: syntax error : missing ';' before 'constant'
error C2059: syntax error : ')'
error C2238: unexpected token(s) preceding ';'
etc
Same files works fine when used in VC++6.0 application
Since I havent changed anything in this file I am confused what is the problem....
Being a novice in VC++.net (this is my first App in it)... I am more confused
Help me.