If you are a learner, my recommendation will be to learn MFC instead of Win32, there is just one thing that it won't be much C but C++ as MFC provides a much easier and friendly interface for beginners to learn basic programming. MFC uses native Win32 handling and allows you to write the applications, instead of managing the low-level details of it; Win32 goes deep.
I already started win32 api. I know the basic.
I want to develop a program which support education.
The program I want to do this
In the first page or window a list of buttons(Eg. Physics, Mathematics...)
When user click on this buttons a new screen with a list of buttons(Example in Physics button- Static, Dynamics...)
After User click on of the button(Example Statics) New window with a full of text that describe about static
Beside this this program has back and home button. Back button backward the on step down. Home button to the initial screen
I have a file which I run with the ftp using the -s switch in the Windows terminal.
The file instruct the FTP-module to get a file from the FTP-server.
I would like to specify the file as a parameter. Is this possible?
For instance the instructions.txt "instructs" the FTP-command what to do:
Then I run everything with this command:
Can I pass the file name as a parameter instead of hard coding the file name in the instructions.txt?
But you can write a small batch / command file that does it for you:
rem send-ftp.cmd: Upload file via FTP
if %1.==. goto err
echo open ftp-server.com > instructions.txt
echo name >> instructions.txt
echo password >> instructions.txt
echo get %1 >> instructions.txt
echo Missing file name parameter
Back in the old days, if I wanted to automate reading emails (including their attachments) doing some processing, then creating and sending new emails (including their attachments), I'd use COM with MAPI objects. This was fairly straight forward to do.
I cannot find any similar way of automating sending / receiving emails for Exchange 365 / Office 365. E365 does not support MAPI. I've looked at 3rd party products but they do not seem to have the ability to do what I want. Is there any APIs / system calls / replacements for MAPI that I can use on an Enterprise version of Exchange?
My plan B is to use MAPI or equivalent on a non-Exchange environment but that would involve using an external email service with a different domain name (not consistent with my organisation's look-and-feel).
The EWS Managed API is the recommended interface for developing client applications that use EWS and Autodiscover to communicate with Exchange. You can use the EWS Managed API to work with email messages, calendar, task, and contact information, and allow programmatic access to mailboxes, public folders, and public folder mailboxes.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I'm trying to use serial port in asynchronous mode,using overlapped structures and event handlers.
signals waiting thread ,when received bytes counts to "BytesToReceive. Ok. But i dont know how many bytes will come. One solution is to set BytesToReceive=1. Its not elegant. Other way is to use timeouts. Then ReadFile signals to waiting thread.
Other -3th- way is to use EvtChar, in my case i know every received packet ends with known character.
I settled event structures and received notification on EV_RXLAG . But how to handle properly?
When this event happens, there are ,let say 10 received bytes, but ReadFile is called with BytesToreceive=100.
I didnt find explanation how to cancel ReadFile and get these 10 bytes.
Any help is welcome!
You should use the default value of 1 so that you get signalled on every byte received. You then transfer each byte to some data buffer which you later process when you have received a minimum number of bytes or when you are able to recognise that a complete message has been received.
I save and restore shortcut (*.lnk and position on desktop) automatically at logoff/logon on the desktop of our users.
It work perfectly but... at first logon for any users, the position is not applied... It work at second logon (and next).
Someone have an explanation?
I have tried to refresh desktop, registry,...