Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / January 2006

Tip: Looking for answers? Try searching our database.

wizard & template directives

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
F.P. - 10 Jan 2006 19:02 GMT
Hi,

I'm encountering a problem with my Custom Wizard.
I have created a Wizard that works fine on Visual C++ 2002.
Due to our migration to 2003, I want to port it on 2003.
I followed the advices given in the MSDN porting guide. But a problem
occurs.....

I have many [!if xxxx], [!else] and [!endif] statements.
With 2003, my generated source files are completeley messy : my "if" is
always true even thought my condition is not true. The "else" part is never
copied.
I have seen that instead of using [!if xxxx] I use [!if xxx != 0], my
problem disappears.

Am I doing something wrong ? Is there something I have missed ? Or is it a
change / bug in 2003 ?

Thanks for your help,

F.P.

"Gary Chang[MSFT]" - 11 Jan 2006 08:31 GMT
Hi,

>Am I doing something wrong ? Is there something I have missed ?

Would you please provide some related code snippet for research, it depends
on what's the object xxxx do you use in [ !if ] directive, if you it is
some object like string value, then you would need to use the [!if xxxx !=
0] expression.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
F.P. - 11 Jan 2006 15:43 GMT
Hi Gary,

Thanks for your help.
I have different cases : Strings, BOOL, etc...and in these cases the same
problem occurs.
It's not only related to strings.
How can I proceed to provide you some sources ? I don't reaaly want to post
that here ;-)

Thanks,

F.P.

> Hi,
>
[quoted text clipped - 20 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Gary Chang[MSFT]" - 12 Jan 2006 03:26 GMT
Hi,

>I have different cases : Strings, BOOL, etc...and in these cases
>the same problem occurs.

yes, this is by design. In Visual Studio 2003, the [!if xxxx] should be
applied to the case of checking the specific control option, if you want to
check a symbol's value(e.g. string, bool, ...), then you need to use the
[!if xxxx != 0] syntax, please refer to the sample code of the following
MSDN article:

Template Directives
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html
/vcoriTemplateDirectives.asp

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
F.P. - 12 Jan 2006 20:55 GMT
Hi,

Thanks for your answer. I
think it could be interesting to update the web-page with the comments you
sent me. I mean by making clearly the distinction you have described Control
/ Value :
"the [!if xxxx] should be applied to the case of checking the specific
control option, if you want to check a symbol's value(e.g. string, bool,
...), then you need to use the  [!if xxxx != 0] syntax"

Thanks,

F.P.

> Hi,
>
[quoted text clipped - 26 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
"Gary Chang[MSFT]" - 13 Jan 2006 02:10 GMT
yes, I agree with you, I will ping the corresponding product team about
this problem, thanks for your understanding!

Good Luck!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.