Search found 15 matches
- Wed Nov 29, 2006 5:45 pm
- Forum: Open Discussion
- Topic: Building a lookup table
- Replies: 2
- Views: 1746
Building a lookup table
I have been studying an CRC-algorithm that uses table lookups to speed itself up. I'm working with 8 chunks of data at one point and I should have 8 tables with 256 cells each. Here's how the tables are described: Each chunk is used for accessing a separate lookup table. The lookup tables used by th...
- Thu Jun 01, 2006 5:01 pm
- Forum: General Development
- Topic: Converting "hex string" to int
- Replies: 13
- Views: 6980
It seems you have crossed the 0x7fffffff boundary on your example. I guess this means if strtol converts to a signed word, you actually get the value you commented behind it. Maybe if you put (unsigned long) in front of the first one, you get the proper casting to std::cout and it will show the sam...
- Tue May 30, 2006 9:21 pm
- Forum: General Development
- Topic: Converting "hex string" to int
- Replies: 13
- Views: 6980
- Tue May 30, 2006 6:32 pm
- Forum: General Development
- Topic: Converting "hex string" to int
- Replies: 13
- Views: 6980
- Tue May 30, 2006 5:33 pm
- Forum: General Development
- Topic: Converting "hex string" to int
- Replies: 13
- Views: 6980
Converting "hex string" to int
I have a hex value stored in a std::string, say: std::string str = "0xE765CFD7"; How could the value be converted into an int? I thought I had the answer in boost::lexical_cast with the following quick try: boost::lexical_cast<int, string>("0xE765CFD7") But apparently the functio...
- Tue Aug 09, 2005 1:54 pm
- Forum: C++ Development
- Topic: wxTextCtrl and ascii-art
- Replies: 3
- Views: 1315
- Tue Aug 09, 2005 12:35 pm
- Forum: C++ Development
- Topic: wxTextCtrl and ascii-art
- Replies: 3
- Views: 1315
wxTextCtrl and ascii-art
How can I set the wxTextCtrl to show the text in it as "ascii-art"? For example, if I have set something like this:
How do I get it to show this as a "block", instead of "
Code: Select all
char block = 219;
- Mon Jul 11, 2005 8:42 am
- Forum: C++ Development
- Topic: How to lower the disk space taken by my programs!
- Replies: 26
- Views: 7087
- Wed Jul 06, 2005 5:33 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
- Wed Jul 06, 2005 5:15 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
- Wed Jul 06, 2005 5:07 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
- Wed Jul 06, 2005 3:37 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
- Wed Jul 06, 2005 3:10 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
Yes, I did do that. It should work with something like this, wxArrayString TestA[5]; wxString TestB = TestA[0]; ...right? I guess that's what you meant. Well, for me, it doesn't. I believe it should work, because it wouldn't make no sense not to. Surely there has to be some way to get the informatio...
- Wed Jul 06, 2005 2:41 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500
- Wed Jul 06, 2005 1:52 pm
- Forum: C++ Development
- Topic: wxString and wxArrayString problem
- Replies: 17
- Views: 4500