4 Replies - 8624 Views - Last Post: 18 December 2011 - 07:54 PM

#1 Beach_Coder  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 123
  • Joined: 10-November 11

Custom Template or Reusable Module or Class

Posted 09 December 2011 - 08:01 PM

Maybe here is where I start to learn a little programming versus writing a little code.

I make (rather, I start) a lot of console applications. I have a whole bunch of stuff (some of which I just submitted as a snippet, a good one too!) that I use over and over, every time. Half of it I never touch. I just call a sub and it does it's thing (such as setting the size and location of the window). The rest is comprised if things that I use every time but with different variables assigned to them.

This is a wild guess, but I suspect that this is not supposed to be handled by me doing a copy and paste from a text file every time.

If I had my druthers, when I click on New Project instead of choosing Console Application, I could choose something like MyCustomConsole Application or some such that had things ready to go, including the references and imports I always I add. The Export Template command under File looked promising but it didn't do what I thought it would. As far as I could tell, it didn't do much of anything.

Is there a way to create a customized template and if so, where should I look for some direction on how to do that?
Is any of this a case where I should be putting stuff in a class, making a dll out of it and then calling it? The thing is that some of what I do every time is already using a few dll functions. Is it appropriate to make a dll file to use several other dll files?

As always, any direction I can get will be much appreciated.

Is This A Good Question/Topic? 0
  • +

Replies To: Custom Template or Reusable Module or Class

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 10483
  • View blog
  • Posts: 40,478
  • Joined: 12-June 08

Re: Custom Template or Reusable Module or Class

Posted 09 December 2011 - 08:31 PM

Soooooooo... yes.. direction like this?

http://oreilly.com/p...-templates.html
Was This Post Helpful? 1
  • +
  • -

#3 Beach_Coder  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 123
  • Joined: 10-November 11

Re: Custom Template or Reusable Module or Class

Posted 09 December 2011 - 08:34 PM

View Postmodi123_1, on 09 December 2011 - 10:31 PM, said:

Soooooooo... yes.. direction like this?

http://oreilly.com/p...-templates.html


Ah splendid!
Was This Post Helpful? 0
  • +
  • -

#4 Beach_Coder  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 123
  • Joined: 10-November 11

Re: Custom Template or Reusable Module or Class

Posted 18 December 2011 - 05:52 PM

View Postmodi123_1, on 09 December 2011 - 10:31 PM, said:

Soooooooo... yes.. direction like this?

http://oreilly.com/p...-templates.html


This was good. I read it last week a few times, resolved to give up the fantasy of putting it into action, then went back to it today. Half of it made sense, I made my own template. Bravo.

Some of the article was difficult to translate - the formatting of some of the vb files is different in VS 2010 than in VS 2005, which is used in the article. I wasn't feeling bold enough to go fiddling with the insides of some of those files.

New problem: I created a template as a test. There was nothing in it, just a test. It worked. Then I deleted it. My IDE still thinks it's there though. That's already getting old.
Was This Post Helpful? 0
  • +
  • -

#5 Beach_Coder  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 123
  • Joined: 10-November 11

Re: Custom Template or Reusable Module or Class

Posted 18 December 2011 - 07:54 PM

Yeah Baby!

Today I made myself a customized project template for the first time.

And I just followed it up by making my own dll for the first time.

I added it as a reference to project and I'll be! It worked!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1