Windows Issue

View: New views
3 Messages — Rating Filter:   Alert me  

Windows Issue

by Matthias Schmidt-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I generated with the plugin wizzard 2004.7 on Win XP the files to build
a stub for my plugin, which is mac only.
Then I copied the constants to the rsrc file.
I changed the plugin.c file in a way, that every command returns 0.
Then I compiled the stuff with visual studio 2005.

Now when I start 4d on XP always one plugin command gets addressed, when
the plugin is loaded (before OnStartup starts running) and tells me that
the argument types are incompatible.

How can that happen?
How do I debug a plugin with VS?

Thanks

cheers,

Matthias

------------------------------------------------------------------------
Admilon Consulting GmbH
Am Wiesengrund 9a, 90584 Allersberg, Germany
Geschäftsführer: Peter Frank, Matthias Schmidt
Amtsgericht Nürnberg: HRB 21750
Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647
<http://www.admilon-consulting.de>
-------------------------------------------------------------------------


**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/


    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Windows Issue

by Michael Bond-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Mar 11, 2008 at 2:15 PM, Matthias Schmidt <4D_info@...> wrote:

> Hello,
>
> I generated with the plugin wizzard 2004.7 on Win XP the files to build
> a stub for my plugin, which is mac only.
> Then I copied the constants to the rsrc file.
> I changed the plugin.c file in a way, that every command returns 0.
> Then I compiled the stuff with visual studio 2005.
>
> Now when I start 4d on XP always one plugin command gets addressed, when
> the plugin is loaded (before OnStartup starts running) and tells me that
> the argument types are incompatible.
>
> How can that happen?
> How do I debug a plugin with VS?
>
> Thanks
>
> cheers,
>
> Matthias

Sorry I don't know how it is happening but to debug a plugin under
Visual Studio you can do one of two things.

1. Set 4D as the Debug application in the project properties. Now,
when you Start Debugging 4D will launch and you just select your test
database as normal. Now set your breakpoints and they will be hit as
normal.

2. "Attach to Process"  - use this to start debugging an already
running copy of 4D and your test database.

Michael Bond
**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/     
   

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************


Re: Windows Issue

by Matthias Schmidt-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,


Am/On Tue, 11 Mar 2008 14:55:31 +0000 schrieb/wrote Michael Bond:

>On Tue, Mar 11, 2008 at 2:15 PM, Matthias Schmidt <4D_info@...>
wrote:

>> I generated with the plugin wizzard 2004.7 on Win XP the files to build
>> a stub for my plugin, which is mac only.
>> Then I copied the constants to the rsrc file.
>> I changed the plugin.c file in a way, that every command returns 0.
>> Then I compiled the stuff with visual studio 2005.
>>
>> Now when I start 4d on XP always one plugin command gets addressed, when
>> the plugin is loaded (before OnStartup starts running) and tells me that
>> the argument types are incompatible.


one string in the rsr file got somehow damaged. A letter was missing in
method definition in the rsr file.
Then I figured out that the constants don't get copied.
After copying them by hand to the plugin everything was fine.



>1. Set 4D as the Debug application in the project properties. Now,
>when you Start Debugging 4D will launch and you just select your test
>database as normal. Now set your breakpoints and they will be hit as
>normal.
>
>2. "Attach to Process"  - use this to start debugging an already
>running copy of 4D and your test database.

Thanks, I figured that out meanwhile :-)


cheers,

Matthias

------------------------------------------------------------------------
Admilon Consulting GmbH
Am Wiesengrund 9a, 90584 Allersberg, Germany
Geschäftsführer: Peter Frank, Matthias Schmidt
Amtsgericht Nürnberg: HRB 21750
Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647
<http://www.admilon-consulting.de>
-------------------------------------------------------------------------


**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/


    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************

LightInTheBox - Buy quality products at wholesale price!