|
????
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
VC++ produces native code.
every .NET languages generate MSIL, which targets only the .NET framework, such as Java does with its byte Code and JRE...
|
|
|
|
|
|
he never gone far, but he has work to do !
|
|
|
|
|
You cant compare Vc++ with vb or donet,or other languagges together each language has its advantage for example C++ is difficult than vb++ but you cant say so vb is better or vice versa or other example: on the vb you have procedure and function but on the c++ you have only function.
I guess you want to start to learning a language,right?
|
|
|
|
|
VC++ is also the only language that lets you produce both native and
CLR code in the same module.
And yes, you can't compare vc++ to "dotnet".
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
The following code snippet will insert a row above the first empty row, and then copy the other row contents to the newly inserted row. The problem is when the last line was invoked the value "ASDF" applies to the entire row instead of only the first cell. How can I set value to specific cell in the newly inserted row?
range = oSheet.get_Range("A1", Missing.Value);
range = range.get_End(Excel.XlDirection.xlDown).get_Offset(1, 0);
range.EntireRow.Insert(Excel.XlInsertShiftDirection.xlShiftDown, Excel.XlInsertFormatOrigin.xlFormatFromLeftOrAbove);
range = range.EntireRow.get_Offset(-1, 0);
range.get_Offset(-1, 0).Copy(range);
range.Cells.get_Offset(0, 0).set_Value(Missing.Value, "ASDF");
Thanks,
|
|
|
|
|
Hi i am not comfortable with C# code.
I have done lot of XL automation and VSTO with vb.net
range.Cells.get_Offset(0, 0).set_Value(Missing.Value, "ASDF");
try using 1,1 instead of 0,0
I actually didnt understand the above part...
But below solution can be helpful
or use at last again
range = oSheet.get_Range("A1", Missing.Value);
range.setValue = "ASDF"
or
range.value = "ASDF" (as it comes in VB.net)
|
|
|
|
|
Hi All,
I wish to debug some stored procedures while i am debugging my VC++ code.
Please let me know the steps in detail to accomplish this.
Thanks,
vishu
Bangalore
|
|
|
|
|
What on earth is a 'Stored' procedure. Do you have the Source Code?
LateNightsInNewry
|
|
|
|
|
a stored Procedure is a SQL procedure (PL/SQL or like) stored on the database server...
|
|
|
|
|
Hi All,
I wish debug some stored procedures while i am debugging my VC++ code.
Please let me know the steps in details to accomplish this.
Thanks,
vishu
Bangalore
|
|
|
|
|
|
Does it have a "\0" as end of string too?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
use strncpy() and restrict it to 20 characters. then, force the last char of the buffer to be a '\0'
|
|
|
|
|
Hi all masters I want to access c drive of other system and I use
\\systemname\\$c it ask for password and username even I enter right username and password of other system it dos not show c drive the popup window pops again and again ?
So please tell me if there is another way to access c drive of other system
thanks
|
|
|
|
|
p_ wrote: \\systemname\\$c
Its \\SystemName\C$
Regards,
Paresh.
|
|
|
|
|
hi all,
have u know about, how to insert buttons in tool bar.
if you know , please help me
thanks
panthal
|
|
|
|
|
Search in MSDN.
Also please look at this[^].
Regards,
Paresh.
|
|
|
|
|
are you talking about inserting buttons to the toolbar of an sdi application?
if so,
then you have to go to resource view tab,expand toolbar,click on IDR_MAINFRAME, and then add now button there.
any more clarifications?
welcome.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
hi,
there is no option to insert buttons in resource view
i used this code to insert a button, but i 'am in need to have 4 buttons, that was not working.
int mWidth = 125;
int mHeight = 25;
m_wndToolBar.SetButtonInfo(14, IDC_EMPBAPPLY, TBBS_SEPARATOR,mWidth);
CRect rect;
m_wndToolBar.GetItemRect(14, &rect);
rect.bottom = rect.top + mHeight;
CString Etext = "Employee";
m_EMPBApply.Create(Etext, WS_VISIBLE, rect, this, IDC_EMPBAPPLY);
thanks
panthal
|
|
|
|
|
My wanted function:
when I click a button to pop up the CFontDialog and choose the font. Then A EDIT control use this font to show and edit texts in it.
My codes: (not working)
void CMyDialog::OnSelFontButton()
{
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
CString strFace = dlg.GetFaceName();
int iFontSize = dlg.GetFontSize();
LOGFONT lf = {0};
lf.lfWeight = iFontSize;
_tcscpy(lf.lfFaceName, strFace);
CFont cfont;
cfont.CreateIndirectFont(&lf);
CDC *pdc = m_MYEDITCTL.GetDC();
pdc->SelectObject(&cfont);
m_MYEDITCTL.ReleaseDC(pdc);
}
}
and I try to use CEdit::SetFont, Not working also.
|
|
|
|
|
This is not the way to set the font.
You have to do as,
m_MYEDITCTL.SetFont( m_font );
Where you have to make the font object global, static, or member of CMyDialog.
-- modified at 0:32 Friday 2nd November, 2007
- NS -
|
|
|
|
|
I define a winapp life m_font, a public data member of my derived CWinApp class,
But in the method
void CMyDialog::OnSelFontButton()
{
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
CString strFace = dlg.GetFaceName();
int iFontSize = dlg.GetFontSize();
LOGFONT lf = {0};
lf.lfWeight = iFontSize;
_tcscpy(lf.lfFaceName, strFace);
<FAILED> theApp.m_font.CreateIndirectFont(&lf);
m_MYEDITCTL.SetFont(&theApp.m_font);
}
}
when I choose the font in the second time, I face a ASSERTION failure in the place <FAILED>. And I also tried a global definition, it failed in the same place too. Someone tell me why?
|
|
|
|
|
fantasy1215 wrote: when I choose the font in the second time, I face a ASSERTION failure in the place <failed>.
What line of what file is asserting?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|