Hi all !
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password
on the command line .
I want to change the original code to ask the password with a password
dialog box .
----------------------- |
| Enter password |
| _______________ ___ |
| | | |
| ------------------ |
| ________ |
| | OK | |
| -------- |
|-----------------------|
Can someone let me know how i can do that as simple as possible in C .
It's important for me to write this part in C and not in C++ .
Thanks a lot for your help... 10 4216
"Fred" <iz****@yahoo.c om> wrote in message
news:33******** *************** ***@posting.goo gle.com... Hi all !
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C . It's important for me to write this part in C and not in C++ .
Thanks a lot for your help...
You can manipulate input and a form with ansi control sequences.
Something which is off-topic for this newsgroup.
Alternatively, you can try: comp.os.ms-windows.program mer.misc
Thanks for your answer and sorry to be off-topic for this newsgroup,
but is that possible to have code samples to manipulate input and a
form with ansi control sequences ?
Thanks...
"j" <ja**********@b ellsouth.net> wrote in message news:<Rm******* ***********@big news6.bellsouth .net>... "Fred" <iz****@yahoo.c om> wrote in message news:33******** *************** ***@posting.goo gle.com... Hi all !
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C . It's important for me to write this part in C and not in C++ .
Thanks a lot for your help...
You can manipulate input and a form with ansi control sequences. Something which is off-topic for this newsgroup.
Alternatively, you can try: comp.os.ms-windows.program mer.misc
I don't know if i have to use the ansi control sequences to do a
graphical like dialog in a "textual mode", but what i want to do is a
graphical dialog .
I've seen that we can use ".rc" files but i don't know how to use
them...
"j" <ja**********@b ellsouth.net> wrote in message news:<Rm******* ***********@big news6.bellsouth .net>... "Fred" <iz****@yahoo.c om> wrote in message news:33******** *************** ***@posting.goo gle.com... Hi all !
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C . It's important for me to write this part in C and not in C++ .
Thanks a lot for your help...
You can manipulate input and a form with ansi control sequences. Something which is off-topic for this newsgroup.
Alternatively, you can try: comp.os.ms-windows.program mer.misc
In <33************ **************@ posting.google. com> iz****@yahoo.co m (Fred) writes: Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C .
Sure:
puts(" +----------------------+");
puts(" | Enter password |");
puts(" | +----------------+ |");
puts(" | | | |");
puts(" | +----------------+ |");
puts(" | +------+ |");
puts(" | | OK | |");
puts(" | +------+ |");
puts(" +----------------------+");
It's important for me to write this part in C and not in C++ .
It's as standard C as you can get ;-)
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
On 5 Nov 2003 15:36:43 GMT, Da*****@cern.ch (Dan Pop) wrote: In <33************ **************@ posting.google. com> iz****@yahoo.co m (Fred) writes:
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C .
Sure:
puts(" +----------------------+"); puts(" | Enter password |"); puts(" | +----------------+ |"); puts(" | | | |"); puts(" | +----------------+ |"); puts(" | +------+ |"); puts(" | | OK | |"); puts(" | +------+ |"); puts(" +----------------------+");
But this relies on the implementation to supply a touchscreen! Undefined
behaviour and offtopic on c.l.c.
Fred wrote: "j" <ja**********@b ellsouth.net> wrote in message news:<Rm******* ***********@big news6.bellsouth .net>...
"Fred" <iz****@yahoo.c om> wrote in message news:33****** *************** *****@posting.g oogle.com...
Hi all !
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C . It's important for me to write this part in C and not in C++ .
Thanks a lot for your help...
You can manipulate input and a form with ansi control sequences. Something which is off-topic for this newsgroup.
Alternatively , you can try: comp.os.ms-windows.program mer.misc I don't know if i have to use the ansi control sequences to do a graphical like dialog in a "textual mode", but what i want to do is a graphical dialog . I've seen that we can use ".rc" files but i don't know how to use them...
Again, as you were told, you will have much better help in a
MS Windows newsgroup or a newsgroup about your compiler.
Also, consult a book by Charles Petzold.
--
Thomas Matthews
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book
On 5 Nov 2003 06:05:31 -0800, iz****@yahoo.co m (Fred) wrote: Thanks for your answer and sorry to be off-topic for this newsgroup, but is that possible to have code samples to manipulate input and a form with ansi control sequences ?
Ah, since you know it's off-topic, why are you posting it here? "j"
already suggested a more appropriate newsgroup.
--
Al Balmer
Balmer Consulting re************* ***********@att .net
In <q2************ *************** *****@4ax.com> rihad <ri***@mail.r u> writes: On 5 Nov 2003 15:36:43 GMT, Da*****@cern.ch (Dan Pop) wrote:
In <33************ **************@ posting.google. com> iz****@yahoo.co m (Fred) writes:
Newbie in C programming needs help please ...
I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the password with a password dialog box .
----------------------- | | Enter password | | _______________ ___ | | | | | | ------------------ | | ________ | | | OK | | | -------- | |-----------------------|
Can someone let me know how i can do that as simple as possible in C .
Sure:
puts(" +----------------------+"); puts(" | Enter password |"); puts(" | +----------------+ |"); puts(" | | | |"); puts(" | +----------------+ |"); puts(" | +------+ |"); puts(" | | OK | |"); puts(" | +------+ |"); puts(" +----------------------+");
But this relies on the implementation to supply a touchscreen! Undefined behaviour and offtopic on c.l.c.
What part of my code relies on a touch screen? A teletype is just fine
for my code. Although I'm not sure if Windows still supports the CTTY
command from the "good" old MSDOS days...
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
"Dan Pop" <Da*****@cern.c h> wrote: What part of my code relies on a touch screen? A teletype is just fine for my code. Although I'm not sure if Windows still supports the CTTY command from the "good" old MSDOS days...
<OT>
The one that didn't work for the majority of programs
because they bypassed the slow DOS text I/O routines?
If you want to experience those days all over again,
you can run 'agetty' under Cygwin.
</OT>
--
Simon. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: j-marvin |
last post by:
hi-
i am going through the process of password protecting a directory using
..htaccess and .htpasswd
i am experiencing difficulty. so my question is without making life
anymore difficult is if the webhost already has a password protected
directory option is this secure enough? i dont need password protection
at
the directory level and at the file level do i? i want to protect the
|
by: Jean |
last post by:
Hi everyone,
I was hoping somebody could assist me in this issue. I am quite a
newbie to ODBC connections and was struggling to search for related
topics. Here is my situation:
I have a Access 2000 .mdb file which has several linked tables to a
ODBC data source, namely an Oracle back-end. I have already setup the
connctions to these back-end tables in the ODBC Administrator, and it
works fine. When I view one of these tables for the...
|
by: thoducng |
last post by:
I am writing some code to access share folder on a remote network.
DirectoryInfo dicInfo = new DirectoryInfo("remoteNetwork\shareFolder");
if (dicInfo.Exists)
{
//application code followed
|
by: GregS |
last post by:
We have a client that has a very large number of users that will be connecting back to the domain via VPN only. The problem is that the communications vendor can not pass the password expiration notice back to the client. What we would like to do is run a script or application after the vpn tunnel is established that checks the number of days remaining before the password expires and then give the user a prompt to change their password when a...
|
by: Jim M |
last post by:
I've been distributing a fairly mature, very specific MS Access
application to end users in small offices of colleges for several years
now. This is a part-time venture and low volume operation- this is
somewhat of a hobby for me. Many of my end users are computer phobic
and get little support from their IT departments. It is a split
database so the datafile gets put on the file server and the 3
different front ends get put on each local...
| |
by: bartonc |
last post by:
#Boa:Dialog:DBConnectDialog
import wx
##"""Given a set if login specs, create a dbServer instance and
## ensure that there is a valid, open connection to the database.
## If not, set the dbConnect to None.
## spec: dict(UserName=name, Password=pswd, ServerName=host)
## Allow names to be set with Default Holder. Consiter Dictionary
## or even a tuple? (name, pswd, host)"""
|
by: ldpfrog |
last post by:
This is my first tutorial, so if there are any mistakes please forgive me =).
This will show you a very simple way to read your Login information from an outside text file.
What you need:
1. Add a new "Login Dialog" form to your project.
2. Completely erase the code inside of it, but keep the interface.
3. Create a text file listing your usernames and passwords one line after the other.
Your text file should look like this (without...
|
by: Charlotte |
last post by:
Hello,
info: I'me a rookie with IIS
I have on a WinXP Pro the IIS installed, so I can test some pages before
uploading to the hostserver online
on the hostserver is a possibility (with the program PLESK) to make a
directory secure
(to access a page in that directory, you have to give a username and a
|
by: Steve |
last post by:
Hi guys,
You know how annoying it is when Visual Studio keeps asking you for a
username and password to access TFS? I figured it would be easy to
write a little System Tray utility that could use SendKeys to enter
the username and password into the dialog box and click the OK button.
(I ultimately plan on making the application generic so that it'll
work with any application that requires information to be entered in a
dialog box.)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |