|
those low level C functions wrap the WIN API. So if you would write windows apps for the 16 bit version, some of the code would still be usable, since it's still provided. If you used the 16 bit API however chances are that the code would become invalid since those function might no longer exist.
If you look in implementation of STL, CRT functions or whatever library MS has written, in the end they all call the WIN API to do the job. So basically all the libraries all wrappers around the system specific API.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thank you very much this information
|
|
|
|
|
You're welcome!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
OOPS...i shows me as Anonymous. never mind. Once again thanks for your replies.
Devoirs
____________________________________________________________
rishabhs
I think therefore I am.
|
|
|
|
|
hello,
i want to write a lotus addin to monitor the email that send and receive,but i do not any information about what to do,does someone can give me some introduce to help me in starting my work?
thanks
|
|
|
|
|
Hi,
How to go about getting data from another running application? This is wat I am trying to do. There is program A running and storing data in the hard disk. I am creating a program which will retrive the real time data. This means that when i open the program, it will retrive the current data that program A is recording. However I do not run program B when A is running. I will run B as and when needed.
Any idea?
Aaron
|
|
|
|
|
You can't - if program A is writing to disk, it will own the file until it closes it. Are you writing both programs ? If so, you should look into some interprocess communication to send this data, bypassing the file. Otherwise, you can't do it so long as program A has the file open.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Not true, you can set the "sharing" parameters so another application can read from a file while you write to it.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
Did you wrote program A? If not, than you might be in some trouble. If you wrote program A, you should change the part where you open the file for writing and modify it so it shares access to it. Read here[^] for more information on sharing files.
If you did not write program A, you can try to open the file that shares all access to it. This way, there might be a chance that you can access the file if program A did not deny all access..
Good luck.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
ok tks will look into the share format of the file. If i set it to share read, logically it should work. rite?
Aaron
|
|
|
|
|
Maybe, if the other program didn't open the file without sharing the file for writing. I think that it is better to open the with sharing all access. That way, you will be sure that you don't deny some access that program A has. Also be sure to open the file READ_ONLY.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
In my application, I want to change the height of a dialog's caption bar. Is it possible, and how to do it?
Thanks in advance.
|
|
|
|
|
I have a customized menu, which has a background, icon and sidebar.But what I can't accomplish is to remove the white bounding border(what I mean is the thin white rectangular lines surrounded the bottom and top menu item and of course the menu items in between), anyone can provide advices?
Thanks
|
|
|
|
|
I have a CTreeCtrl that contains three levels of entries all with check boxes.
Whenever a check box changes state I would like to cascade that change down to all children of that tree item. I cannot seem to figure out how to do this easily.
|
|
|
|
|
Article: Tree Control With Check Boxes
- the OnLButtonDown code shows how to detect a check change.
- the checkitems/uncheckitems code shows how to cascade through child check boxes.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Thanks That Worked Great. However, I did put some code in to toggle the check states based on a spacebar keypress by filtering the OnKeyDown() message
void CCascadingCheckTreeCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// Check to See if This is the Space Bar
BOOL bProcessChange = FALSE, oldcheck = FALSE;
HTREEITEM hItem = GetSelectedItem();
if ((nChar == 32) && hItem)
{
bProcessChange = TRUE;
oldcheck = GetCheck(hItem);
}
// Call the Base Class
CTreeCtrl::OnKeyDown(nChar, nRepCnt, nFlags);
// Process Teh Sate Chaneg (isf any)
if (bProcessChange)
{
BOOL newcheck = GetCheck(hItem);
if (newcheck != oldcheck)
{
CheckAllChildItems(hItem, newcheck);
}
}
}
|
|
|
|
|
I have made a wizard and on the last page I call:
ShellExecute(NULL,"open","cmd",NULL,NULL, SW_SHOWNORMAL );<br />
................<br />
SendInput(....);<br />
When that is done in the page I should receive some informations.
Everything works fine when I use the wizard for the first time, but if I try to use it again without restarting the application when the cmd window closes so does the wizard.
The comands sent to the cmd are:
"xcopy .....
exit\n
"
|
|
|
|
|
Why are you doing it like this ? Why do you need to open the shell ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I guess you are asking that because of the "xcopy". Well that is only the first command and exit is the last one.
I'm using gcc under cygwin so I must login before I can execute something like "gcc [param]".
|
|
|
|
|
*grin* Fair enough. I just thought you may be doing stuff that could be done in code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello,
The Enter key triggers my ON_WM_KEYUP message handle, but it does not trigger my ON_WM_KEYDOWN message handler.
I'm not handling the message anywhere else.
What's the deal?
Thanks!
-Ian
|
|
|
|
|
|
Hmmm.. this doesn't seem to work either. According to MSDN:
If the CWnd object has the input focus, the OnSysKeyDown member function is called by the framework when the user holds down the ALT key and then presses another key.
There has to be a way to trap the enter key being pressed down. Why is ON_WM_KEYUP sent, but not ON_WM_KEYDOWN? Does it have something to do with default-dialog buttons?
-Ian
|
|
|
|
|
For anyone who might be interested, I found the solution to my problem from the CodeGuru article at:
http://www.codeguru.com/Cpp/W-D/dislog/tutorials/article.php/c4965/
It turns out that you have to override the WM_GETDLGCODE handler to get notification that the Enter key is down. It has to do with how MFC handles dialog default buttons.
-Ian
|
|
|
|
|
Hello thug developers,
I have a very anoying irritating problem here with my app.
I've worked hard to understand VC++, searched all over the internet to find out how things work. So I managed to code an app like a very very simple chat application. A simple peer to peer connection for just sending each other a line of text, that's all.
After solving all the errors and warnings, I finally completed my app. I started to test my app and found out that it can connect with the other pc and it can receive data from other pc, but I can't print the recieved text on the screen. I've checked msdn and everything, but I just don't understand what I did wrong.
So I hope someone here is able to receive my sourcecode en check what I've done wrong. If there is someone to check it for me I'll be very very very very happy if he can solve my problem. If someone wants to help me via email, than this is my adres: ammeniar@hotmail.com
Than you very very very much.
If I was a gay I would tongkiss ya thnx boyz and girlz!!
If my application works, I forget all my problems.
|
|
|
|