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,...
Thanks. I did find that and tried it but had a problem with it. While it did actually toggle the auto arrange functionality, the change did not show up in the desktop menu that comes up when you right click an empty icon position on the desktop. That menu item is still checked even when auto arrange is off and vice versa.
The desktop doesn't expose its menu so I searched the desktop for an unused icon position and used sendinput to move the mouse pointer there, right click, and then send key strokes to manipulate the menu itself. It's a bit messy but it works reliably. Fortunately I already had code to do the sendinput from another project.
buf contains the string of the removable drive e.g H:\
I am willing to find the no.of shortcuts found in my removable drive,
I have successfully achieved my will using FindFirstFile and FindNextFile functions but by using the maual locations like this
wchar_t* location = L"H:\\*lnk";
but when I use my buf like this I get an error
wchar_t location = buffer + "*lnk"/*
then my code
Here the function gets the "buf" value. I checked with a message box and found that the drive is correctly acquired with my function.
But I can't add it with some locations in order to do the iteration.
Two pointers cannot be added
What I have tried:
This a quiet rare experience to me so I tired with strcpy, memcpy, adding * the & befor the buffer in this part "wchar_t location = buffer + "*lnk" but every thing is complicating the issues so I did considered to ask some help.
Thank you sir for your time
Last Visit: 31-Dec-99 18:00 Last Update: 22-Oct-17 0:49