~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

but why?

Probably because of the way in which the object file is generated from the source file...

The actual C / C++ source code goes thorough a lot of transformations and platform specific optimizations during its compilation and building phase which make the source code from the object file to be retrieved almost impossible.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

How about something simple like (this code is not tested, use it just as a sample)

Your form structure:

Username: [textbox]
Password: [textbox]

[ login(button) ] [ cancel (button) ]

Private Sub Login_Click()

    Dim conn As New ADODB.Connection
    Dim rs As New ADODB.Recordset
    
    Dim user As String
    Dim password As String
    
    user = txt_username.Text    'pull data from txt box
    password = txt_password.Text    'pull data from txt box
    
    conn.Open "your_database_connection_string"
    rs.Open "select * from your_login_table"
    
    'make sure rs is not empty
    If rs.BOF = False Then
        While rs.EOF = False
            If user = rs.Fields("Column_Name_For_Username") And _
                password = rs.Fields("Column_Name_For_Password") Then
                MsgBox "Validation successful"
                Exit Sub
            End If
            rs.MoveNext
        Wend
        
        MsgBox "No such user exists"
    Else
        MsgBox "The recordset is empty", vbCritical
    End If
        
End Sub
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I would be better if you could exactly describe your requirements wrt the current code. Is it not working as expected, what is it supposed to do ? What is the concept in short behind this ?

Do you plan on increasing the size of the array during runtime ? If yes then sorry, you can't do that. Normal arrays declared in C can't be increased or decreased in size. You should create your arrays dynamically (on the fly) using pointers if you want such kind of behaviour.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

"If God is for us, who can be against us?" (Romans 8:31)

If God is against us, does it matter who is with us ? [sos 9:11] ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess it would be quite a while. After all she has more pressing matters at her hand than moderating at Daniweb...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Weathered (Creed)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to learn Perl.

I put in some snake skin.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

and refresh yourself.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Plaster on the walls starts to peel off after some time.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Several powerful frequent flyers, filled with AIR, exploding.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

coffee -> slow poison

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello there.

well, It got a little bit of data when I do it that way, but still gave the same output after a few thousand bytes. I think it's a copy-protection thing. I don't know how to get around that though.

I hope you realize that getting around the copy-protection thing constitutes a form of piracy even if you own the game. Getting around this protection is what exactly the pirates do before making copies of the game and selling them illegally. Searching google for "getting around copy protection" will make you realize in which direction you are heading.

It would be really a good thing if you stopped this discussion right there before some other *strict* mod comes around and drops you an infraction.

Thank you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Make you feel better (RHCP)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Well I guess I am good to go when it comes to typing, atleast no spelling mistakes. The only problem I face is of inserting extra spaces between words, spaces which are not required.

And I have also made it a point to do touch typing when I started with computers. Though it was tough at first and a real pain in the neck, I really got used to it.

Now its just me and my monitor, the keyboard just forms an abstraction, a simple interface between me and my computer and is almost non existent....;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

reincarnation => zombies

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

tolerate this kind

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You and me all are a part of this global pool.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I disappear (Metallica)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Thanks S.O.S.

You are most welcome. :D

As i see in your sig your a big fan of knowledge.

;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

14.905 seconds, yay!

...Well, I'm proud...>_>

Atleast you are doing good for yourself....;)

BTW haven't seen Joey around these parts for a long time. Wonder what happened to him challenge driven paradigm...:twisted:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

And I notice that your Einstein has changed your opinion about Daniweb....first it was "Daniweb rocks" and now it is "Daniweb is more fun than Physics". Hope even I am a part of that opinion. ;)

Cool stuff. (I would really like to know how you achieved this...)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Here I will asssume that you know what parse in this particular context means. (walking through the character buffer)

Now I'm intrigued by the part that says "you need to read a character buffer and parse the input yourself"

It simply means accept or read the input from the user or from an opened file stream in a character array (known as a character buffer ) , and then define your own rules what you want to do with the pulled in contents or define how you want to interpret the gathered input.

The great thing about character buffers is that they can be used to accept any kind of input (almost anything) from the user in the form of string (C style strings aka null terminated strings) which you can then parse to treat it the way you want. For example if you are expecting a number from the user, just accept the input from the user in the form of string in a character buffer, check each character individually if it is a digit or not using isdigit( ) and then define your own logic as to what you want to do when you encounter a non digit character.

I would highly recommend you to see the excellent tutorials by Mr. Dave Sinkula on how to stay away from bad programming practices and safely accept the input from the user.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

and give respect

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

... especially hubcaps. And they make a kool noise, toooo. rouwr, rouwr, rouwr, rouwr, rouwr...

Maybe I should have been more explicit, but even this is good, made me laugh...:cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Of course, strlen() always returns the length of the string including the null charecter, but if you subtract 1 you get the actual string length.

Well now thats news to me, since I always thought it returned the number of characters which comprised the string, excluding the null character...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

:?: How do you put a bitmap (or possibly jpeg) image on the screen in Turbo C++ ? I just want to display the picture on the screen for about 15 seconds or so and then move on to another screen. Please Help.

How about something like this or this ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I have already reported your post as "Bad Post" for abusing the topic of the thread....:D

We wanted to see the real Blud, the MMORPG phreak..;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

river -> clear water

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to call me for free.

I put in a kangaroo.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

from now on

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there buddy, welcome to Daniweb. :D

Good to have an expert like you along our side. Hope you will render your help to newbies our there in dire need of help...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

viscous -> free flowing

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Ah...it was just a joke. Mabe I really am lost of sense of humour.

Anyways whenever you feel like changing your name, just let Miss Dani know about it and she will do it for you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

a good deed.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get lifetime virus immunity.

I put in a backpack.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess we should not forget that even n00bs are entitled a fair chance so that they don't remain like that their entire life.
Helping people who are in trouble is what makes a community a good community.

And btw, what goes around always comes around.....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Only by thinking about something can you achieve it. Rash actions lead to rash results.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

it would be

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But since there is a definate pattern here (something is getting replaced or subsituted by something) it always is easy to crack to Substitution or Caesar Cipher. So it won't matter much no matter how long strings you use since there will always be a simple formula which the hacker will look for.

Chossing some tougher 64 bit or 128 bit algos which are commonly used nowadays would be a much better choice. Some of them are RSA (Rivest Shamir Adelman) , MD5 Hash algorithms etc.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Mousetrap -> Vicious

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Words are all that I have got to express my thoughts.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I am mine (Pearl Jam)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to catch a salmon.

I put in a firewall.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

i never liked starwars

Ditto here...I have got better work than playing with tube lights.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Guess you will need to request Dani about that one....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

annoyance -> frustration

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yeah man, down with the transformers...:D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

on our own.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Made for each other, some people are.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

baby got back (Sir Mix-a-lot)