I write a program about authentication fingerprint.
For example, cursor is on notepad window or on textbox of any program, If the authentication process is right, I want to display "Yes" characters to position where cursor is blinking. If display at textbox of this program, this process is easy. However, I want to display at textbox of other program as skype program, google chrome program or notepad program.
You wanna modify your title of this thread because your other thread has the EXACT same title, do it before the moderators or admin takes some hard action against you.
But anyways, a Google(R) search here may give the answer, I mean hey Google may suck from time to time, but why not give it a try? your be surprised what you may find, try looking on the other pages except the first page of results.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
I need ftp C/C++ functions/classes to process ftp uploading/downloading tasks.
When I used software [FileZilla FTP Client], it sends/obtains many interesting events/messages, such as:
Status: Resolving address of www.xyz.com
Status: Connecting to 11.222.333.444:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response: 220-You are user number 3 of 1000 allowed.
Response: 220-Local time is now 15:16. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER xyz
Response: 331 User xyz OK. Password required
Command: PASS *****************
Response: 230 OK. Current restricted directory is /
Response: 215 UNIX Type: L8
Response: 211-Extensions supported:
Response: REST STREAM
Response: MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
Response: AUTH TLS
Response: 211 End.
Status: Retrieving directory listing...
Response: 257"/"is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Response: 227 Entering Passive Mode (74,220,215,241,4,101)
Response: 150 Accepted data connection
Response: 226-Options: -a -l
Response: 22633 matches total
Status: Directory listing successful
(many more ...)
Those events are very useful and in details, I think MFC FTP classes are NOT powerful enough to process them.
What FTP C/C++ functions/classes are used by [FileZilla FTP Client] (or better than them)? I'd like to try them.
In MFC, you should not directly access UI elements from background threads.
Instead, you must send messages to the UI thread to get and set elements for the UI.
Use can use SendMessage or PostMessage.
Not entirely true.
The reason for not accessing UI elements from another thread than the main thread is that you can quite easily create a deadlock situation. MFC classes for UI elements uses ::SendMessage() which will block until the message has been handled. If the main thread is not processing messages, possibly waiting for the thread that manipulates the UI element, the application will deadlock.
This of course means that you cannot use ::SendMessage(), even if you call it directly, as it would create the same potential deadlock situation.
::PostMessage() must be used since it doesn't wait for the message to be handled. It is possible to use ::SendMessageTimeout() to avoid a deadlock situation, but if the call fails the receiving thread never gets the message.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown