Results 1 to 12 of 12
  1. #1
    AlgoNaute
    Guest

    Default Error loading DLL in Vertex Bridge LP API Tester

    Hi Hybrid,

    I am trying to write an API for Fx Vertex Bridge LP.

    I have create a C# librairies project in Visual Studio 2008. I have added VertexFXBridgeLPAPI.dll in my references.

    I have created a class named LP and the class is derived from VertexFXLP. I have overrided all functions and my project is building. For now the functions are empty.

    My dll created has a name that begins by "VPX".

    I start the Vertex Bridge LP API Tester and load the dll. I get the following error: "Could not load or invalid LP Reference".

    Would you know possible reasons for that?

    Many thanks and regards,
    Nicolas Vitale

  2. #2

    Exclamation Wrong name prefix

    Hello Nicolas,


    From your post, I witnessed that the name prefix of his DLL is incorrect; We mentioned at Bridge API help page that the name prefix is "VFX" and not "VPX" (You may refer to related topic by Clicking Here. Please re-do the steps again with the name prefix of "VFX" then retry testing the DLL.

    You also may refer to VertexFX Birdge LP API Documentation Index by Clicking Here

  3. #3
    AlgoNaute
    Guest

    Default

    Hello,

    thank your for your assistance.

    I mispelled the prefix writing the message. My DLL had the good prefix VFX.
    My .NET version is 3.5. Can it explain the issues?

    Thanks and regards,
    Nicolas

  4. #4

    Lightbulb

    As we never tested this on previous versions of .NET Framework, I suggest upgrading your .NET Framework to 4 then update us. Note that we tried from our end the exact procedure using the default DLL sample and we were able to load it successfully.

  5. #5
    AlgoNaute
    Guest

    Default

    PHP Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using VertexFXBridgeLPAPI;

    namespace 
    VFXAlphaLMAXBridge
    {
        public class 
    LP VertexFXLP
        
    {

            public 
    LP()
                : 
    base("Your Description "false)
            {
            }

            public 
    override bool ValidateParameter(string Parameterstring Value)
            {
                switch (
    Parameter)
                {
                    case 
    "login":
                        return 
    Value != "";

                    case 
    "password":
                        return 
    Value != "";

                    
    /*case "Server":
                    return Value != "";

                    case "Port":
                    return Value != "" && (int.Parse(Value)!=0);*/
                
    }
                return 
    true;
            }

            public 
    override void Initialize()
            {

            }

            public 
    override TransResult Connect()
            {
                return new 
    TransResult(true"");
            }

            public 
    override TransResult Disconnect()
            {
                return new 
    TransResult(true"");
            }

            public 
    override TransResult NewLimitOrder(LimitOrderType LOTypedouble Amountstring LPSymbolNamedouble Pricestring LPAccountIDstring BOOrderID)
            {
                return new 
    TransResult(true"");
            }

            public 
    override TransResult NewMarketOrder(OperationType BuySelldouble Amountstring LPSymbolNamestring LPAccountIDstring BOOrderID)
            {
                return new 
    TransResult(true"");
            }

            public 
    override LPSymbol Symbol(int Index)
            {
                return new 
    LPSymbol(""00);
            }

            public 
    override LPSymbol Symbol(string Name)
            {
                return new 
    LPSymbol(""00);
            }

            public 
    override long SymbolsCount()
            {
                return 
    0;
            }

        }

    Last edited by AlgoNaute; 04-03-2012 at 08:02 PM.

  6. #6

    Default

    Hello Nicolas,

    As per of your code, the constructor should be public and should not have parameters, please review the below code,

    Code:
    public  LP()
            : base( "Your Description ", false)
            {
    Then continue building your DLL and continue the rest of the steps mentioned at Bridge API Help Page.

  7. #7
    AlgoNaute
    Guest

    Default

    Thank you a lot for your help, but I still get the issue.

    Would it not be possible to test this empty class and put on the forum a version that is working for sure?

    It will probably be very easy for you.

    Thanks a lot.
    Nicolas

  8. #8

    Lightbulb Assembly name prefix

    Nicolas,

    You need is to build your own .NET Class Library project, with Assembly name prefix VFX from project properties. The project should have class name LP inherited from VertexFXBridgeLPAPI.VertexFXLP. Make sure you have done the stated step and let us know the result.

    Because the LP Tester was made under a different .NET Frame work, the error may occur and that the DLL could load in the bridge but not in the Tester. I suggest downloading the LP API again and re-install it. It should fix the problem you are experiencing.

    Best of luck.

    Thank you.
    Last edited by Yousef-HS; 04-05-2012 at 09:10 AM.

  9. #9
    AlgoNaute
    Guest

    Default

    Yousef, you can see in the code above that the class name is LP and inherits from VertexFXLP...
    As per assembly name, yes I have VFX as assembly prefix as stated in message 3 of this topic.
    I can send you my solution if you want.

  10. #10

    Default

    Hello,

    Because the LP Tester was made under a different .NET Frame work, the error may occur and that the DLL could load in the bridge but not in the Tester. I suggest downloading the LP API again and re-install it. It should fix the problem you are experiencing.

    Let me know how it goes.

  11. #11
    AlgoNaute
    Guest

    Default

    Thanks Yousef. DLL is loading now so the issue has been solved by your last version.

  12. #12

    Thumbs up Great

    I'm glad everything is working now as should be. Best of luck in your project and don't hesitate to start a new thread if you need any further assistance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vertex back office API
    By abdulsattar in forum VertexFX API/VTL Forum
    Replies: 16
    Last Post: 01-20-2011, 01: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
  •