Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-19-2005
AlexKom AlexKom is offline
Registered User
 
 
Join Date: Jul 2005
Location: Moskow
Posts: 18
Send a message via ICQ to AlexKom
-->
Question about #include

Good day, all!

I work in Visual Studio.Net. After making, for example:
slice2cpp.exe example.ice
I receive a two file, example.h and example.cpp
But every time when I change a Slice definition I must manually fix in example.cpp file code
#include <example.h>
to
#include "example.h"
(from global scope include to local).
How it can be fixed without every time changing code manually?

--
Regards,
Alexander
Reply With Quote
  #2 (permalink)  
Old 07-19-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

It should never be necessary to modify the generated code. Instead, you should add "/I." to your project's compiler settings to tell the compiler to look in the current subdirectory for include files.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 07-19-2005
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Alexander,

Please have a look at the Visual Studio projects for the demos, in particular at the "Custom Build Step" associated with the .ice files

Cheers,
Bernard
Reply With Quote
  #4 (permalink)  
Old 07-20-2005
AlexKom AlexKom is offline
Registered User
 
 
Join Date: Jul 2005
Location: Moskow
Posts: 18
Send a message via ICQ to AlexKom
-->
Ok, thanks.

It's just need to insert a ".," declaration in Additional Include Directories project settings.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Circular #include possible? mefoster Help Center 1 09-26-2006 07:54 AM
The ice include path... sac_urs Help Center 6 11-29-2005 03:03 AM
Slice2cpp Include Problem tony_h Help Center 4 08-27-2004 12:28 PM
slice2cpp & --include-dir vukicevic Bug Reports 2 12-02-2003 11:40 PM
generated #include clemens Help Center 1 06-04-2003 08:21 AM


All times are GMT -4. The time now is 11:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.