|
I am sorry, I forget to Insert the column. Now I changed it and it is working fine. Thanks for your help.
Topic closed...
|
|
|
|
|
Hello,
I want to use a function from .lib file(which is built on VC 8.0 and VC 7.0) and my application is built in VC 6.0.
On calling function (from .lib) i get large number of linker errors.
I beleive this is because one of the one of the linker warning
"warning LNK4078: multiple ".CRT" sections found with different attributes (40300040)"
Please advice.
Thanks in Advance!
|
|
|
|
|
tony_udz wrote: I want to use a function from .lib file(which is built on VC 8.0 and VC 7.0) and my application is built in VC 6.0.
You can't use static libraries built with VC 7.0/8.0 with VC 6.0. Full stop. There are no workarounds, it just doesn't work - they're incompatible.
Of course, if you could make DLLs out of your static library code, you might get a bit further - but there's lots of different issues there as well.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi all,
i m using excel like this its works fine.
For example:
Start Excel
Excel::_ApplicationPtr pApplication;
if ( FAILED( pApplication.CreateInstance( _T("Excel.Application") ) ) )
{
Errorf( _T("Failed to initialize Excel::_Application!") );
return;
}
Load an Excel workbook
_variant_t varOption( (long) DISP_E_PARAMNOTFOUND, VT_ERROR );
Excel::_WorkbookPtr pBook = pApplication->Workbooks->Open( dlgFile.m_szFileName, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption, varOption );
Get the first worksheet
Excel::_WorksheetPtr pSheet = pBook->Sheets->Item[ 1 ];
i want to know how many rows have data in sheet.
please tell me how can i get rows count.
thanks in advance
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
pSheet->UsedRange->Rows->Count
You know - it would really be a good idea for you to learn about Excel and its object model if you're trying to program against it.
The easiest way to see what Excel has to offer is to open Excel, press ALT+F11 and play with VBA, especially the Object Browser (press F2 in the VBA IDE to access that).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
thanks
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
Purish Dwivedi wrote: So how can I support languages without installing language pack either through WIN XP CD or through microsoft site.
What's wrong about WIN XP CD or MS site?
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]
|
|
|
|
|
|
Purish Dwivedi wrote: Suppose the client doesn't have WIN XP CD or registration at microsoft, then in this situation what will be the solution?
Microsoft should sue your customer, I suppose...
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]
|
|
|
|
|
Hi all
I am using a multidoc multiview application.In that one view(CGraphView) i am opening and depending upon certain condition(when the user change the time period) i have to close it and open it with respect to the new time selected.
After or before closing this view i need to free up the resources because when the view is again opened exception is generated as there is limited area in the heap.
I am closing the Graph as follows.
CMDIChildWnd* wnd1 = MDIGetActive();
wnd1->MDIDestroy();
Is there is any function to free up all the resources allocated for this view like when a window is closed it automatically frees the memory allocated for it.
|
|
|
|
|
if Class destucter is of any help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi guys,
I have 2 classes:
class A{
virtual void Paint() {...}
}
class B: public A{
virtual void Paint() {...}
}
Is it possible and what I have to do, so in B.Paint to invoke A.Paint and then some other code
|
|
|
|
|
akirilov wrote: so in B.Paint to invoke A.Paint and then some other code
Yes:
void B::Paint()
{
A::Paint();
}
|
|
|
|
|
akirilov wrote: in B.Paint to invoke A.Paint and then some other code
Implement B::Paint like this:
void B::Paint()
{
A::Paint();
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
class A{
virtual void Paint() {...}
}
class B: public A{
virtual void Paint()
{
A::Paint();
...
}
}
You can also use __super (if available) like:
class B: public A{
virtual void Paint()
{
__super::Paint();
...
}
}
> 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. <
|
|
|
|
|
Thank you guys, the answer of all of you was very helpful.
I tried with A.Paint(), but it didn't work.
I'm going to use __super, thus It will not depend of the base class name.
THANK YOU, again!!!
|
|
|
|
|
akirilov wrote: I tried with A.Paint(), but it didn't work.
Possibly because they suggested A<big>::</big>Paint() instead.
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]
|
|
|
|
|
Well I tried A.Paint() before I posted here
so, A::Paint() is working fine.
|
|
|
|
|
akirilov wrote: I'm going to use __super, thus It will not depend of the base class name.
But it does tie you to Microsoft's compiler...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Along with other answers, see the __super[^] keyword. You could call a parent class function by __super::FuncName()
[EDIT] OK, I just read you already are going to settle on this keyword. [/EDIT]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi guys..i have a program that require me to input user input by textbox and output it to a label...but my superviosr wants me to do it on silabs...this means i have to use serial comm to link it...i know the serial comm coding..now i need to know how to output the user input to the label..i try printf(""); and "label1->text= " but it doesnt work..any helps?
|
|
|
|
|
Are you using MFC ? If yes you have to provide a specific Id to your static control in the resource editor. Then you can do something like this (in your dialog class):
GetDlgItem(ID_YOURID)->SetWindowText(_T("Your text here"));
|
|
|
|
|
ruthlesspker wrote: hi guys..i have a program that require me to input user input by textbox and output it to a label...but my superviosr wants me to do it on silabs...this means i have to use serial comm to link it...i know the serial comm coding..now i need to know how to output the user input to the label..i try printf(""); and "label1->text= " but it doesnt work..any helps?
How is it related to the microcontroller?
ruthlesspker wrote: hi guys..i have a program that require me to input user input by textbox and output it to a label...but my superviosr wants me to do it on silabs...
How is it related to the serial communication?
Could you please state more clearly what do you need to do (have you to send the text of an edit box to the microcontroller via the serial port? Should it be formatted in a special way?)?
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]
|
|
|
|
|
Hi,
I have a list view (Report) with 5 colom, I am using a context menu on clicking on any of the row, but the same context menu is also coming for clicking any of the colom.
How can I prevent it to appear on colom?
|
|
|
|