Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Certification Visual Studio > Where to put co...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 749 of 795
Post > Topic >>

Where to put common declaration in Visual Studio

by =?Utf-8?B?UGF0cmljaw==?= <Patrick@[EMAIL PROTECTED] > Jun 6, 2008 at 12:23 PM

I am trying out the new visual Studio 2008. When I first tried to open my 
existing project(VS 2005), I immediately noticed that all my intellisense
and 
formatting was gone, in the VBscript ****tion of my file(HTML was intact). 
Strangely the code was still working and still compiled perfectly. Playing

around, I found out that it was the statement "include file......." that
was 
caussing the problem. If I removed it and put the inclded code right in my

current source, eerything was back to normal.

I re****ted the bug to Micosoft team and they replied to me that it was 
working as designed because VS208 DOES NOTsup****t included file. I found
it 
extremely ackward since include file is one of the root of "best coding 
pratice" in order to avoid code duplication. Their answer also talk about 
using Master Page instead. So I transfered all the code in the include to
a 
Master Page but it does not work. My current file does not "see" what is 
declared in the Master page.  Reading about the concept, it looks like
Master 
Page are used only to share formatting and not code.

So my question is then: how and where should I put mu common declarations
so 
they can be used by multiple sources?

Thanks
 




 1 Posts in Topic:
Where to put common declaration in Visual Studio
=?Utf-8?B?UGF0cmljaw==?=   2008-06-06 12:23:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 12:22:42 CST 2008.