|
i have added 5 items to my dropdown combobox but only one item is showing..wat can be the problem?
|
|
|
|
|
Open the dialog template on which the combo box is dropped.
Click on the button with the arrow pointing down.
Now adjust the size of the combo box by dragging with the mouse.
Or
Use CComboBox::SetMinVisibleItems[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thanks sooperman problem solved
|
|
|
|
|
Hi ,
can anyone guide me how to convert content of type TCHAR[] to BYTE*....
Thanks,
Rakesh.
|
|
|
|
|
Use the WideCharToMultiByte[^] function.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
But its saying like Widechartomultibyte cannot convert 5 parameter from BYTE[128] to LPSTR..
code:
WCHAR szstring[256];
length = lstrlen(szstring);
BYTE pByte[128];
WideCharToMultiByte(CP_ACP, 0, szstring, -1, pByte, length, NULL, NULL);
Can you please guide me where am i going wrong?
Thanks,
Rakesh.
|
|
|
|
|
The expected 5th parameter is char* and you're giving it an unsigned char* .
All you need to do is typecast pByte as (LPSTR)pByte .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hey superman,
sorry to disturb u..
i tried with tat too(before replying u..) i forgot to mention tat one...
Its not copying the exact content rather its showing "???" marks...
i actually tried to copy chinese characters.. can u please help me to solve this issue?
thanks,
rakesh.
|
|
|
|
|
|
I have already done that ARJ... in the properties.. as "use unicode character set"..
Thanks,
rakesh
|
|
|
|
|
Rakesh5 wrote: ...its showing "???" marks...
Where?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hi,
how can i change the title bar height for all windows programatically...
|
|
|
|
|
Hi Superman,
Please try to help me..
|
|
|
|
|
i think you shoud check this out [^]
|
|
|
|
|
You might look into the HKCU\Control Panel\Colors key. That's where the Advanced Appearance dialog stores its information.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I created a exe named as test.exe.I want to put a log whether the exe is closed manually or by some other crash. If the exe gets crashed,will it call onclose function or how that exe will get closed?
How can i put a log during crash?
Thanks,
|
|
|
|
|
You cannot log the crash (of course OnClose isn't called when the application crashes). Anyway you may log the normal program execution in order to have hints about the crash.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks. Then how that exe will get closed during crash? Whether it will call OnClose or OnDestroy function?
|
|
|
|
|
You should call SetUnhandledExceptionFilter[^] to set a filter function to be called during a crash.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Suppose if i closed the application using task manager, the control is not coming to SetUnhandledExceptionFilter function.
|
|
|
|
|
Did you read the docs for that function:
After calling this function, if an exception occurs in a process that is not being debugged, and the exception makes it to the unhandled exception filter, that filter will call the exception filter function specified by the lpTopLevelExceptionFilter parameter.
As Task Manager likely uses something akin to TerminateProcess() , it's doubtful that both of the above conditions would evaluate to true, thus making SetUnhandledExceptionFilter() a moot point.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
One simple solution (I think) would be
1. Write the status as STARTED to a status file when the application starts
2. Update it to CLOSED when application exits
You can check this status file to ensure whether the application closed normally or not.
One thing is that, when an application crashes no OnClose() like functions are called. Actually the OS is terminating the process.
- ns ami -
|
|
|
|
|
Hi,
Please let me know how can i increase the height ogf the title bar of a Dialog....
Will OnNcCreate will help....?
|
|
|
|
|
You cannot do this for a single window.
Title bar size is a global setting which will effect all windows.
For your requirement you will have to do some skinning like custom drawing on the dialog and handle the WM_NCHITTEST message.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|