Hello,

A) First use IMPORT WIZARD to create format definition that properly imports
the data. You may use error.log to see what went wrong if it does not import.
The return value only means if imported file and data definition file were 
found, successfully opened and processed.
Whenever data were added or not depends if format definition is OK.
Again see error.log (if $DEBUG 1 is specified) for details on what data lines 
caused problem during importing

B) Go to Tools->Plugins - you should see your plugin there. And no, nothing 
more is needed
than copying the plugin HOWEVER, if you compile your plugin on one machine and
move the DLL on second machine you should make sure that any libraries you use 
in
your DLL are present on target machine. AmiBroker uses for example MFC6.0 that 
is present in all windows after 2K and
installed during AB setup in any versions prior to that, and samples were 
prepared for Visual C++ 6 and they work
without hassle when compiled with VC6.

Now if you compile your DLL with 
any newer version (like VC7 or .NET or 2005) you should be aware that they 
produce
DLLs that refer to newer versions of libraries that are usually NOT present on 
plain Windows installations
and you need to create the setup yourself or link statically to any libraries 
you use.


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "shweta_shalini21" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 22, 2007 6:52 PM
Subject: [amibroker] Re: Tomasz, what is wrong with the code?


> Hi Tomasz,
> 
> M/Thnx for clearing that up.
> 
> But if the return value is zero and if it means success why the 
> quotes are nto being imported into AB.
> 
> I am pasting the code i am using again for ur kind attention:
> 
> ab = CreateObject("broker.application")
>> > For Each foundFile As String In Mydir
>> > Dim ret As Long = ab.import(0, foundFile, formatname)
>> > MsgBox(foundFile + CStr(ret))
>> > Next
>> > ab.refreshall()
>> > ab.savedatabase()
>> > ab.QUIT()
> 
> where am i going wrong? the broker.exe file shows in task manager and 
> may be the quotes are being imported there but then why it isnt 
> saving the quotes.
> 
> BB)After compiling ascii.DLL compiled from ADK and pasting it to 
> plugins folder. do i need to do any thing else?
> the ascii plugin is not showing in the deop down menu of database 
> settings.Have i missed any step?
> 
> M/Thnx!
> 
> 
> 
> --- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> 
> wrote:
>>
>> AB.Import does not return boolean, but an integer error code.
>> Return value = 0 actually means SUCCESS.
>> Values other than 0 are various error codes.
>> 
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "shweta_shalini21" <[EMAIL PROTECTED]>
>> To: <[email protected]>
>> Sent: Monday, October 22, 2007 11:25 AM
>> Subject: [amibroker] Re: Tomasz, what is wrong with the code?
>> 
>> 
>> > Hi Cassian,
>> > 
>> > I am caught in same place as ur query.AB.Import function is 
> failing 
>> > and returns the value of 0. I am using flwg format
>> > 
>> > ab = CreateObject("broker.application")
>> > For Each foundFile As String In Mydir
>> > Dim ret As Long = ab.import(0, foundFile, formatname)
>> > MsgBox(foundFile + CStr(ret))
>> > Next
>> > ab.refreshall()
>> > ab.savedatabase()
>> > ab.QUIT()
>> > 
>> > 
>> > When i used it for first time it updated my database but has been 
>> > failing since.i have stopped broker.exe using task manager, but 
> still 
>> > the importing isnt sucessful.
>> > 
>> > I have tried importing data using same format file and same data 
> file 
>> > using Import Ascii manually in AB and that is successful.
>> > 
>> > Can u tell me any workaround u have found for this problem.
>> > 
>> > When i try ab.visible=true then i can see two ab instaces in task 
>> > manager.
>> > 
>> > BB)Have u tied ascii plugin as given in ADK.i tred using that 
> even 
>> > for importing data.but that plugin isnt showing in the plugins 
> list 
>> > when i open database settings. i have put ascii.dll to plugins 
> folder 
>> > but havent changed any other setting.
>> > 
>> > Am i missing sumthing here.
>> > 
>> > I am running Ab 5.0 and using VB application to import EOD as 
> well as 
>> > intraday data using diff modules.
>> > 
>> > Rgds
>> > 
>> > --- In [email protected], "cassianoqs" <cassianoqs@> 
> wrote:
>> >>
>> >> RefArrayName = ParamStr("Ref. Array name","DateRef");
>> >> 
>> >> RefArrayPath = "C:\\Program Files\\AmiBroker\\CustomData\\";
>> >> 
>> >> RefPathName        = RefArrayPath+RefArrayName+".txt";
>> >> 
>> >> AB = CreateObject("broker.application");
>> >> 
>> >> AB.Import(RefPathName, "Custom1.format");
>> >> 
>> >> 
>> >> 
>> >> 
>> >> --- In [email protected], "Prashanth" <prash454.ta@> 
> wrote:
>> >> >
>> >> > Which Code?????????????
>> >> > 
>> >> > Prashanth
>> >> >   ----- Original Message ----- 
>> >> >   From: cassianoqs 
>> >> >   To: [email protected] 
>> >> >   Sent: Friday, September 21, 2007 11:13 PM
>> >> >   Subject: [amibroker] Tomasz, what is wrong with the code?
>> >> > 
>> >> > 
>> >> >   Please advice,
>> >> > 
>> >> >   Thanks...
>> >> >
>> >>
>> > 
>> > 
>> > 
>> > 
>> > Please note that this group is for discussion between users only.
>> > 
>> > To get support from AmiBroker please send an e-mail directly to 
>> > SUPPORT {at} amibroker.com
>> > 
>> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> > http://www.amibroker.com/devlog/
>> > 
>> > For other support material please check also:
>> > http://www.amibroker.com/support.html
>> > 
>> > Yahoo! Groups Links
>> > 
>> > 
>> > 
>> > 
>> >
>>
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>

Reply via email to