Hello Guest it is April 18, 2024, 10:02:39 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jemmyell

Pages: 1 2 3 4 5 6 7 8 9 10 11 »
1
Hi,

There is another thread about VC2008:

http://www.machsupport.com/forum/index.php/topic,10733.0.html

But I personally would use 2003 - it is native for Mach3 plugins.  There are serious issues with MFC versions that the 2008 stuff sidesteps.  If you want to use this tutorial you really need to use 2003.

Just my two cents.

-James Leonard

2
Hi, Please ask Tom Hubin about the Open Source for this Video project.  You should start another thread about VS 2010, maybe someone will try to support it.  It have no plans in that direction.

-James Leonard

3
Yeah, the FSF gets VERY wordy on this subject.  The bottom line is the GPL 3 allows sales of the software commercially but REQUIRES that ALL source code be provided.

It si the License Linux uses.

-James

4
Tom,

If you want to require that a user of your plugin source code publish full source to their derivative work then you probably want the FSF GPL.  See it here:

http://www.fsf.org/licensing/licenses/

-James

5
You are welcome.  I am always glad to help.

-James

6
Hi,

Since the notification ALWAYS gets called I simply stopped using myCleanup all together.

See the Yahoo group for a prior discussion, particularly:

http://groups.yahoo.com/group/mach1mach2cnc/message/95280

-James


7
Yes, I use the shutdown notification which SHOULD be 0x12000e to circumvent this issue.  I hope Brian / Art didn't change this.  It was undocumented though...

-James


Hello James,

I am using Mach3 demo version 3.039. The only messages going to myNotify(int msg) are values of 7 and 14 (0x000e). I am testing for 14 then calling myCleanUp() to shut down the plugin modeless dialog box.

void myNotify ( int msg )
{
    DbgMsg(("CustomPluginImpl myNotify entry"));

    char tmp[81] ;
    sprintf ( tmp, "msg=%i", msg ) ;
    DbgMsg((tmp));

    if ( msg == 14 )
    {
        DbgMsg(("Destroy Scan3d dialog box here"));
        myCleanUp() ;
    }

    DbgMsg(("CustomPluginImpl myNotify exit"));
}

Frankly, I don't see how you can use 0x12000e since that is a 24 bit number. How can you ever get that as a 16 bit int value coming in to myNotify(int msg)?

Tom Hubin
thubin@earthlink.net

Tom, use %d not %i in the sprintf - int is 32 bits, short int is 16 bits.  Also if you use %x you will see the hex value.

-James

8
Yes, I use the shutdown notification which SHOULD be 0x12000e to circumvent this issue.  I hope Brian / Art didn't change this.  It was undocumented though...

-James

9
Hi Tom, here is the Microsoft HTMLHELP workshop download page:

http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en

I am using a tool called HelpSmith, but it is not necessary, just a convenience.

Tooltips:

http://support.microsoft.com/kb/141758

http://www.codeguru.com/forum/showthread.php?t=413739

http://www.codeproject.com/KB/dialog/tooltips.aspx

Have fun!  I look forward to seeing what you have created.

-James


10
Hi Tom,

If you used MFC dialogs then tooltips are pretty easy, let me know and I will look up the correct references.  I am using HTML help from Microsoft for my online help files.  It is a free download.

-James

Pages: 1 2 3 4 5 6 7 8 9 10 11 »