Search Results

Showing results 1 to 27 of 27
Search took 0.03 seconds.
Search: Posts Made By: Tight_Coder_Ex ; Forum: C and child forums
Forum: C Sep 17th, 2007
Replies: 1
Views: 678
Posted By Tight_Coder_Ex
Well it sound like you've got the logic already figured out, and dependant upon operating system I would recommend researching high precision timers in either *nix or windows.
Forum: C Sep 2nd, 2007
Replies: 7
Views: 4,600
Posted By Tight_Coder_Ex
Exactly, keep related stuff in the function or subroutine.
Forum: C Sep 1st, 2007
Replies: 7
Views: 4,600
Posted By Tight_Coder_Ex
Similar to goto statements, I've found multiple return paths are as equally problematic. If line 25 is executed then hFile is still open
Forum: C Sep 1st, 2007
Replies: 7
Views: 4,600
Posted By Tight_Coder_Ex
The only thing I can think of is that another process or instance of this application already has the file open, and because you are not sharing the file this would not allow the handle to be...
Forum: C Aug 31st, 2007
Replies: 8
Views: 1,204
Posted By Tight_Coder_Ex
Set a soft break at CreateRawDataBUFR then a watchpoint at rdi, or set the same softbreak and a watchpoint to the location where rdi is stored and another at the contents that rdi points too. Then...
Forum: C Aug 26th, 2007
Replies: 9
Views: 1,029
Posted By Tight_Coder_Ex
I don't know, if iamthwee's link doesn't give you the answer then I guess there isn't one.
Forum: C Aug 12th, 2007
Replies: 5
Views: 978
Posted By Tight_Coder_Ex
I kind of overlooked the fact that maybe you want to run the app in some way. My method only compiles the file, nothing else.
Forum: C Aug 12th, 2007
Replies: 5
Views: 978
Posted By Tight_Coder_Ex
When you open a single file in Visual Studio (VC 6.0++), what it will ask if you want to open an project workspace. That is just something it needs internally and doesn't actually create a project....
Forum: C Mar 29th, 2005
Replies: 2
Views: 4,046
Posted By Tight_Coder_Ex
There are subtle differences between these two methods, so you may want to check out in detail which one suites your purposes. In any case either will work.SendMessage (hWnd, WM_SETTEXT, 0, char...
Forum: C Mar 29th, 2005
Replies: 1
Views: 1,824
Posted By Tight_Coder_Ex
Put all your printf() back in, take out one at a time and then you'll know exactly where the problem is.
Forum: C Mar 29th, 2005
Replies: 4
Views: 11,656
Posted By Tight_Coder_Ex
void delspace (char *Str)
{
int Pntr = 0;
int Dest = 0;

while (Str [Pntr])
{
if (Str [Pntr] != ' ')
Str [Dest++] = Str [Pntr];
Pntr++;
Forum: C Mar 21st, 2005
Replies: 5
Views: 4,716
Posted By Tight_Coder_Ex
Thanks Dave, just what I was looking for and much more!
Forum: C Mar 21st, 2005
Replies: 5
Views: 4,716
Posted By Tight_Coder_Ex
That accomplishes the formatting I want, but still doesn't solve the problem of assigning it to a string variable.
Forum: C Mar 21st, 2005
Replies: 5
Views: 4,716
Posted By Tight_Coder_Ex
I'd like to read a floating point value cin >> Value where Value is declared as a double and then output it to a string justified to two decimal places. I understand how to do it using a temporary...
Forum: C Mar 17th, 2005
Replies: 9
Views: 2,201
Posted By Tight_Coder_Ex
First thing I saw was you mixed a little basic with C.while ((strcmp(dummy,"ZZZZZ") !=0) && (i<maxrows)); not and. Other than that you were so close. All you needed to do was make another loop inside...
Forum: C Mar 15th, 2005
Replies: 11
Views: 2,109
Posted By Tight_Coder_Ex
Try this baboon4000.

1. Create a table of 26 elements (A - Z)

2. Everytime you use a letter check the value of the corresponding element of the array and if it hasn't been used yet invert its...
Forum: C Mar 14th, 2005
Replies: 9
Views: 2,836
Posted By Tight_Coder_Ex
You've got the right idea, now it's just a matter of deciding what sort algorithym you want to use. Conditionals "if" would work, especially as there are only three values but you might not want to...
Forum: C Mar 13th, 2005
Replies: 3
Views: 1,459
Posted By Tight_Coder_Ex
Start with thischar *Units [] = {"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
char *Teen [] =...
Forum: C Mar 11th, 2005
Replies: 5
Views: 2,366
Posted By Tight_Coder_Ex
echo(), noecho(), cbreak(), nocbreak(), raw() & noraw() are the functions in ncurses you are looking for. If you are windowing with ncurses also read about keypad (WINDOW, bool)

You can also do...
Forum: C Mar 10th, 2005
Replies: 13
Views: 4,280
Posted By Tight_Coder_Ex
Yes you will eventually run out of memory by continuously allocating with malloc and never freeing.

In the second case, theroetically you shouldn't run out of memory by freeing each time, but...
Forum: C Mar 8th, 2005
Replies: 18
Views: 6,349
Posted By Tight_Coder_Ex
As defined in stdlib.h and malloc.hfree (q);will do the trick. Assure only pointers that were created with malloc, calloc or realloc are passed to free (), otherwise other calls to get memory may...
Forum: C Mar 3rd, 2005
Replies: 23
Views: 6,515
Posted By Tight_Coder_Ex
I'm not at my own computer so I can't test the code, but the idea is to steer you in the right direction anyway. If you have the pro version of VC++ have a look at the disassembled code. You'll see...
Forum: C Feb 28th, 2005
Replies: 3
Views: 4,410
Posted By Tight_Coder_Ex
try((x + ~y) >> 31) & 1
Forum: C Feb 25th, 2005
Replies: 6
Views: 3,178
Posted By Tight_Coder_Ex
Don't use static in a public class member. Public means it's accessable to the outside world, but static limits it too the segment of code where you've declared it. If you want to hide it from...
Forum: C Feb 24th, 2005
Replies: 2
Views: 2,933
Posted By Tight_Coder_Ex
Linked lists are very simple. Take for example a doubly linked list, it has a pointer to the previous item and one to the next. I use -1 or 0xffffffff to indicate the item is either at the begining...
Forum: C Feb 23rd, 2005
Replies: 3
Views: 2,055
Posted By Tight_Coder_Ex
Nice Dave, I've been asked this question quite a bit and have never though of putting it together in this context
Forum: C Feb 20th, 2005
Replies: 3
Views: 2,108
Posted By Tight_Coder_Ex
I'm not familiar at all with Turbo C++, but maybe check the settings for the compiled application such as machine, stack, heap etc. It could be one of the parameters required by executable header is...
Showing results 1 to 27 of 27

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC