|
See if either of these two articles give you any ideas:
http://www.codeproject.com/cpp/cint96.asp
http://www.codeproject.com/system/cfile64.asp
They don't directly answer your question, but every little bit helps! Also, try searching the Net for ULARGE_INTEGER and see how it is handled.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
http://www.codeproject.com/cpp/cint96.asp
is SOOO close to what I want. But when I looked at how PJ did it, he cheated!! He used the internal MS __int64 type to help with the math routines. Unfortunately I need to make this work on multiple compilers, so I can't use this. Damn. Oh well there are still some good ideas.
Thanks
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
I remember Jack Crenshaw published 64 bit integer math library in Embedded System Programming several years ago. I don't think it was a class, just a typedef with basic math functions written in C.
Good luck. If you find anything useful let us know.
|
|
|
|
|
I will, whatever I figure out I intentend to write an article on.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Hiya I need some code to make my subitems in list control editable. I have downloaded code samples and tryed them all, to incorporate them into my project, but with all of them, it is a nightmare to get it in to work.
I have the item and subitem index numbers.
Can someone plz give me some simple code to edit the chosen subitem??
Thanks,
IrishSonic.
|
|
|
|
|
I haven't been able to get this to work yet, but I know it does (my code is just messed up I think)... it's pretty simple to understand it if you read through it properly.
http://www.codeguru.com/listview/edit_subitems.shtml[^]
good luck (if you run into the same problem as me, see my recent post, and figure out how to fix it, please let me know!!)
|
|
|
|
|
Hiya b_girl.
Thanks for that. That is some of the code I can't get to work for me. Will give it another go and let you know.
IrishSonic
|
|
|
|
|
Sounds good. I'm still trying to get it to work for me as well, so if I get it, I'll let you know as well.
|
|
|
|
|
I have it basically working now (finally). In my application I never wanted to give the user the ability to edit the first column, only the second column (there will only ever be 2 columns in my app). So what I did was just remove the code that determines the column number, and replace it with just setting colnum = 1
So now, a user can click anywhere in the row (I have the extended style LVS_EX_FULLROWSELECT set) and the second column will be available for in-place editing.
My only problem now, is it messes up on vertical scroll. I have removed the functionality for the horizontal scroll because I don't need it. But I can't figure out how to even get that vertical scroll function to be called. I'm not able to use the WM_VSCROLL message, and I think that's what I need to do, so I'm stuck again.
If you're doing something similar to me (having 2 columns and only ever needing to edit the second one) and you're still needing a bit of help let me know.
|
|
|
|
|
Hiya b_girl
Couldn't at all get the sample code to work for me. Tried for at least 3 days.
Anyway went searching the net again and found a different example
www.codeproject.com/listctrl/editing_subitems_in_listcontrol.asp
Got this to work for me last night. For my project I did have to tweak it for my needs. The code is alot simplier than the other one and it is one of those projects that compiles and works. Nothing more annoying than downloading a project and it doesn't compile.
You should definitely check it out.
|
|
|
|
|
Thanks. I did get the other bit of code to work almost perfect though... I just finished looking at the code on:
http://www.codeproject.com/listctrl/editing_subitems_in_listcontrol.asp[^]
It doesn't seem to handle the vertical scroll, and that's all I need to do now. The code I have works perfectly, unless the vertical scroll bar in the list control is hit during editing.
|
|
|
|
|
I'm trying to add a new resource to my application which is in VC++ 7.0 SP1.
Everytime I try to Insert or Add Resource the entire IDE shutsdown.
Is anyone else experiencing this problem?
RS
|
|
|
|
|
I have a dialog box, and within that dialog box I have a CListCtrl, report view, that is set up with 2 columns. I found code online (with the help of some people on this board) at http://www.codeguru.com/listview/edit_subitems.shtml[^] to help me with doing in-place editing of the items in the second column of this list control. For some reason, I can't get it to work in my project. I have a class for my dialog box, and a separate class for the list control.
This code from the above link creates a handler for the WM_LBUTTONDOWN message. When going through the class wizard, I don't have the option of using this event, I have tried creating a handler for the NM_CLICK message, but it doesn't seem to do anything either. right now, I'm handling the messages in my CListCtrl class, not my dialog box class. Can anyone tell me why I don't have the WM_LBUTTONDOWN message available, and what I can do to get around that in order to make this code work?
Thanks.
|
|
|
|
|
Have you tried manually editing your message maps?
|
|
|
|
|
I have, but should the message map be in my dialog box class, or should it be in my list control class? right now, it's in my list control class.
|
|
|
|
|
Hi,
I have a STL question about multimap.
I have a multimap say like..with duplicate keys.
multimap <int, someobject=""> someMap;
..
After inserting some values...I do something like..
multimap <int ,="" someobject=""> ::const_iterator iter;
iter = actionList.find(someObj); // this is the duplicate key and has multiple entries
Now, I want to iterate through all the values that have this key. How can I do that? Any help would be greatly appreciated. Do I have to call find() multiple times till iter points to the end of the map??
Thanks,
Pankaj
Without struggle, there is no progress
|
|
|
|
|
equal_range gives you two iterators ranging all duplicate values.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You can see an example here:
http://www.roguewave.com/support/docs/sourcepro/stdlibref/multimap.html
the bit you're interested in is this:
std::pair<months_type::iterator, months_type::iterator=""> p
= months.equal_range (30);
// Print out the 30 day months.
std::cout << "\nMonths with 30 days\n";
for ( ; p.first != p.second; ++p.first)
std::cout << (*p.first).second << '\n';
|
|
|
|
|
Hi, so far i newer have coded using DirectX i've found some tutorials to draw bitmaps on screen. Is there no function to draw colored 2d pixels? or some way like we did in dos you know poke(0xA000,(y*320)+x,clr)
So i just want to draw 2d graphics with DirectX.
|
|
|
|
|
It's possible to draw single pixels in DirectDraw or Direct3D, but the methods are a bit cumbersome and are generally pretty inefficient. Modern graphics hardware exploits parallelism between the GPU and the CPU, and sending commands to draw pixels one by one carries a lot of overhead.
That said, here is an article on drawing single pixels in DirectDraw:
http://www.gamedev.net/reference/articles/article538.asp[^]
- Mike
|
|
|
|
|
Thanks for this link.
You're right it seems to be time waste to do that,
i think i better use bitmaps to realize my ideas
|
|
|
|
|
I've noticed that the VS 6.0 Debug window will only
display so many lines before giving up and/or reaching
some maximum number of lines of Debugging output.
Have been working on a large project and am getting sick
of trying to shift around all the TRACE calls so that I
can see all that I need to.
I am assuming that this is either a deficiency of the IDE
or that somewhere there is a limit as to how many lines
the Debug window will display - if this is the case, where
do I increase that? If not, is there a fix available??
Is it possible to redirect output from this window, to, say
a log file??
TIA.
John Theal
Physicist/Mathematical Programmer
Digital Immersion Software Corporation
Got CAD?
http://www.presenter3d.com[^]
http://www.merlin3d.com[^]
|
|
|
|
|
Goto www.dilascia.com and look at his TraceWin project. It is a good alternative to dumping to the debug window and supports logfiles.
|
|
|
|
|
|
Hi,
I have a Dialogbar created from the OnCreate method of the CMainFrame class. I have a static control and a button on that Dialogbar. I'm able to catch the button click event (using the mainframe menu) but I can't get the click event from the static control.
Can anybody help me out with this problem ??
Thanks
Jean Bédard
|
|
|
|