|
Hi!
I want to paste some text into an input-box of another application running. I think I have to use SendMessage(WM_PASTE,0,0), but first I must get a handle to the active input-box. The pasting is to be triggered by the user of my program, so probably the handle must be to the previously active window. Any suggestions? I'm using VC++ 5.0.
Thanks!
Pär
|
|
|
|
|
Hi,
Using VC++ 6.0, is it possible to create an MFC based Ax control using a static build with MFC. This would eliminate any runtimes with the finished control. I have read this can't be done in previous versions of VC++?
Thanks, Scott
slewis@bigfoot.com
|
|
|
|
|
How can I determine if this is empty/full and have the ability to empty it? I already know that there are shell extension APIs for version 4.71 of Shell32.dll, but this requires that you use the IE extended desktop environment. Normally NT and its rug rats 95 and 98 use version 4 of this DLL. These procaddrs are not in the older DLL. There must have been an "old way" to do this that I can use for existing users and non-IE folks. Anyone know?
Thanks! Bob
|
|
|
|
|
Try looking at SHFileOperation
|
|
|
|
|
==================
The original message was:
Try looking at SHFileOperation
|
|
|
|
|
==================
The original message was:
Try looking at SHFileOperation
Whoops! Thanks for your reply, but SHFileOperation is
used to remove a file *into* the recycle bin, not query
the state of the recycle bin. Thanks for your trouble anyway!
|
|
|
|
|
Hi,
I've built an irregular shaped dialog app using MFC VC+6.0,
Anyone got any tips on how to use the regions to build a frame for it.
I've tried various things in my NC areas to know success.
Regardz
Colin Davies
|
|
|
|
|
what is the bets way to erialise Chris' grid control?
if it is embedded in a view, using his method for doing this?
|
|
|
|
|
I am trying to make a composite control so that I can use it in my grid. In the control, I have several check boxes. I want them to act like radio buttons. However, I couldn't figure out how to make them talk to each other. Any suggestions? I have gone through a lot of ATL samples, but I couldn't find any composite example.
Thanks
JC
|
|
|
|
|
Hi all,
does anybody have a Visual C++ solution for schedule problems and visualisation by Gantt-Diagrams.
|
|
|
|
|
Hi all,
does anybody have a Visual C++ solution for schedule problems and visualisation by Gantt-Diagrams.
|
|
|
|
|
Hi, everybody!
Do somebody know whether is it possible to emulate a system modal dialog (I mean a 'system modal' style) using MFC CPropertySheet class?
Thanks in advance.
|
|
|
|
|
Hi All --
I'm probably overlooking a simple API or class, but:
Does anyone have sample code for converting a double value to a formatted string using the currency format defined by the system? For example:
double dValue = 1234567.89;
CString sValue = FormatAsCurrency(dValue);
// If we're in the USA,
// sValue should be "$1,234,567.89".
// If we're in the UK,
// sValue should be "£1,234,567.89"
I'd be grateful for any suggestions.
|
|
|
|
|
Use wsprintf() to convert your value to a string, then call GetCurrencyFormat(). Simple!
--Mike--
==================
The original message was:
Hi All --
I'm probably overlooking a simple API or class, but:
Does anyone have sample code for converting a double value to a formatted string using the currency format defined by the system? For example:
double dValue = 1234567.89; CString sValue = FormatAsCurrency(dValue);
// If we're in the USA, // sValue should be "$1,234,567.89". // If we're in the UK, // sValue should be "£1,234,567.89"
I'd be grateful for any suggestions.
|
|
|
|
|
Has anybody else had problems getting the MFC samples to run from Microsoft's site?
I have downloaded two different projects and both gpf'd when I ran them. I don't know enough to track down the problem, has anybody else had this problem? Is there some setting that I need to change?
|
|
|
|
|
Hi friends!
I'm trying to cancel initial text selection for my CEdit in CPropPage, but it dies not happends. What's wrong with it?
Thanks,
Serge
|
|
|
|
|
==================
1.You may creaet a new control and invisible it.
2.open rc file with txt mode
3.move the new control line beyond CEdit Control. That's it.
|
|
|
|
|
All,
I have downloaded the NT Symbols files for NT SP6a and have attempted to install them using Visual Studio -> Tools -> Windows NT Symbols Setup. This wants the original VS6 CD, if I ignore this and install the files I have downloaded it only installs the couple it was going to from the VS6 CD. Any ideas how to do this ? Is there a manual hack ?
I could find no help on http://www.microsoft.com/support/search/ for this question.
|
|
|
|
|
Hello,
I'm a software developer and have following problem
with Win32 API and serial communication :
In my protocol is a read thread to receive bytes.
The function ReadFile() reads one Byte from serial
interface (COM1 or COM2). I use an overlapped
structure to receive data. If there is an error
the function WaitForSingleObject() is called. Usually
the receive is correct. Sometimes the function
ReadFile() don't read a Byte although the InQueue
has a byte. The function WaitForSingleObject() is called.
This function returns with WAIT_TIMEOUT, the current
Byte is lost.
If I call in this case PurgeComm(), the lost Byte is in
the buffer which was in ReadFile() the input buffer.
But this algorithm don't works correct every time.
How can I read the Byte in the InQueue if this byte
can't read from a Win32 API function ?
How can I avoid this problem ?
Good buy
Rico Salfer
|
|
|
|
|
I also use the ReadFile for serial comm and I found that the problem I was having was that I was using the same overlapped object for both Put and Get. If I did a Put while a Get was waiting for data, the stuff would get trashed. I made sure that only one was doing overlapped operation and the other was just doing a WaitCommEvent. I also found that the number of bytes read that ReadFile returns was not correct. I just figure out the length on my own with a strlen().
Vern
==================
The original message was:
Hello,
I'm a software developer and have following problem with Win32 API and serial communication :
In my protocol is a read thread to receive bytes. The function ReadFile() reads one Byte from serial interface (COM1 or COM2). I use an overlapped structure to receive data. If there is an error the function WaitForSingleObject() is called. Usually the receive is correct. Sometimes the function ReadFile() don't read a Byte although the InQueue has a byte. The function WaitForSingleObject() is called. This function returns with WAIT_TIMEOUT, the current Byte is lost. If I call in this case PurgeComm(), the lost Byte is in the buffer which was in ReadFile() the input buffer. But this algorithm don't works correct every time.
How can I read the Byte in the InQueue if this byte can't read from a Win32 API function ? How can I avoid this problem ?
Good buy Rico Salfer
|
|
|
|
|
Is there any way to tell the vc++ compiler to split a certain function into several optimization blocks. i.e each block in the function is a distinct optimization unit.
thanks
jonathan
|
|
|
|
|
Hi all,
I want to add the functionality , that set the url document, right to left document and left to right document. In visual c++ , mfc. Please help....
thanks Lilach.
|
|
|
|
|
I'm a little confused about what you needed... but here is instruction on how to include the web browser control on a dialog.
Go to project, Add To Project, Components and Controls.
Go to Registered Active X controls and select Microsoft Web Browser.
This should create the files WebBrowser2.cpp & .h
In you dialog #inlcude “WebBrowser2.h”
then when you want to fill in you browser with a site add the following
CWebBrowser2* pBrowser = (CWebBrowser2*)GetDlgItem( IDC_EXPLORER1 );
COleVariant varEmpty = new COleVariant;
pBrowser->Navigate( "http://www.carolecode.com", &varEmpty, &varEmpty,&varEmpty, &varEmpty );
==================
The original message was:
Hi all,
I want to add the functionality , that set the url document, right to left document and left to right document. In visual c++ , mfc. Please help....
thanks Lilach.
|
|
|
|
|
From my dialog base app I call a modal dialog window. When minimized the parent window does not become minimize aswell. When I minimize the child dialog I would like to minimize all ancestor windows. Anyone know how please?
|
|
|
|
|
Hi,
I'm writing a MFC dailog app where I wish to be able to change the Dialog client area Background on the FLy.
Is there aan easy way of doing this,
Regardz
Colin Davies
|
|
|
|