Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Corey is offline Indigo Rose Staff Alumni
    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

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    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

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    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.

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    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!
    Last edited by Intrigued; 01-18-2005 at 12:19 AM. Reason: by is not buy and I don't buy it that by is .. well.. nm
    Intrigued

  5. #5
    Corey is offline Indigo Rose Staff Alumni
    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.

  6. #6
    Join Date
    Jan 2000
    Posts
    2,002
    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!

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    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.

  8. #8
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    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]

  9. #9
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    If there really is a Brett, then why do bad things happen to good people?

  10. #10
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Sooooo you're telling me there is a channnnce! (in so many words)

    (Dumb and Dumber)

    Intrigued

  11. #11
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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 08:09 AM.

  12. #12
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137

    c++ - plugin - classes - mfc - objects

    bump time.

    Intrigued

  13. #13
    Corey is offline Indigo Rose Staff Alumni
    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.

  14. #14
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    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

  15. #15
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    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.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Example: Make an Image 'Follow' the Mouse Cursor
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-18-2004, 09:06 AM
  2. System trap app & Internet calls
    By Lee_Benson in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 11-23-2003, 07:15 PM
  3. 1 AVI file = 1 Video + 2 Audio streams
    By dmla in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 07-15-2003, 09:41 AM
  4. Display Text by Mouse Over of Image Object
    By jdanniel in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 04-30-2003, 12:05 PM
  5. Replies: 13
    Last Post: 04-18-2003, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts