But what if you have a string like "us dollars $34cheap". TryParse gives 0 for the result. atoi would give 34. Is there anything in C# that does exactly what atoi does in C++?
AORD
Posts
-
atoi? -
CListCtrl - Multiple selection from anywhere within the listRunning the DragTest.exe on my XP work tablet the same problem occurs. I'm not sure we are talking about the same thing. :( I'm only multiple selecting using the mouse left button. I don't care about dragging at all, I just want to create a blue highlighted selection of rows. With the DragTest.exe the Index colum only is dragable I cannot create a multiple selection of rows unless i do the following steps: a) left click and hold the mouse button on the first columns blank area or anywhere after the last row or column. b) then I move the mouse to highlight the rows I want. This creates a rectangle (of dashed lines)that covers the first highlighted row from the start position of the mouse to the final position of the mouse. c) I release the mouse then the dashed rectangle disappears and a whole lot of rows remain highlighted in blue. The problem is when I have a big list say 20,000 rows and 30 columns the user can't always use the mouse to select a whole lot of rows.
___________________________ Here come the machines!
-
CListCtrl - Multiple selection from anywhere within the listRunning the DragTest.exe (not building) I can only multi select with the mouse on the blank areas, this includes the blank area in the word column, BUT not the blank area in the index column. If you can and I can't multi select with the mouse on all of the populated columns it must be the windows file that contains the ClistCtrl? What version of windows are you running? I'm using XP.
___________________________ Here come the machines!
-
CListCtrl - Multiple selection from anywhere within the listYes you are correct, i am using report view (sorry I should have mentioned :-O ). I have checked with examples at codeproject. e.g http://www.codeproject.com/KB/combobox/listctrldemo.aspx[^] click on the details tab for report view, try multiple selecting using the mouse from the Value or Time columns, you can't :(( :(( :(( :(( Any ClistCtrl using report only allows multiple selection from the left hand column :( . Single selection works fine. There must be an easy way allow a mouse drag selection from anywhere in the other populated columns?
___________________________
-
CListCtrl - Multiple selection from anywhere within the listHi, I have a CListCtrl set to LVS_EX_FULLROWSELECT style. Using the mouse to create a multiple selection in a list control only seems to work when you select from the empty space in the first column. Is there an easy way to allow multiple selection from anywhere inside the list control?
-
What language???64k, was there a 64k machine or do you mean a 48k? Here come the machines!
-
== vs =That made me laugh so hard I had to print it out and stick it on my wall! Here come the machines!
-
CString and Huge SQL Queries"A CString object can store up to INT_MAX (2,147,483,647) characters." That is what it says in the MSDN libraray.
-
CButton SetFocusYou are correct, it does have focus, but does not accept the enter key. I want to set the focus. See the replys below Many Thanks, AORD
-
CButton SetFocusRajesh R. Subramanian wrote:
It is not during InitDialog(),
Correct. I want the user to press enter while the focus is on an CEdit control, then I want the focus to move to a CButton control. But the CButton control does not obtain its normal focus (as it would if the user had pressed the tab key). Yes toxcct & Mircea you are correct, the CButton does obtain a sort of focus by using
GetDlgItem(IDC_MY_BUTTON)->SetFocus();
and the button is drawn incorrectly and nothing happens when the enter key is pressed (the space key works).::PostMessage(hButton, BN_SETFOCUS, 1, 0);
This works the same asGetDlgItem(IDC_MY_BUTTON)->SetFocus();
.PostMessage(WM_KEYDOWN, (WPARAM)VK_TAB);
This strange because it moves the focus backwards, that is the focus does not follow the Layout Tab order, :omg: thats not expected. So I have changed the Tab order and now it works, but this is at odds with the tab order the user would expect :(. Thanks for the help :):):), It's not quite right, but is close. -
CButton SetFocusHi, I want to set the focus to a CButton control. I'm using
GetDlgItem(IDC_MY_BUTTON)->SetFocus();
but it does not work. It works for CEdit controls but not CButtons. How can I set the focus to a CButton control? -
Serial Port MonitoringDoes anybody know where there is any freeware (i'm only a peasant :((:((:(() serial port monitoring software?
-
Do You Like C/C++Thanks but no thanks X| X| X| X| CodeProject is a million times better :):):):)
-
OpenGL help (URGENT)Have you checked the order of your points (glVertex's) defining the cube? You could also try NeHe: http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=05
-
Clicking on LineYou could also try someting like GetPixel to find the colour at the mouse pointer.
-
Long term heat effects on PC'sThanks that is a good idea :). Athough I think it is fairly clean. Also I have used a vacuum cleaner for cleaning surface mount machines. Being static safe we used one with a metal hose end which had its own earthed.
-
Long term heat effects on PC'sWhat about one of the first pentiums (100mHz)? Isn't that when heat issues really started to show?
-
Long term heat effects on PC'sI have a client that is running a PC (100mHz machine X| ) in a cupboard with a ambient temperature of over 40 degrees C (+104 F) :cool:. It has been running non stop for a couple of years. Now they are having: Printing problems :(( Video signal problems :(( And the sometimes system lock ups :(( Would you expect the PC to be damaged by long term heat effects? :doh: Would reducing the ambient temperature by installing a fan in the cupboard stabilize the PC? :confused: Also the CPU runs around 52 C, the BIOS temperature alarms start at 52 degrees C :omg: .
-
How the Mars Spirit makes great photosI agree. What happens if this piece of dirt suddenly becomes uninhabitable? Humans we become extinct. Thousands of things could cause the destruction of the human race: Bacteria plagues, nuclear war, sun expansion, sun contraction, meteorites, comets, temperature changes, near by supernova radiation, alien invasions ……. We have all of our eggs in one basket. We need to go forward and conquer, we can learn massive amounts about the universe and ourselves by going to mars. Mind you I do think ultimately humans will be superseded by the machines we will make. And good job, perhaps they will be able to solve the big questions about the universe. So perhaps we should just go hard out making REAL intelligence. What is beyond the universe?
-
Ahhh Paris!Neat wish I was going. :((:((:(( You could always stay longer. Just adapt the machines code so it does not work then slink off saying "I need fresh air to think". :) How much time you can have off depends on your ability to deceive :sigh:, and their inability to understand programming :confused: . Just remember, before returning to work take a fresh mint and change your shirt to hide the smell of crazed french women.