|
|
Thx, It's ok now
|
|
|
|
|
Hi
Anyone know how to determine if a file is opened as Read or Write through any of the APIs...
I need to know as currently i using 2 flags to determine from the class.
Any help will be appreciated.
Thankyou
|
|
|
|
|
I am not sure, but you may have a try on GetFileInformationByHandle(...).
Maxwell Chen
|
|
|
|
|
IceBerG71 wrote:
Anyone know how to determine if a file is opened as Read or Write through any of the APIs...
Do you really need that level of granularity? It's usually sufficient to know whether the file is opened exclusively or not.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hello,
I'm new to windows programming. I am trying to create an application (using win32 API) that locks the windows desktop (but i don't want to go the screen saver route). Can anyone give me any ideas how t ogo about this and probably pointers to where i can find more information. I have searched through the archieves witout much luck.
Thanks
Newbie
|
|
|
|
|
MSDN Library -- Platform SDK -- Security -- GINA.
Maxwell Chen
|
|
|
|
|
hi all,
i have a new project which sends email as:
file address.txt includes tens of email address, such as abc@yahoo.com
file message.txt includes info of email
in my app, once user clicks a button, the message will send to all clients in address.txt
read file is no problem, i don't know functions used for sending email
(do i need to install special software to support those functions?)
thx for any comments and samples
includeh10
|
|
|
|
|
|
You would try for MAPI (Microsoft Messaging Application Programming Interface) for the functionality of sending or receiving mails.
MAPI is a set of functions that mail-enabled and mail-aware applications use to create, manipulate, transfer, and store mail messages.
Hope this would help you. take a try.;)
Jitendra
|
|
|
|
|
If you are using Outlook as your mail client, you can interface to it (via COM) and access its mailing facilities. It's relatively painless, compared to performing all the MAPI code yourself. If you're interested in going down that route, MSDN has some articles about it - search for "Outlook automation".
HTH
|
|
|
|
|
|
Hello all,
trying to get a CBitmapButton working in a modeless dialog
button.Autoload is faling when i call it inthe OnCreate function....
where should i be calling it ? as its obviously in the incorrect place
this, however, works
<br />
pModeless = new MyModeless(this);<br />
pModeless->Create(IDD_DIALOG2);<br />
pModeless->ShowWindow(SW_SHOW);<br />
pModeless->mMyBitmapButton.AutoLoad(ID_HELLO, pModeless);<br />
presumably i need some sort of oninitalupdate function for the dialog
cheers
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
then again
this works too
<br />
MyModeless::MyModeless(CWnd* pParent )<br />
: CDialog(MyModeless::IDD, pParent)<br />
{<br />
this->Create(IDD_DIALOG2);<br />
this->ShowWindow(SW_SHOW);<br />
this->mMyBitmapButton.AutoLoad(ID_HELLO, this);<br />
}<br />
stuff it i'll do that
cheers for your help
Bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
OnInitDialog , same as for a modal dialog.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Does anyone know how to print the contents of an MS Datagrid control? I have no esperience with printing, but if anyone know how I could accomplish this it would be appreciated. Any articles, links, tutorials would be very helpful. Thanks.
- Aaron
|
|
|
|
|
So one day about a week ago i decided that i wanted to write simple encryption program. Being that im new to writing C++ code, and also a newb to VS 6 i decided that i would pick up a number theory book and use my C++ books as a reference to help me along the way to cyrptographic blissfulness, but this is not the case. I have and equations ( E = M^s (mod r) ) where M is the message, s and r are two coprime numbers and E is the encrypted output for the whole equation. Using numbers it works great, but (again beening a newb) I have run into the problem of how do i convert the input of text into and int that the computer can use in the equation? I also ran into the problem of really large numbers that are over 64-bits in length, but i solved that problem with a large number class ( CLargeNumbers ). So here I am stuck with text that i cant convert to an int. I also will need to convert the int back into text after i run the inverse equation to decrypt it. Please can anyone help me?
|
|
|
|
|
atoi (integer)
atof (double)
strtol (long)
are usefull functions to convert strings to numbers
and the operators
% is mod
^ is ^
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
isn't ^ pow here?
Don't try it, just do it!
|
|
|
|
|
|
Text is numbers. Or rather it's all a matter of how you look at it. A string inside the PC is just a sequence of numbers stored consecutively in memory. You should be able to operate directly on them. Unless you want the output to be printable?
How about posting a code snippet?
Paul
|
|
|
|
|
but in an equation (in a literal one i heard), we don't want letters to be interpreted as number otherwise the result wouldn't be function of the unknown...
TOXCCT >>> GEII power
|
|
|
|
|
Hi all;
I have recently downloaded SkinMagic in order to build skins rapidly for my educational application which is running out of schedule. I managed to make the skin and export the ".h" file. However, i really don't know what to do next to skin my SDI application. Can somebody please help me.
Thank you
Krugger
Build tomorrow today cos' tomorrow will be too late
|
|
|
|
|
call InitSkinMagicLib(...) and then LoadSkinFile(...) in your initinstance of your application.
check for more details in the samples that they have provided....
God is Real, unless declared Integer.
|
|
|
|
|
I'm considering an building a c++ application that I'd like to have the ability to update itself periodically. Patch software seems like overkill so I was wondering what mechanisms people have used?
My thought was to have a launcher exe (app_launcher.exe) which is the .exe launched by shortcuts and etc. It would query a reg path for the "true" exe (mainapp_ver1.exe) and launch that.
The main app, could then download a cab file when an update was available, unzip the contents (so we'd have mainapp_ver2.exe downloaded) and then update the reg string so the new exe is launched next time. I use different file names to prevent problems in trying to overwrite a currently running exe.
That's the basic concept but it just feels like an ugly architecture. Anyone have experience with this sort of thing and have any better ideas?
DJScrib.
|
|
|
|