473,383 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Getting compilation error

Hi All,

I am creating a metro application on windows8.I am using vc++ programming language. I am using mssoap toolkit to communication with the webservice( wsdl ).
I am using following code:

Expand|Select|Wrap|Line Numbers
  1. #import "C:\Program Files\Common Files\MSSoap\Binaries\mssoap30.dll" exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", "_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
  2.  
  3. using namespace MSSOAPLib30; 
  4.  
  5. #import "C:\Windows\system32\msxml4.dll"
  6. using namespace MSXML2;
  7.  
After adding above code I am getting following error message:

c:\program files\microsoft visual studio 11.0\vc\include\comdef.h(64): fatal error C1075: end of file found before the left brace '{' at 'c:\sample\app7\app7\debug\mssoap30.tlh(19)' was matched

Please Assist me solve above error message.
Note: if I create non metro application then above code work fine without a issue.
Mar 18 '13 #1
4 1676
weaknessforcats
9,208 Expert Mod 8TB
Remember, a \ is an escape sequence in C/C++. I expec this path:
Expand|Select|Wrap|Line Numbers
  1. #import "C:\Windows\system32\msxml4.dll"
needs to be:
#import "C:\\Windows\\system32\\msxml4.dll"

I'm kinda guessing here since # is a preprocessor line and not a C/C++ line. However, the #import is a Microsoft thing and they might have required a \\ to get a \ .
Mar 18 '13 #2
Thanks for reply.I have tried with '\\' but still facing same issue.
Mar 19 '13 #3
weaknessforcats
9,208 Expert Mod 8TB
This may be a macro expansion problem where, perhaps a #define or #pragma has been omitted. All I know for certain is that the compiler ran out of code before matching a brace on line 19 of comdef.h.

Check all of the code preceding comdef.h and verify you haven't got unmatched braces.

You may need to build with the /Ep switch on to capture the translation unit that was sent to the compiler. Then you should be able delete known pairs of matched braces. Eventully, you will find your culprit.

Before that, though be sure the code preceding comdef.h has no unmatched braces.

My money is still on a bad macro expansion. Especailly since a non-metro compile does not present the problem.

Let me know what happens.
Mar 19 '13 #4
Hello rajkumaragrawal,
Can you please share what fixed the issue for you, ?
I seem to be stuck at the same issue and do not seem to be making any headway since quitesome time.
Thanks.
Jul 17 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ashay | last post by:
Hi, I am getting compilation error "error: parse error before "__extension__"" for following line of 'C' code: extern char *strchr(const char *s, int c); ("I had to put this line for some other...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
0
by: z f | last post by:
i compile and test my vb.net asp.net web app. once in an hour or so i get a compilation error that only when i do IISRESET goes away. nothing related to my code. i compile and test on win XP...
9
by: subramanian | last post by:
Hello. Consider the following code fragment : enum TestEnum { val1 = 10, val2 = 100, val3 = 1000 }; class Test { public : enum TestEnum { val1 = 1, val2 val3 }; Test(int i = 0, int j = 0,...
3
by: ocmeng | last post by:
Dear All, I am kinda new to Oracle and need to work on a stored proc to update some data. However, I am getting compilation error for the following stored proc and got no idea on how to resolve...
17
by: somenath | last post by:
Hi ALL, I have one doubt regarding the compilation error for the bellow mentioned code. #include<stdio.h> int main(void) { int a =5,b=0; a>5?b=3:b=5;
3
by: subramanian100in | last post by:
Consider the following piece of code stored in a file called x.cpp class Test; extern void fn_one(Test t); extern Test fn_two(); Test fn_three(const Test &obj) { fn_one(obj);
5
by: preeti13 | last post by:
Hi friends i am getting the error in my application i don't know what to do please help me.i am useing a data bimder into my text box here is the my code <%@ Page language="c#"...
1
by: BSand0764 | last post by:
I'm getting an error that I can't seem to resolve. When I compile the Functor related logic in a test program, the files compile and execute properly (see Listing #1). However, when I...
5
by: atulpatil09 | last post by:
when I am trying to compile the below code I am getting error as below, Could you please let me know how to solve the above compilation error for the below program snippet MList<MRvDispatcher...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.