|
|
Hello,
I am looking for dowloading a ActiveX DataGrid control 6.0. Where can I found the possibility to install this ActiveX because on the computer where I want used this control it is not present and the application cann not start.
thank you for your help!
AutreChien
|
|
|
|
|
Hello All,
A few quick questions that i would really appreciate some answers on:
The standard template library vector (i.e. vector<myobjec> myVector) - can you double subscript it (i.e. myVector[2][3])?
Do vectors (again from the STL) inherently allocate dynamic memory (the more abundant kind)? In other words, if I use the pushback() method, is the vector allocating that memory dynamically on the heap (or free-store)?
Thanks, any help or advice would be great.
Have a great day.
Peace,
BP
|
|
|
|
|
BlitzPackage wrote: can you double subscript it (i.e. myVector[2][3])?
No
BlitzPackage wrote: if I use the pushback() method, is the vector allocating that memory dynamically on the heap (or free-store)?
Yes, when required but normally not for every push_back()
http://www.sgi.com/tech/stl/Vector.html[^]
"I've found that the shortcomings of human nature have little to do with nationality." Christopher Duncan in the Lounge
led mike
|
|
|
|
|
|
BlitzPackage wrote: The standard template library vector (i.e. vector myVector) - can you double subscript it (i.e. myVector[2][3])?
Yes. You just declare it this way:
vector< vector<int> > myVector;
This creates a 2 dimensional array of integers.
BlitzPackage wrote: Do vectors (again from the STL) inherently allocate dynamic memory (the more abundant kind)? In other words, if I use the pushback() method, is the vector allocating that memory dynamically on the heap (or free-store)?
The memory that vector/list/deque/heap/stack/map/set/etc use is on the heap. It allocates and manages it so that you don't have to. Almost all of the STL containers allocate a default size (or a grow-by depending on the type of container) to optimize allocations. They also typically do not resize smaller (so resizing a vector to a smaller size will not free up any memory).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
cheater I was thinking technically... no [][] operator.
"I've found that the shortcomings of human nature have little to do with nationality." Christopher Duncan in the Lounge
led mike
|
|
|
|
|
You must learn to look passed the surface to the true meaning of the question, young padawan
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
So true.... May the Code be with you
led mike
|
|
|
|
|
You guys are hilarious, I am cracking up?
|
|
|
|
|
Well, Im making a listbox that displays thumbnails of images using a CImageList. The drawing is working fine, but I want the listbox to draw the items in a similar way to the listcontrol. For example:
------------------|^
XXXXX XXXXX |-
XXXXX XXXXX |
XXXXX XXXXX |
img1 img2 |
|
XXXXX XXXXX |
XXXXX XXXXX |
XXXXX XXXXX |
img3 img4 |-
------------------|v
In the ascii above (...), I want to display 2 columns of images (actually, depends on the width of the control) and only the vertical scrollbar. I tried setting the multicolumn property to true on the designer, and it kinda works, but the scroll shown is the horizontal scrollbar, and not the vertical. If I leave the control with multicolumn set to false, there is only one column and a vertical scrollbar (whatever the width of the control, the items wont be calculated to use this space...).
What can I do to accomplish my goal?
Thanks,
Andrés Cartín
|
|
|
|
|
u have 4 types of views in a CListView control, Large Icons, small icons, report and list..
if u want that style u should change the style of the listview to Large icons, this can be done at design time by right-clicking the control --> Properties and changing style..
If u want to change the view at runtime u can use CListView::ModifyStyle function, with LVS_ICONS as a parameter.
hope this helps
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
hi
use 'Large Icons' view from the CListView properties
Regards
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
I know I could have used the listview, but I wont. I need to customly draw a bitmap behind each item (yes, another bitmap apart from the image from the image list). The problem with the listview is that i cant do the drawing of the background image on the OnCustomDrawList. Any help?
|
|
|
|
|
|
You can't using a Modal dialog. If you make your dialog Modeless, you will be able to continue while the dialog is displayed.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
do you dialog modeless then...
|
|
|
|
|
|
Sir,
I want to apply password to the file/folder with the help of my application .Please suggest some tutorials for that.Last time i was told to get the knowledge up to black belt, device drivers, file extentions.But i was not suggested where to study these things online.Please suggest any online link .I want to start from the scratch.
Thanks
|
|
|
|
|
|
hi all,
I need to hide/show menus instead of just disable/enable them when UpdateCmdUI is called... how???
Thanx
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
You'll need to call CMenu::RemoveMenu and CMenu::InsertMenuItem to physically remove and restore them. There are no hide / show options.
|
|
|
|
|
Im not sure its possible or no but if you have a custom menu you can use of drawitem when it want to shows items.
|
|
|
|
|
Hi,
Im trying to get this output in the console:
*
**
***
****
*****
******
*******
********
*********
**********
***********
With a genest loop.
How do i get those spaces?
I tried the ascii char '32', but that didn't work either.
Anyone any suggestion?
Thanks in advance!
Edit: its a triangle which is outlined to the right. Its not displayed correctly!
|
|
|
|