|
I have a toolbar that uses a drop-down list. The list is owner-drawn and based on CListBox. It's displayed when the user pressing a button in the toolbar. When the toobar is floated outside the main window and the list is dropped, the list is clipped to the main window. Anyone know how to override that behavior?
I tried changing the parent from the main window to the desktop window but the draw messages don't get reflected to the list box.
I tried it with and without the WS_CHILD attribute.
|
|
|
|
|
I need a MFC app which I can give a directory and it will create a list of all files within that directory and sub directories. From this list it will then check the last time each file was modified. What would be the best way of going about this? I think of several ways of doing it but would like an opinion on what other people think would be the best way forward. Thanks.
|
|
|
|
|
FindFirstFile, FindNextFile, should do it quite easily. Just need to look at what you need to pass to it in terms of parameters. Or use CFileFind for straight MFC.
|
|
|
|
|
Hi all,
i m using Edit box control with multiline and want return property.
here i am paste very long file in this edit box but when i paste here full file data not paste and also when i trying to write some thiing its not written, while i m not use SetLimitText any where.
please tell me how can i paste any length of data in edit box.
thanks in advance.
|
|
|
|
|
|
i alraedy mention thet i already use it.
|
|
|
|
|
Ok, I couldn't get that from your language.
Now, what exactly is the problem, you are neither able to paste anything nor able to type anything? Is that edit box readonly by any chance?
|
|
|
|
|
when I tried CEdit::GetLimitText(), it returned 30,000. This is in contrast with what is described here in remarks http://msdn.microsoft.com/en-us/library/bb761647%28VS.85%29.aspx[^]. I think your problem is when exceeding this 30,000 characters. Try calling CEdit::SetLimitText() with much bigger value and count the number of characters you could paste/type.
|
|
|
|
|
A multi-line edit control can only hold 64K characters. Use a richedit control instead.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
what is the max limit of rich edit?
|
|
|
|
|
If I were to guess, I'd say 2GB, possibly 4GB. See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
A c++ project, I want to use it in the tomcat, so I need transmit it to WSDL file and then transmit this wsdl file to war package.
I only know use the C# to write web service but I donot know how to transmit this c++ project to web service?
|
|
|
|
|
You mean you want to use your C# code in C++? Why do you want to use C++?
In C++, if you want to use web service from scratch I'm afraid it will not be easy.. you will have to do it manually (HTTP, TCP/IP sockets, XML, SOAP).
Aisteru
|
|
|
|
|
thanks, I prepare to use the java to write one web service
|
|
|
|
|
Hi,
I want to read a text in an excel file. I am using the folowing code.
HRESULT hr;
CLSID clsid;
hr = CLSIDFromProgID(L"Excel.Application", &clsid);
BOOL bRet = objApp.CreateDispatch(clsid);
objBooks = objApp.GetWorkbooks();
objBooks.Open("C:\\tmp\\1.xls", VOptional, VOptional,VOptional,VOptional,VOptional, VOptional,
VOptional, VOptional, VTrue, VFalse, VOptional, VOptional);
It is working in a test applicaiton. But i am using the same code in my development project, CreateDispatch function gets failed.
Anyone knows the reason?
Thanks,
|
|
|
|
|
|
Hi,
I am using RasSetCustomAuthData API to set my custom auth info before calling RasDial API.
here is the code piece:
int nError = ::RasSetCustomAuthData(
myphonebook,
myphonebookentry,
(BYTE *)&myCustomAuthData, myCustomAuthData.dwSize );
Here value of myCustomAuthData.dwSize is 2708 . and the size of myCustomAuthData stracture is also 2708. but after calling this function is writting around 5k of data in the .pbk file.
After calling this RasSetCustomAuthdata() api the .pbk file is having entry some thing like this.
CustomAuthData=31444243FFFFFFFF940A0000940A000007000000A800000008000000430054000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
CustomAuthData=000000000000000000000000000000000000000000000000000000000000000000000000
Birajendu
SonicWALL
Bangalore
India
|
|
|
|
|
Hello,
I have a problem.
I have installed a printer driver in 64-bit machine (say PC-1)and shared it.
Now if I try to install the printer (which is already shared in PC-1) in a 32-bit machine (say PC-2), I am able to install it.
But actually it shouldn't happen.
And also I have that the reverse case is also working.
Please show me a way restrict this.
Thanks in advance.
Regards,
msr
|
|
|
|
|
They are both different machines.
That is why you're able to install it.
|
|
|
|
|
I didn't get your point. Can you just explain me.
I agree that both are different machines. But they are of different configurations too.
My requirement is to restrict it.
Regards
msr
|
|
|
|
|
How do you want to restrict it?
Do you want to administer one machine to not be able to install the driver?
Or do you want to write a software to prevent driver installation?
|
|
|
|
|
msr_codeproject wrote: (say PC-1)and shared it.
Why have you shared it if you do not want the other PC to access it?
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
My requirement is,
A printer shared in a 32-bit machine should be accessible to only 32-bit machines.
And also same case with 64-bit machines.
Now tell me how to restrict it.
Regards
msr
|
|
|
|
|
msr_codeproject wrote: A printer shared in a 32-bit machine should be accessible to only 32-bit machines.
I don't think there is any facility for this, as printers are not sensitive to 32/64 bit systems, as long as each platform has the correct printer driver.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hi,
msr_codeproject wrote: My requirement is,
A printer shared in a 32-bit machine should be accessible to only 32-bit machines.
This is a very strange requirement as networks are totally insensitive to the bit width of their hosts (actually they intend to connect any heterogeneous machines using their protocol).
You can probably achieve that by partitioning in two subnetworks each having only access to its peers for resource sharing.
This can be done through your DHCP server if any, or by hand on each machine, or by inserting a router if the network topology fits.
In all cases looks like a bad idea giving more trouble than benefit
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|