Stub generation

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

Stub generation

by Frank Renner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I need to generate a stub for a few commands under V2004 to achieve  
compatibility in a V11 migration project. It's only a stub on both  
platforms to keep compatibility with a component that will be  
integrated after migration to V11. I am developing on an Intel Mac  
Book Pro. Is it possible to generate the whole thing on Mac without  
using Visual Studio? As far as I remember how plugins work, I would  
not need to call any code for that and just need the resources to make  
4D realize the commands and parameters, would I? When I generate the  
project with the plugin wizard, I can compile the result with XCode  
afterwards and get a Macintosh version of the plugin that does exactly  
what I want (allow compiles of the "simulated" methods). Expectedly,  
the .rsrc file that resides in the Windows folder of the package is  
not recognized on Windows. Is there anything I can do to achieve a  
recognized Windows version without doing a second compile with Visual  
Studio, i.e. remain on one platform and shortcut the process?

Thanks and Best Regards,
Frank Renner
**********************************************************************
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: Stub generation

by Frank Renner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, just discovered a minor mistake in my description: plugin  
wizard generates a .rsr that is not recognized, not a .rsrc.

Frank


Am 09.07.2008 um 09:53 schrieb Frank Renner:

> Hello,
>
> I need to generate a stub for a few commands under V2004 to achieve  
> compatibility in a V11 migration project. It's only a stub on both  
> platforms to keep compatibility with a component that will be  
> integrated after migration to V11. I am developing on an Intel Mac  
> Book Pro. Is it possible to generate the whole thing on Mac without  
> using Visual Studio? As far as I remember how plugins work, I would  
> not need to call any code for that and just need the resources to  
> make 4D realize the commands and parameters, would I? When I  
> generate the project with the plugin wizard, I can compile the  
> result with XCode afterwards and get a Macintosh version of the  
> plugin that does exactly what I want (allow compiles of the  
> "simulated" methods). Expectedly, the .rsrc file that resides in the  
> Windows folder of the package is not recognized on Windows. Is there  
> anything I can do to achieve a recognized Windows version without  
> doing a second compile with Visual Studio, i.e. remain on one  
> platform and shortcut the process?
>
> Thanks and Best Regards,
> Frank Renner
> **********************************************************************
> 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@...
> ***********************************************************************
>

**********************************************************************
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@...
***********************************************************************


Altura Support on 4D v11?

by Patrick de Boer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Does anyone know if the Altura Mac2Win layer is still supported under 4D v11 ?

I noticed that there is still a ASINTPPC.dll in the 4D application folder, but I can't find an updated ASINTPPC.lib to link with anywhere and the plugin wizard doesn't generate them either, nor are there updated Altura include/header files.

Also the old .lib file is not compatible with the new .dll and 4D v11 won't work with the old ASINTPPC.dll.

Any help appreciated.

Also posted on the forum:
http://forums.4d.fr/Post/EN/2043739/1/2043740#2043740
**********************************************************************
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: Altura Support on 4D v11?

by Francois Marchal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

4D Plugin SDK v11 no longer support Altura, but plugins written with oldest version of 4D Plugin SDK will continue to run for this version at least.

If you want to start or update a plugin using 4D Plugin SDK v11 and Altura, you can still get some Mac2Win elements in previous version of 4D Plugin SDK and mix them manually in your v11 project.

 - François Marchal (4D)
**********************************************************************
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: Altura Support on 4D v11?

by Patrick de Boer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello François,

Thanks for your answer, I came to the conclusion that it's best to remove the dependency on the Altura library altogether when moving to 4D v11, also in the light of future developments.

It does seem that 4D v11 uses a new version of the ASINTPPC.dll that is not compatible with the previous ASINTPPC.lib? (which would make sense if they've added additional functions etc.)

Regards,
Patrick de Boer.


-----Original Message-----
From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Francois Marchal
Sent: donderdag 10 juli 2008 11:36
To: 4D Plugin Talk
Subject: RE: Altura Support on 4D v11?

Hello,

4D Plugin SDK v11 no longer support Altura, but plugins written with oldest version of 4D Plugin SDK will continue to run for this version at least.

If you want to start or update a plugin using 4D Plugin SDK v11 and Altura, you can still get some Mac2Win elements in previous version of 4D Plugin SDK and mix them manually in your v11 project.

 - François Marchal (4D)
**********************************************************************
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@...
***********************************************************************

**********************************************************************
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: Altura Support on 4D v11?

by Francois Marchal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I came to the conclusion that it's best to remove the dependency on the Altura library altogether when moving to 4D v11, also in the light of future developments.

Right!

> It does seem that 4D v11 uses a new version of the ASINTPPC.dll that is not compatible with the previous ASINTPPC.lib? (which would make sense if they've added additional functions etc.)

DLL binaries are probably different, but any plugin linked with the ASINTPPC.lib of any previous version of 4D Plugin SDK will work on 4D v11.

 - François Marchal (4D)
**********************************************************************
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: Altura Support on 4D v11?

by Patrick de Boer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I still have a problem with the new DLL then, I use GetIndString(..) to iterate over my plug-in's API definitions and that no longer works with the new .DLL, it always returns an empty string.




-----Original Message-----
From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Francois Marchal
Sent: donderdag 10 juli 2008 16:43
To: 4D Plugin Talk
Subject: RE: Altura Support on 4D v11?

> I came to the conclusion that it's best to remove the dependency on the Altura library altogether when moving to 4D v11, also in the light of future developments.

Right!

> It does seem that 4D v11 uses a new version of the ASINTPPC.dll that is not compatible with the previous ASINTPPC.lib? (which would make sense if they've added additional functions etc.)

DLL binaries are probably different, but any plugin linked with the ASINTPPC.lib of any previous version of 4D Plugin SDK will work on 4D v11.

 - François Marchal (4D)
**********************************************************************
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@...
***********************************************************************

**********************************************************************
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: Altura Support on 4D v11?

by Francois Marchal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

GetIndString is still referenced in ASINTPPC.DEF as function number 302.
You should investigate probably elsewhere, did you try GetResource on
the STR# resource?
**********************************************************************
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: Altura Support on 4D v11?

by Patrick de Boer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I can't even open a resource file in my plugin under 4D v11 :S

The following code always returns -1:
(I've tried different .RSR files).

short resFile; = PA_OpenResFile( "F:\\Dev\\ASx\\Plugins\\ASloader.RSR" );

Under 2004.7 it returns 0 (after that I still have trouble accessing the resources, but at least the resource file is open).




-----Original Message-----
From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Francois Marchal
Sent: donderdag 10 juli 2008 18:14
To: 4D Plugin Talk
Subject: RE: Altura Support on 4D v11?

GetIndString is still referenced in ASINTPPC.DEF as function number 302.
You should investigate probably elsewhere, did you try GetResource on
the STR# resource?
**********************************************************************
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@...
***********************************************************************

**********************************************************************
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: Altura Support on 4D v11?

by Francois Marchal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Patrick,

PA_OpenResFile does not open Mac resource files, it is used to open 4DB files (they are "kind of" resource files but with our own internal format).

When your plugin is called, the plugin resource file is opened by 4D and added to the link chain, you have nothing to do, you can just call GetResource to get any Mac resources stored in the plugin RSR file.

HTH,

 - François Marchal (4D)
**********************************************************************
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: Altura Support on 4D v11?

by Patrick de Boer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello François,

I've choosen a pragmatic solution, I've exported the STR# resource that I needed to a file then used that file in my code.

Regards,
Patrick de Boer.


-----Original Message-----
From: 4D-Plugins@... [mailto:4D-Plugins@...] On Behalf Of Francois Marchal
Sent: vrijdag 11 juli 2008 17:11
To: 4D Plugin Talk
Subject: RE: Altura Support on 4D v11?

Hello Patrick,

PA_OpenResFile does not open Mac resource files, it is used to open 4DB files (they are "kind of" resource files but with our own internal format).

When your plugin is called, the plugin resource file is opened by 4D and added to the link chain, you have nothing to do, you can just call GetResource to get any Mac resources stored in the plugin RSR file.

HTH,

 - François Marchal (4D)
**********************************************************************
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@...
***********************************************************************

**********************************************************************
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