• MikroTik.com
  • RouterBOARD
  • User Meeting
  • Training
  • User Manual
  • Support
  • Downloads
  • Videos
Register |   * Login | HOME

View unanswered posts | View active topics

API in Visual Basic 6 working fine!  Page 1 of 1
 [ 14 posts ]  Post new topic Reply to topic
  Print view Previous topic | Next topic 
Author Message
lucho512
 Post subject: API in Visual Basic 6 working fine!
PostPosted: Mon May 09, 2011 6:52 pm 
Offline
just joined

Joined: Mon Aug 16, 2010 11:21 pm
Posts: 10
Karma: 2
hi forum, after much searching, I found an example for the management of the api in vb6 posted by Royce3, after some minor alterations to make to achieve it to work well, AUI I leave so they can experience and that You will not find any echo in vb6 to handle the api. I hope this will be useful, and discuss their progress, I keep working !!!..

Greetings.


Attachments:
TESTAPIVB6.JPG
TESTAPIVB6.JPG [ 28.86 KiB | Viewed 3378 times ]
MKT API Test.rar [11.37 KiB]
Downloaded 1107 times
Top
 Profile  
 
SamWCL
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Mon May 09, 2011 7:31 pm 
Offline
Frequent Visitor
Frequent Visitor

Joined: Mon Apr 20, 2009 12:18 pm
Posts: 62
Karma: 0

Location: Wellington/Auckland, New Zealand
good job!

_________________
Wundr Networks
New Zealand


Top
 Profile  
 
inibir
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Tue Sep 06, 2011 9:32 am 
Offline
Member Candidate
Member Candidate

Joined: Thu Nov 25, 2010 2:25 pm
Posts: 109
Karma: 0

Location: lebanon
its not work

his return this msg

Code:
(Connecting)
ws_Error: Connection is forcefully rejected


Top
 Profile  
 
normis
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Tue Sep 06, 2011 10:55 am 
Offline
MikroTik Support
MikroTik Support
User avatar

Joined: Fri May 28, 2004 10:04 am
Posts: 17153
Location: Riga, Latvia
inibir wrote:
its not work

his return this msg

Code:
(Connecting)
ws_Error: Connection is forcefully rejected



did you enable the API on RouterOS?

_________________
No answer to your question? How to write posts


Top
 Profile  
 
inibir
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Thu Sep 08, 2011 9:28 pm 
Offline
Member Candidate
Member Candidate

Joined: Thu Nov 25, 2010 2:25 pm
Posts: 109
Karma: 0

Location: lebanon
took 9 months trying to fix it, I knew I had to do to enable the API

tanks normis


Top
 Profile  
 
kurei
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Mon Oct 10, 2011 10:48 am 
Offline
just joined
User avatar

Joined: Tue Aug 11, 2009 8:29 am
Posts: 23
Karma: 0
WORKS PERFECTLY !!!

I've learned java and VB.NET, but I think, I'm still loving this classic things.

Spend one year to make API in visual basic, but I got nothing. :lol:


Top
 Profile  
 
lucubrb
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Sat Nov 05, 2011 5:06 pm 
Offline
just joined
User avatar

Joined: Sat Nov 05, 2011 5:00 pm
Posts: 1
Karma: 0

Location: localhost - 127.0.0.1
inibir wrote:
its not work

his return this msg

Code:
(Connecting)
ws_Error: Connection is forcefully rejected


ip - service

did you enable api?

i used ros 5.8 and working properly.

Great job, TS.


Top
 Profile  
 
DorisLam
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Thu Apr 12, 2012 2:16 pm 
Offline
just joined

Joined: Tue Aug 30, 2011 11:34 pm
Posts: 1
Karma: 0
The script is working fine for me, the API is enabled and I can log in the router.

When I click SEND, I can see the same results. The probleme is when I click again on SEND, I get the OLD result + the new one. I cleared the text field before clicking SEND (txtout.text=""), but same problem. It seem the buffer is not clearing after the command is executed. I suspect the inbuf1 variable.


Thanks for your help


Top
 Profile  
 
ax045Y
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Sat Apr 21, 2012 10:33 pm 
Offline
just joined

Joined: Sat Apr 21, 2012 10:30 pm
Posts: 8
Karma: 0
is this script run correcly at v 5.12?


Top
 Profile  
 
lucho512
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Sun Apr 22, 2012 1:01 am 
Offline
just joined

Joined: Mon Aug 16, 2010 11:21 pm
Posts: 10
Karma: 2
ax045Y wrote:
is this script run correcly at v 5.12?


Yes, working fine!!!


Top
 Profile  
 
ax045Y
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Tue Apr 24, 2012 8:25 pm 
Offline
just joined

Joined: Sat Apr 21, 2012 10:30 pm
Posts: 8
Karma: 0
lucho512 wrote:
ax045Y wrote:
is this script run correcly at v 5.12?


Yes, working fine!!!

what wrong with mine?
its error when copile to make .exe file

Image


Top
 Profile  
 
ditonet
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Tue Apr 24, 2012 10:55 pm 
Offline
Long time Member
Long time Member

Joined: Sun Oct 18, 2009 11:52 pm
Posts: 673
Karma: 33

Location: Europe/Poland/Konstancin-Jeziorna
@ax045Y
Do not use Package and Deployment Wizard to compile project, use VB6 IDE 'File/Make...' command instead.
In this case compiler shows you what and where is wrong with code.
This API example works fine, problem is with 'CRAM_MD5' function in 'MD5.cls'.
Remove this function and you will be able to compile this example to .EXE.

HTH,

_________________
Grzegorz | IT Warszawa


Top
 Profile  
 
ax045Y
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Thu Apr 26, 2012 12:21 pm 
Offline
just joined

Joined: Sat Apr 21, 2012 10:30 pm
Posts: 8
Karma: 0
ditonet wrote:
@ax045Y
Do not use Package and Deployment Wizard to compile project, use VB6 IDE 'File/Make...' command instead.
In this case compiler shows you what and where is wrong with code.
This API example works fine, problem is with 'CRAM_MD5' function in 'MD5.cls'.
Remove this function and you will be able to compile this example to .EXE.

HTH,

:D
thanks..
anyway i have new problem.
what command to enable user?

Image

hmm,,
so this api just can do 1 line command?


Top
 Profile  
 
bastakboys
 Post subject: Re: API in Visual Basic 6 working fine!
PostPosted: Tue Oct 09, 2012 7:39 am 
Offline
just joined

Joined: Tue Oct 09, 2012 7:15 am
Posts: 1
Karma: 0
do you have a vb.net source


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 14 posts ] 

Board index » RouterOS » General

All times are UTC + 2 hours


Who is online

Users browsing this forum: chrisintaipei, mkmv, xmorpheus and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y