|
ensger wrote: int z = listCtrl.GetNextSelectedItem(pos);
.....
listCtrl.SetSelectionMark(z-1);
For z = 0, here -1 will be passed to SetSelectionMark . Have you considered that ?
|
|
|
|
|
Not yet, but I see the problem with the first line. Thank's, Gerhard
|
|
|
|
|
Hello guys,
I am been working on developing a plugin for Adobe Director, Speech recognition.
I am been getting Stuck in a macro USES_CONVERSION.
It is unable to execute the statements following this macro.
Can anybody provide help exactly how to debug this particular error
Girish
Software Developer
|
|
|
|
|
Girish601 wrote: am been getting Stuck in a macro USES_CONVERSION.
It is just a macro. Can you show code ?
Girish601 wrote: It is unable to execute the statements following this macro.
How you know that ? Is function retuning from that line ?
|
|
|
|
|
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem...
Is defined in atlconv.h
#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I don't know man, no idea what could be the problem
|
|
|
|
|
Kharfax wrote: USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem...
Is defined in atlconv.h
#define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I know why its used. I asked OP the code following it.
|
|
|
|
|
Before you use any of the A2W, W2A... macros, you must first define USES_CONVERSION. That macro is not a function itself, but defining it allows you to use the conversion macros.
|
|
|
|
|
If you are using VC7.0 or later you should use the ATL7.0 conversion macros instead of the ATL3.0 ones. The ATL7.0 macros do not require USES_CONVERSION. See http://msdn2.microsoft.com/en-us/library/87zae4a3(VS.80).aspx[^].
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
how can i write a code for sending an e-mail using visual c++ , by an example , please ?????????????
|
|
|
|
|
Search for MAPI.
Code-Frog:So if this is Pumpkinhead. Time for him to run and hide. It's an interesting thought really.
|
|
|
|
|
hi
can u plz explain in detail coz i thin i have same
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
SACHIN P.(The Bug Killer) wrote: can u plz explain in detail coz i thin i have same
don't speak in sms, write full words man
|
|
|
|
|
|
He's "The Bug Killer" He can speak any way he wants!
|
|
|
|
|
toxcct wrote: is that a reason to vote my post down ?
Wasn't me man. The only posts I've ever voted on were messing around in the lounge.
*EDIT* I voted it a 5 - Happy now?
|
|
|
|
|
|
shereem wrote:
how can i write a code for sending an e-mail using visual c++ , by an example , please ?????????????
Here[ ^]
Here is the article having class for sending mails
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
Hello Everybody
Can any body help me out in Disabling a page of property sheet
There are 2 pages I want 2 disable the second page of the property sheet
Thanks in advance
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: here are 2 pages I want 2 disable the second page of the property sheet
Di you want to make the whole page un-selectable or do you want it to show only greyed controls?
For the latter, you would use the Standard technique of a ON_UPDATE_COMMAND_UI handler.
The one thing to get the handler working is that you manually have to trigger it:
LRESULT CMyView::OnIdleUpdateCmdUI( WPARAM , LPARAM )
{
UpdateDialogControls(this, false);
return 0L;
} Please see the links in the code snippet!
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
There are 2 pages like this
CmyPropertySheet m_obj Derived from CPropertySheet
CProppag1 m_page1 derived from CPropertyPage
CProppag2 m_page2 derived from CPropertyPage
Initaily page1 is loaded now i want the whole page 2 be unselected
Thanks for the response
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: Initaily page1 is loaded now i want the whole page 2 be unselected
Can you explain it clearly ?
|
|
|
|
|
M making a simple propertysheet i.e. normally we see in windows the property of a file
The same stuff
there are 2 Pages in it
i want to disable the second page until and unless some operation is performed in the first page ..........
I think this should be clear
Thanks for replying
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: want to disable the second page until and unless some operation is performed in the first page ..........
You mean activated/visible not disabled.
Its behaviour of property sheet, only one property page is visible at time.
You could have use better wording to ask question.
|
|
|
|
|
Sarguna Reddiar wrote: unselected
Unselected. What does that mean?
Removed from the PropertySheet?
Greyed but remaining in the PropertySheet?
Remaining in the PropertySheet but all controls on it disabled?
Something other?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|