Indigo Rose Software

Go Back   Indigo Rose Software Forums > Indigo Rose Software > Developer's Den

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
"Draw Partner!" - My first mouse drawing app

This is just a simple example I made from a "learning VC++" book. It's nothing at all, yet is jolly good fun though also.

Click Here
Reply With Quote
  #2  
Old 01-18-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
I like it! It's like drawing in Flash but looks more like pre-WinXP icons. (not as, ahem, flashy)



How many lines of code Corey?

Accomplishement is satisfying!
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #3  
Old 01-18-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Well the application itself is lots of code, i.e. the C++ part but of course that is created by VC++, all I did was add a few lines of code inside a function. It's nothing major, very little code. But to actually do anything useful with it, i.e. create a screen drawing or annotation plug-in for AutoPlay Media Studio is what's tricky.

Slowly but surely I creep up on it though and then one day, just when you least expect it, WHAMMO! I write a plug-in...

I'm just chipping away at it, I tried to approach it from the C++ end before and that crapped out, so now I'm just trying to learn a tiny bit of MFC each day and see where that leads. I have too many ideas for AMS plug-ins. Design time ones too which deal with visual effects and stuff like that, more like Photoshop plug-ins really, but for AMS. Anyhow I ain't making no promises, and I ain't not making no promises. Because everytime I do that with C++ someone end up with a stick in the eye. So I'm just taking it day by day.

Anyhow FWIW the second version took a few more lines of code than the first. It's not a practical drawing app, you could do a zillion times better using the Flash drawing API. But for some reason I enjoy sketching in version 1 with my tablet. It has a nice pointilist look and I like the way the dots get sparser as you sketch faster. I actually managed to do a couple decent sketches in it I forgot to take screencaps though. Next time.

P.S. The icon is just the default MFC app icon.
Reply With Quote
  #4  
Old 01-18-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Ah, thanks for the walk-thru!

I did buy a MFC based book earlier last year. However, I decided to work on the plugins for AMS (ans now SF 7!) and Flash MX 2004 it's ActionScripting.

Though, I am sure to come back to such... hopefully right as you release your first "Create Your Own Plugin" C.B.T. CD!
__________________
Intrigued
www.amsuser.com

Last edited by Intrigued; 01-18-2005 at 01:19 AM. Reason: by is not buy and I don't buy it that by is .. well.. nm
Reply With Quote
  #5  
Old 01-18-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
I wouldn't learn VC++ if it weren't for my gig at IR and my realizing that it's not an option if I wish to be completely relevant.

AMS + Flash will get you more audience approval in a faster time than hand coding any apps will. Here's the thing, people notice what they see, and rapid development of highly stylized materials is not what VC++ is for. That's what AMS and Flash are for.

I'll keep you posted as I learn stuff but suffice to say that unless you are looking to become a software manufacturer, you will get much more benefit out of learning Flash than VC++. Flash skills are timeless, and for my money I can still get more "real world" stuff done in quicker time, with better visual results, using Flash+AMS than I can using VC++. Then again I like Michael MacDonald's singing, so I don't know how much stock you want to put in my opinion.
Reply With Quote
  #6  
Old 01-18-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Good work, Corey. The think is that once you get this GDI drawing stuff down, then making plugins is relatively easy. And, every plugin that we have made so far uses MFC, so the MFC is by no means a waste.

The most useful classes in MFC in my opinion are not the windowing classes but rather the data classes:

CString, CObject, CArchive, CFile, CObList, etc.

Of course, a good understanding of CWnd is useful too. I found that with C++/MFC it takes a bunch of hacking away at it and then one day - whammo, you start to get it.

If you want to start working on a plugin right away, do this:

1. Get and install the AMS 5.0 SDK
2. Make a copy of the AutoPlay Media Studio 5.0 SDK\Samples\Shape folder to somewhere else on your HD.
3. Open the copied shape project.
4. Find the function CShapeObject :: DrawShape in ShapeObject.cpp.
5. In that function you can do any kind of drawing that you want - just use the hDC that is passed in.

More tips:

- To change the name of the object, look in Shape.cpp
- To change the name of the plugin file that is generated, go to Project > Settings and select the Link tab. There you can change the "output file name".

Anyone with even a bit of C or C++ windows API programming experience can use the above to get started on making your own plugins. After you get started with the above, look up the functions that are used in the SDK reference and keep learning. It really isn't that bad. Give it 2 hours without giving up and you'll get it!
Reply With Quote
  #7  
Old 01-18-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Oh I've given it 2 hours sir, believe me, that and maaaaaaany more. Sir. Anyhow as to you're comment about "whammo", I KNEW IT! Just like I said, I'll be just whistling along main street without a clue in the world and then suddenlyyyyyy WHAMMO!!! and I'm chunking out the plug-ins like some kind of insane plug-in chunker.

Can hardly wait. Fact is I don't understand a thing yet though, I'm just typing what's in the book.

Thanks for the tips Brett.
Reply With Quote
  #8  
Old 01-18-2005
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,206
I nearly wrote this once but deleted it incase i phrased it badly and upset someone. And here i am again deciding to post it anyway.

I am touched! I think its just great that people like Brett [who i am sure is a God to most of us on here] has time in his day to chip in with stuff like that to help others and its like "just who he is". Not at all condescending and always a nice tone to his voice - as it were.

I salute you, Brett.
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
Reply With Quote
  #9  
Old 01-18-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
If there really is a Brett, then why do bad things happen to good people?
Reply With Quote
  #10  
Old 01-18-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Sooooo you're telling me there is a channnnce! (in so many words)

(Dumb and Dumber)

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #11  
Old 01-18-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Thanks Corey!

Hot coffee in my sinuses, not a good thing!

I'm with you. I've put in several hours pouring through the sample plugins, and some of it confuses me.


Quote:
Originally Posted by Corey
If there really is a Brett, then why do bad things happen to good people?

Last edited by Worm; 01-18-2005 at 09:09 AM.
Reply With Quote
  #12  
Old 02-03-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
c++ - plugin - classes - mfc - objects

bump time.

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #13  
Old 02-03-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Still been plugging away at this but spare time has been scanty of late. Nonetheless I've worked through the first bit of this book. Seeing how Worm developed his last plug-in really woke me up to some new possibilities.
Reply With Quote
  #14  
Old 02-03-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Sounds good!

I was also looking at what Brett had shared with us in this thread. A little insight I thought might help as well.

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #15  
Old 02-17-2005
azmanar's Avatar
azmanar azmanar is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Location: East, South & West Asia
Posts: 948
AM5 Pro with FLASH

Hi guys,

My team had been developing our 1st animation project on FLASH for the pass 3 months. The final product is a CD-ROM for slow learners and elementary pupils. Our client is a tuition school.

Now when it comes to COMPILING those animations into full-fledge learning applications, the logical software is definitely DIRECTOR. Well this is what the market FIRMLY believes.

For a small 3-men team on a shoe-string budget and wants to use only LICENSED software, DIRECTOR is sooooooooo expensive for us. And I need expert Director users too ( again very expensive ) . AND the process to compile takes a lot of time ( another high cost ).

So I opted to completely use AM5 Pro to compile all several hundred FLASH movies into a full-blown learning application.

The UNUSUAL part is, I need no EXPERTS to use AM5. The funny part is, I did the compilation myself and I'm not even a TECHIE !! I did the compilation in 2 days flat...

Said to myself, " Woopeedoo.. What an achievement !!! ". So, got myself a big bucket of VANILLA ICE-CREAM to celebrate. hehehe. Lemme see .... Maybe I should start learning how to use the PLUGINS in AM5 Pro.

Bottom-line ............. My client was very satisfied with the CD-ROM and now wants us to develop more products.
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Example: Make an Image 'Follow' the Mouse Cursor Desmond AutoPlay Media Studio 5.0 Examples 0 05-18-2004 10:06 AM
System trap app & Internet calls Lee_Benson AutoPlay Media Studio 5.0 11 11-23-2003 08:15 PM
1 AVI file = 1 Video + 2 Audio streams dmla AutoPlay Media Studio 4.0 0 07-15-2003 10:41 AM
Display Text by Mouse Over of Image Object jdanniel AutoPlay Media Studio 4.0 3 04-30-2003 01:05 PM
How to remain the text box object on screen while mouse leave and then been hided while mouse move o Felicia AutoPlay Media Studio 4.0 13 04-18-2003 09:40 PM


All times are GMT -6. The time now is 09:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software