Solved

Connecting to the AppServer using Socket

Posted on 2002-07-15
4
226 Views
Last Modified: 2010-04-04
Hi,
 I am new to delphi and i am doing an application using socket connection.The feature that i need is a login.I have made the server using Remote data module and the client is connecting to the server using the socket connection.

Can someone help me out in passing the information entered by the user to the server database to check that the login information is correct.


Regards
Anna.
0
Comment
Question by:anna_1315
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:aubs
Comment Utility
Hi Anna,

What version of Delphi are you using?

I have a brief tutorial on MIDAS based on D5 using Oracle database. It should point you in the right direction.

It is 160kB Word document.

http://www.complete-git.co.uk/MIDAS/MIDAStut.doc

I could explain here, but it is easier to show you screen shots.

regards

Aubs
0
 

Author Comment

by:anna_1315
Comment Utility
Dear Aubs,
 Thanks a lot for the same,i shall look into it.I am using D5.i was able to create the server using the Remote Data module  and connect to it using socket connection.Also i am using the Datamodule(customer data).My database is Paradox.

Problem:
Login feature to check the user has entered the correct user name and password.In order to do that i have created a custom method called login with parameters username and password as Varient using the type libary.Now i have called the method in the login screen,but it says type mismatch error when running.

Here is the code that i have used in remote data module:

procedure TAppServerP.Logon(username, password: OleVariant);
begin
  showMessage('hi');
end;

and here is the code i have used in login form.

 customerdata.socket.Connected := true;
 ip := '192.168.0.1';
 customerdata.Socket.AppServer.Logon(username.Text,Password.Text);

Can you help me out?

Warm Regards
Anna.
0
 
LVL 2

Accepted Solution

by:
aubs earned 25 total points
Comment Utility
You need to create the interface for the Logon function.

Have a look at page 6:

Choose View > Type Library...
0
 

Author Comment

by:anna_1315
Comment Utility
thanks aubs,
 i made it work :)

Regards
Anna.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now