|
You need to export at least one function in order to have a lib file which is created.
|
|
|
|
|
Thanks. You are right, I forgot to export my class.
|
|
|
|
|
Hello,
Does anybody know how to move horizontal pagebreak in excel through VC++ code?? I want to drag the first default horizontal pagebreak to new location.
Following is the code snippet..
HPageBreaks xlPageBreaks = m_xlSheet.GetHPageBreaks();
HPageBreak hb = xlPageBreaks.Get_Default(1);
COleVariant vCellTo = cellAt( 1, 62 ); // move pgebrk to this location
Range rangeDest = m_xlSheet.GetRange( vCellTo, vCellTo );
hb.SetRefLocation( rangeDest ) //
The method SetRefLocation() throws an exception.
Thanks,
Daryappa.
|
|
|
|
|
Are there standard Win32 functions that provide the same facilities as the System.Security.Cryptography class/namespace. I'm looking to canonicalize an XML document and generate a SHA1 hash key for the Inland Revenue.
|
|
|
|
|
Have a look at this page [^].
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]
|
|
|
|
|
I want to embed Rich Edit Text inside property page. I am using Rich Text Edit control for displaying License agreement.
Please help me out. I stuck at this point.
Any help would be greatly appreciated.
Thanks
H4u32
|
|
|
|
|
If you're using MFC, call the function AfxInitRichEdit() during application initialization.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello,
I have written a function to retrieve a band in CRebar by the text used with the AddBar function
like this
MainFrame->m_wndReBar.AddBar(WndBarMIL,"myText")
When I use my function FindToolbar (see below), the REBARBANDINFO.lpText is always NULL?
Actually, I use VS2008 with Windows XP. I can't remember if this function that I have written many years ago has never worked or if it's a new bug...
Thanks
BOOL CMyApp::FindToolbar(CString nom)
CMainFrame *MainFrame=(CMainFrame *)theApp.m_pMainWnd;
CReBarCtrl& ReBarCtl=MainFrame->m_wndReBar.GetReBarCtrl();
UINT i=0;
REBARBANDINFO bandinfo;
int j=ReBarCtl.GetBandCount();
while (i<rebarctl.getbandcount())> char textinfo[80];
bandinfo.cbSize=sizeof(REBARBANDINFO);
bandinfo.fMask=RBBIM_TEXT|RBBIM_CHILD;
bandinfo.lpText=textinfo;
bandinfo.cch=80;
ReBarCtl.GetBandInfo(i,&bandinfo);
if (strcmp(bandinfo.lpText,nom)==0) break;
else i++;
}
if (i->ReBarCtl.GetBandCount()) return(TRUE);
else return(FALSE);
}
|
|
|
|
|
How do you mean 'always NULL'? Does the ReBarCtl.GetBandInfo(i,&bandinfo); call modify the lpText member?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
In fact, bandinfo.lpText is a null string (the first byte is equal to 0) ?
|
|
|
|
|
Probably no, but just to be sure...does anything change if you declare your textInfo array as TCHAR instead of char? So i mean, instead of char textinfo[80]; , TCHAR textinfo[80]; . Another question, is 80 characters enough? Could it be that you are specifying a not big enough buffer?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
No change with TCHAR and 80 is more than necessary...
I will appreciate an other idea...
|
|
|
|
|
HF wrote: When I use my function FindToolbar (see below), the REBARBANDINFO.lpText is always NULL?
Actually, I use VS2008 with Windows XP. I can't remember if this function that I have written many years ago has never worked or if it's a new bug...
I don't know about it in VS2008, but I tested it in the Microsoft's ControlSpy tool and it is working.
ControlSpy[^]
- ns ami -
|
|
|
|
|
I have received a mail where you talk about the hwndChild.
This pointer stays to NULL...
|
|
|
|
|
That was one wrong suggestion, so I deleted immediately
HF wrote: This pointer stays to NULL...
Means you are not getting the window to that bar.
- ns ami -
|
|
|
|
|
Effectively with control spy, I have the good lpText (Planets...). But I have no idea why my function doesn't work...
|
|
|
|
|
From your previous reply, I think, the window handle is not getting because the index might be wrong. When using ControlSpy, you can see that window handle become NULL when you give wrong index.
Can you debug step by step and trace the values?
- ns ami -
|
|
|
|
|
Hi All
How can i delete all line of List Box?I want to delete all line from list box on Buttonclick.Plz help me
|
|
|
|
|
|
After Mike you could to find this secret,Cedric!
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I Have created 3 dialog boxes in my application, i want to move 3 dialog boxes using back and next.. with out loosing the dialog box selection state..
Can any one help me regarding this..?
Thanks in advance...
|
|
|
|
|
That would be called a wizard.
Do a search for Property Page, Property Sheet, or for MCF, CPropertyPage / CPropertySheet.
Good luck,
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Hi,
Thanks for your help on this.., i don't want tabs in single dialog. Below i am explaining my scenario:
1. I have two dialog boxes, have two buttons on each dialog, and have to move (shuffle) from one dialog to other..
Can you please explain how i have to achieve this..?
Thanks in advance
|
|
|
|
|
John502 wrote: i don't want tabs...
There aren't any tabs with a "wizard."
"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
|
|
|
|
|
Tabs, Property Pages and Wizards[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|