Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

foofightr

converting VS 6 macros to .NET

This topic is 5176 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, they don''t just plug right in. That would be too easy. There''s this commenting macro that I used a lot in VS 6, so I want to use it in VS.NET. I fixed all the syntax errors as best I could (by adding "Dim" before every variable, and changing ActiveDocument.Selection to ActiveDocument.Selection.Text) but it''s giving a runtime error now. Cast from type ''TextSelection'' to type ''String'' is not valid. This is probably due to the ActiveDocument lines, but I''m not a VB coder and I can''t find any info on migrating macros from 6 to .NET. Anyone have a good link to a site that outlines common issues when migrating macros to .NET? Google can''t find anything useful, and a search on these forums yielded nothing.

Share this post


Link to post
Share on other sites
Advertisement
I have my doubts about whether any issue involved would be common. How about possting that there dangabit code?

Share this post


Link to post
Share on other sites
First of all the macros are written in visual basic .net, so you should convert them to that first. Secondly the other differences are listed in msdn

I don''t know any tool to convert automatically, so unfortunately you have to do it manually

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!