Solved

Connecting to the AppServer using Socket

Posted on 2002-07-15
4
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:aubs
ID: 7156875
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
ID: 7156962
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
ID: 7157089
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
ID: 7185390
thanks aubs,
 i made it work :)

Regards
Anna.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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