|
I set the Want Return property of edit control to false, but still doesn't help.
Regards
Rostfrei
|
|
|
|
|
Rostfrei wrote:
I set the Want Return property of edit control to false, but still doesn't help.
Set It to TRUE or make a Dummy Button on you Dialog Sheet and Make it Default Button by Selecting Default Button
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Makeing dummy (not visible) button with Default Button by property set helped. Thank you. But it still bothers me I don't know where it is processed
Regards,
Rostfrei
|
|
|
|
|
Mr. Giorgi Moniava had given you technique to handle that in Future!
Hope So, you don't have problem dealing with DEFAULT BUTTON in Future!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Next time when you write program , doubleclick on the Ok button and simply delete the line :
void CyouDlg::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
// OnOK();
}
So you will not experience such problems anymore
m0n0
|
|
|
|
|
Need a pointer in the right direction How do I change working drives, make directories, etc across a network (i.e. on a remote machine) ?? Can't seem to find any info on MSDN (but maybe I'm not looking for the right thing !!)
Doug
|
|
|
|
|
Hi,
In C++ .NET ios::nocreate is not supported.
How can we replace this code to check file existance:
ifstream cvr_file(file_name, ios::nocreate);
if (!cvr_file.good())
return;
Thanks in advance,
Julia.
|
|
|
|
|
Hello!
I searched all over the net for the following solution. I have some MFC dialog based application. I still want to use printf, cout, etc., but there is no console window, just dialog. Is there some way to use stdout the same way like in command prompt programs?
I found one way of doing this:
AllocConsole();
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE),(void *)out,(DWORD)strlen(out),&written,0);
but the problem here is that you have to use WriteFile function and cout or printf does not work.
Best regards,
Rostfrei
|
|
|
|
|
You can show a console, by adding the following line in Post-Build in Project Properties (VC2003) or Project Settings Post-Build Step (VC6).
editbin /SUBSYSTEM:CONSOLE "$(OUTDIR)"\<program name="">
Where program name is the name of your final build exe.
If i am building Notepad.exe, then it would be
editbin /SUBSYSTEM:CONSOLE "$(OUTDIR)"\notepad.exe
You can also call it from cmd.exe manually
editbin /SUBSYSTEM:CONSOLE c:\programfiles\etc\etc\notepad.exe
Usman
|
|
|
|
|
Thank you very much. That is exactly what I needed.
Best regards,
Rostfrei
|
|
|
|
|
Friends,
We can detect that IE is currently set to 'Work Offline' using InternetGetConnectedState() .
If detected, i want to programatically change the 'Work Offline' state to the normal 'Online' state. How can i do so ?
Imtiaz
|
|
|
|
|
Imtiaz Murtaza wrote:
If detected, i want to programatically change the 'Work Offline' state to the normal 'Online' state
check is this api [InternetGoOnline ] help
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
check is this api [InternetGoOnline] help
It is forcing me to open some page.
Imtiaz
|
|
|
|
|
What is your Mode of your Internet connection! i.e. Is it through CABLE or DIALUP.
If DialUp you can use these api's too [InternetAutodial] and [Internetdial]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I switched my browser to offline mode and opened Outlook Express Mail client. It immediately popped up a dialog that IE is in offline mode and whether I want to switch it to online mode. If I press "yes" it automatically changes it to online mode. As such there must be some way that external applications can switch the browser to online mode, afterall Outlook Express does this.
Imtiaz
|
|
|
|
|
I would look into InternetCheckConnection(...) , it has a flag that forces connection; and InternetAttemptConnect(...) .
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi all,
I do a job relating to SOAP initialize. Sometime, SOAP initialize fail
because, SOAP uses Wininet library as default and uses the proxy setting in IE, and this setting was not correct . Some one recommended me to use Winhttp instead of Wininet.
Dim Client
Set Client = Server.CreateObject ("MSSoap.SoapClient30")
Client.ClientProperty("ServerHTTPRequest") = True
Call Client.mssoapinit("http://..../SampleWSDL.wsdl",
"http://...../SampleWSML.wsml")
If Client.ClientProperty("ServerHTTPRequest") = True, SOAP will use Winhttp instead of Wininet.
But I don't know what differences between Winhttp and Wininet are?
Any of u have experiences about this? Can u help me to answer following questions:
1. What are differences between WinInet and WinHTTP? (using in SOAP)
2. problems if we use WinHTTP.
Client.ClientProperty("ServerHTTPRequest") = True
Thanks very much for any your ideas,
Tin Le
|
|
|
|
|
How to get the PhysicalDrive number which the logical drive located?
Like how to get the PhysicalDrive number of "C:" logical drive ?
Thanks a lot!
Let's roll!
|
|
|
|
|
HI Dragon,
have a look at Win32_DiskDrive WMI Class!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
LPTSTR lpVolumeNameBuffer[100];
LPDWORD lpVolumeSerialNumber;
LPDWORD lpMaximumComponentLength;
LPDWORD lpFileSystemFlags;
LPTSTR lpFileSystemNameBuffer[100];
GetVolumeInformation("C:\\",lpVolumeNameBuffer,100,&lpVolumeSerialNumber,
lpMaximumComponentLength,lpFileSystemFlags,lpFileSystemNameBuffer,100 );
use the above function it returns the Volume Serial Number of the physical C drive .
Cheers
|
|
|
|
|
Hmmm. How about:
<br />
TCHAR caVolumeNameBuffer[ 100 ];<br />
DWORD dwVolumeSerialNumber = 0;<br />
DWORD dwMaximumComponentLength = 0;<br />
DWORD dwFileSystemFlags = 0;<br />
TCHAR caFileSystemNameBuffer[ 100 ];<br />
<br />
GetVolumeInformation( _T( "C:\\" ), caVolumeNameBuffer, 100, &dwVolumeSerialNumber, &dwMaximumComponentLength, &dwFileSystemFlags, caFileSystemNameBuffer, 100 );<br />
Your example was not passing in valid pointers, only uninitialized ones. Might want to ensure proper termination of the TCHAR buffers as well.
However, I think the OP was asking about the physical device name for the drive, not its serial number; I think they were looking for information such as if a drive is \\.\PhysicalDrive0 or \\.\PhysicalDrive1 , etc. You need that information to open the device itself (the hard drive itself) to do things like send IOCTLs. I do not think that the function you specified will return that information.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
If you need that to do something like send IOCTLs (DeviceIoControl ), you can also open the device by using the following syntax:
\\.\C: - Open physical device for drive "C"
\\.\D: - Open physical device for drive "D"
\\.\A: - Open physical device for drive "A"
I do not know all of the cases where that format and the \\.\PhysicalDrivex format are interchangable, but I know you can use it when getting a HANDLE to use with DeviceIoControl .
Also, not that you are likely to hit it, but there is a bug in older versions of the Win32_DiskDrive WMI class that limits the number of drives returned. The above method should also work on Windows NT 4.0 versions prior to SP4, but the WMI method will not.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Thanks a lot! I just need to use \\.\PhysicalDrivex to open the disk contains the appointed logical volumn.
I've lookup in MSDN and found the method.
Use DeviceIoControl and send IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS.
But MSDN says it can only use in win2000 and later version.
Let's roll!
|
|
|
|
|
Hi!
In my application I get a top down raw bitmap that can be of 1,8,24 bits per pixel.
I get this in the form of Bitmapfileheader, BitmapInfo and then bitmap data in a buffer.
Now I want to add a watermark to this image without changing any of its properties like bits per pixel , width , height etc...and get the bitmapdata buffer modified.
Basicaly I am getting this image in some way, I have to just add watermark and send it to printer...
Can anybody tell me what is the easiest way to do this ..with minimum amount of memory involved...Preferably using only win32 APIs...
Thanks
|
|
|
|
|
If you want to add a watermark, that's a blend of your info and the info there, so you probably want to manipulate the bitmap data directly. There's no extra memory required, because you're using the array you have, not creating any others.
Christian Graus - Microsoft MVP - C++
|
|
|
|