Forum: C++
Apr 2nd, 2007, 9:47 AM
|
|
Replies: 1
Views: 107
DBGHELP API, SymFindFileInPath
I'm having problems getting SymFindFileInPath to behave. There are so many places to get into trouble though. Does anyone know of some code I could use as an example?
Otherwise here's what I...
|
Forum: C++
Feb 1st, 2007, 9:14 AM
|
|
Replies: 0
Views: 100
Command line argument parsing on Windows
I've searched high and low for a library like getargs that would make it easier to parse command line arguments on Windows. No luck at all! I can find plenty for C#, but I need one for unmanaged...
|
Forum: C++
Feb 1st, 2007, 9:11 AM
|
|
Replies: 10
Views: 328
|
Forum: C++
Jan 13th, 2007, 4:25 AM
|
|
Replies: 10
Views: 328
|
Forum: C++
Jan 10th, 2007, 9:46 AM
|
|
Replies: 10
Views: 328
|
Forum: C++
Jan 10th, 2007, 9:21 AM
|
|
Replies: 10
Views: 328
Replacing characters in std::string
How can I easily replace characters in a std::string with another character?
Basically what I'd like is something like gsub (an addition to the string class in GNU's C++ class library). But I'm...
|
Forum: C++
Jan 10th, 2007, 8:50 AM
|
|
Replies: 0
Views: 102
Playing with PDBs in Windows
Well, this isn't really a C++ question as much as a Windows question, but since there's no specific Window area here...
I've been playing around with PDBs in Windows and I've successfully extracted...
|
Forum: C++
Dec 10th, 2006, 2:59 AM
|
|
Replies: 15
Views: 351
|
Forum: C
Dec 9th, 2006, 5:22 PM
|
|
Replies: 0
Views: 125
Problems with signals and ptrace on Linux
I'm trying to use the PTRACE_GETSIGINFO and PTRACE_SETSIGINFO, but I'm running into problems.
This is the code of my "debuggee"
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include...
|
Forum: Other Programming Languages
Oct 26th, 2006, 11:14 AM
|
|
Replies: 16
Views: 464
|
Forum: Other Programming Languages
Oct 24th, 2006, 4:41 AM
|
|
Replies: 58
Views: 2,936
Oh, but then you're missing a big reason for...
Oh, but then you're missing a big reason for learning a new language--it teaches you to think in a different way. I.e. you see more solutions to a problem. In short, it'll make you a better C++...
|
Forum: Other Programming Languages
Oct 24th, 2006, 4:37 AM
|
|
Replies: 58
Views: 2,936
|
Forum: Other Programming Languages
Oct 24th, 2006, 4:29 AM
|
|
Replies: 16
Views: 464
You need some parentheses around the list...
You need some parentheses around the list pattern:
getelem 0 (x:xs) = x
getelem n (x:xs) = getelem (n - 1) xs
By terminating on 0 you have made the function count elements from 0, rather than...
|
Forum: C++
Sep 27th, 2006, 5:55 PM
|
|
Replies: 21
Views: 660
|
Forum: C++
Sep 27th, 2006, 5:52 PM
|
|
Replies: 10
Views: 366
|
Forum: Community Announcements and Feedback
Sep 27th, 2006, 5:43 PM
|
|
Replies: 7
Views: 247
|
Forum: C++
Sep 26th, 2006, 6:15 PM
|
|
Replies: 9
Views: 324
|
Forum: Community Announcements and Feedback
Sep 26th, 2006, 6:10 PM
|
|
Replies: 7
Views: 247
|
Forum: C++
Sep 26th, 2006, 6:07 PM
|
|
Replies: 0
Views: 84
Testing client in client/server.
I'm just soliciting for ideas here. I don't think my situation is very unique so there ought to be someone out there that can offer some wisdom :-)
I'm writing a client for a client/server app. On...
|
Forum: Community Announcements and Feedback
Sep 26th, 2006, 6:00 PM
|
|
Replies: 7
Views: 247
Testing forum?
Would it be worth creating a forum specifically for testing?
I don't really know how language-specific testing is (I'm thinking of unit testing in particular) but I suspect others do know and can...
|
Forum: C++
Sep 26th, 2006, 5:51 PM
|
|
Replies: 9
Views: 324
|
Forum: C++
Sep 26th, 2006, 5:43 PM
|
|
Replies: 9
Views: 343
|
Forum: C++
Sep 26th, 2006, 5:42 PM
|
|
Replies: 9
Views: 343
|
Forum: C++
Sep 21st, 2006, 3:31 AM
|
|
Replies: 9
Views: 343
|
Forum: C++
Sep 19th, 2006, 11:02 AM
|
|
Replies: 9
Views: 343
auto_ptr fun
The following code compiles without errors or warnings using Visual Studio (2005 professional). However, it's not correct and when it's executed it throws an exception at the very end. GCC, however,...
|
Forum: Python
Aug 31st, 2006, 10:24 AM
|
|
Replies: 3
Views: 232
Just a small tip, python's interpreter has an...
Just a small tip, python's interpreter has an interactive mode which you can use to get some hands-on experience with the basics of the language. Just run "python" on the command line.
I can...
|
Forum: C++
Aug 31st, 2006, 10:18 AM
|
|
Replies: 4
Views: 170
|
Forum: Software Design and Algorithms
Aug 3rd, 2006, 8:37 AM
|
|
Replies: 10
Views: 275
I have used a similar technique in Python, but...
I have used a similar technique in Python, but then I don't wrap the system API but rather use decorators to extract common exception handling. Just for the sake of comparison I'm including a little...
|
Forum: C
Aug 3rd, 2006, 8:24 AM
|
|
Replies: 4
Views: 251
Thanks!
I've been trying this on WinXP and it...
Thanks!
I've been trying this on WinXP and it looks like singlestepping is turned off automatically as soon as I receive an EXCEPTION_SINGLE_STEP. This means I need to keep on turning it on, which...
|
Forum: C
Jul 26th, 2006, 12:19 PM
|
|
Replies: 4
Views: 251
Writing a debugger on Windows: single stepping
I'm exploring the debugging API for Windows. Using the documentation on MSDN and a few other sources I've managed to write a very simple little program that uses the available API to control another...
|
Forum: C
Jul 26th, 2006, 12:11 PM
|
|
Replies: 7
Views: 338
|
Forum: C
Jul 14th, 2006, 10:25 AM
|
|
Replies: 7
Views: 338
Hmm, I can't find anything that looks relevant,...
Hmm, I can't find anything that looks relevant, except maybe for pslist (http://www.sysinternals.com/Utilities/PsList.html). However I can't find any source for pslist. (I also have my doubts since...
|
Forum: C
Jul 13th, 2006, 2:50 AM
|
|
Replies: 7
Views: 338
|
Forum: C
Jul 12th, 2006, 10:38 AM
|
|
Replies: 7
Views: 338
Inspecting process' memory on Windows
I'd like to find out what (virtual) pages are actually used within a process on Windows. The entire reachable address space is 2GB (or 3GB) but that doesn't mean that all the pages in that range are...
|
Forum: C
Jul 12th, 2006, 10:30 AM
|
|
Replies: 9
Views: 294
Using GlobalAlloc and GlobalFree is not...
Using GlobalAlloc and GlobalFree is not encouraged according to MSDN. Use the heap functions instead.
Not freeing memory always leads to memory leaks. Simple as that!
Note that global in...
|
Forum: C
May 11th, 2006, 10:47 AM
|
|
Replies: 1
Views: 286
MinGW and SecureZeroMemory
How do I go about calling SecureZeroMemory from a program compiled with MinGW?
It seems the function isn't in the distributed header files, so I declared it myself. Then it fails on linking.
|