User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 402,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,869 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 500
Search took 0.13 seconds.
Posts Made By: Ancient Dragon
Forum: DaniWeb Community Feedback 1 Hour Ago
Replies: 6
Views: 52
Posted By Ancient Dragon
Re: I can't see mod menues

Great :) clearing temp files fixed the problem.
Forum: DaniWeb Community Feedback 6 Hours Ago
Replies: 6
Views: 52
Posted By Ancient Dragon
Re: I can't see mod menues

This must be the same issue as this thread (http://www.daniweb.com/forums thread144234.html) because I just downloaded Firefox 3 and the menus appear normally.
Forum: DaniWeb Community Feedback 7 Hours Ago
Replies: 6
Views: 52
Posted By Ancient Dragon
I can't see mod menues

I had to change computers because my other one bit the dust a couple days ago (64-bit Vista/IE7). Now when I log into DaniWeb I can't see the mod menus in Coffee House -- see thumbnail.
Forum: C++ 16 Hours Ago
Replies: 1
Views: 44
Posted By Ancient Dragon
Re: Inventory program

Yes, we can HELP you but we will not write it for you. You have to write the program then post questions about what you don't understand.

I believe the first thing you need to do is design the...
Forum: C++ 23 Hours Ago
Replies: 6
Views: 55
Posted By Ancient Dragon
Re: connecting to an SQL DB

I just finished compiling and linking with Dev-C++ with no problems after adding the libraries.

Posted this before I saw your previous post (solution)
Forum: C++ 23 Hours Ago
Replies: 6
Views: 55
Posted By Ancient Dragon
Re: connecting to an SQL DB

I just compiled/linked with VC++ 2008 Express without a problem.

What was the exact error message? What you quoted was only an indication that one or more errors occurred.
Forum: C++ 1 Day Ago
Replies: 3
Views: 73
Posted By Ancient Dragon
Re: stray pointer

Because the pointer has not been initialized to anything. It just points to some random location in memory, which your program may, but probably does not, own. Before using a pointer you must...
Forum: C++ 2 Days Ago
Replies: 5
Views: 111
Posted By Ancient Dragon
Re: Compile-time printing?

flush is a function so you need to use () cout.flush()

Try this macro
#define PRINT(x) (cout << x << "\n" )
Forum: C++ 3 Days Ago
Replies: 1
Views: 49
Posted By Ancient Dragon
Re: C++ sequential file / array

>> what would I name my file or doesn't it make any difference?
It doesn't matter -- name it whatever you want. Text files normally have *.txt extension, not *.dat.

>>So how do I have to call out...
Forum: C++ 3 Days Ago
Replies: 5
Views: 95
Posted By Ancient Dragon
Re: FunEditor Difficulties

That should tell you that nobody uses that editor. My advice is to scrap it and use something else to write your program.
Forum: C++ 3 Days Ago
Replies: 4
Views: 79
Posted By Ancient Dragon
Re: help needed

The reason is because entering numbers leaves the '\n' (Enter key) in the keyboard buffer. cin.ignore() will just remove the '\n'. So you either need another cin.ignore() or do what you did and use...
Forum: C++ 3 Days Ago
Replies: 1
Views: 79
Posted By Ancient Dragon
Re: Timer

I suppose you could use the time functions in time.h

time_t t1, t2;
t1 = time(0);
t2 = t1
while( (t2 - t1) < 1) // one second
t2 = time(0);


You might also check the Boost time functions...
Forum: Geeks' Lounge 3 Days Ago
Replies: 11
Views: 179
Posted By Ancient Dragon
Re: North American Thoughts

That is very funny, but I hope you realize that Canadians and Mexicans are also Americans. America refers to the North American continent, not the USA.
Forum: C 3 Days Ago
Replies: 2
Views: 94
Posted By Ancient Dragon
Re: How to write enter in text file

how was the file opened? as text or binary? If binary then the next line character(s) depends on the operating system. In MS-Windows/MS-DOS you need "\r\n". *nix just "\n" and MAC "\r". If the...
Forum: C++ 3 Days Ago
Replies: 1
Views: 62
Posted By Ancient Dragon
Re: Win Form APP Full Screen ?

Maybe this article (http://www.codeproject.com/KB/dialog/Viewsinfullscreenmode.aspx) will help you.
Forum: C++ 3 Days Ago
Replies: 5
Views: 104
Posted By Ancient Dragon
Re: Added Linecharacter in textBox

This probably won't solve your problem, but ... Do you really need that vector? Why not just combine those two loops?
Forum: C++ 3 Days Ago
Replies: 1
Views: 71
Posted By Ancient Dragon
Re: saving to a folder, not a file

You should be able to call win32 api function SHBrowseForFolder() (http://msdn.microsoft.com/en-us/library/aa923860.aspx)
Forum: C++ 3 Days Ago
Replies: 2
Views: 92
Posted By Ancient Dragon
Re: "warning: NULL used in arithmetic"

http://www.cppreference.com/cppstack/top.html

It does not return NULL, but returns a reference to the first object in the stack. Checking for NULL is not a valid thing to do.
Forum: C 4 Days Ago
Replies: 3
Views: 74
Posted By Ancient Dragon
Re: Parent context for swapcontext func

why? The operating system does all the thread swaping for you.
Forum: C++ 4 Days Ago
Replies: 5
Views: 95
Posted By Ancient Dragon
Re: FunEditor Difficulties

No I can't because I know nothing about that editor. Go back to where you got it and see if they have a user's group or forum where you can ask questions. My pure guess is that you failed to...
Forum: C 4 Days Ago
Replies: 3
Views: 74
Posted By Ancient Dragon
Re: Parent context for swapcontext func

What operating system? Is it something that you are writing ? I did something similar in MS-DOS 6.X (a program with multiple context threads). In that program I had a kernel function (kernel to my...
Forum: C 4 Days Ago
Replies: 1
Views: 51
Posted By Ancient Dragon
Re: data base for personal assistant required urgently

Learn to program it yourself. Or offer to pay someone in the Looking To Hire board.
Forum: Community Introductions 4 Days Ago
Replies: 1
Views: 76
Posted By Ancient Dragon
Re: looking for help and guidance

Welcome to DaniWeb.

>>i need input on where to start
Sart at the beginning by talking to your college school consoler.
Forum: C++ 4 Days Ago
Replies: 2
Views: 77
Posted By Ancient Dragon
Re: get fonts

EnumFonts() (http://msdn.microsoft.com/en-us/library/ms533964(VS.85).aspx)
Forum: C++ 4 Days Ago
Replies: 5
Views: 107
Posted By Ancient Dragon
Re: An equivalent to a vector<ifstream> member variable

Did you try something like this?

#include <iostream>
#include <string>
#include <vector>
#include <fstream>
using namespace std;

void foo(ifstream& in)
{
Forum: C++ 4 Days Ago
Replies: 8
Views: 140
Posted By Ancient Dragon
Re: general advice on programming pratices

>>are STL containers faster then c-style arrays?
No. you can't get any faster access than c style arrays. But that isn't the point -- c++ STL eliminate many of the problems with c style arrays,...
Forum: C 4 Days Ago
Replies: 2
Views: 76
Posted By Ancient Dragon
Re: Question on File write

you can use either sprintf() or strcat() to format the output file name. Example:

char outname[255];
char inputname[255];
char* ptr;

printf("Enter a file...
Forum: C 4 Days Ago
Replies: 4
Views: 100
Posted By Ancient Dragon
Forum: C++ 4 Days Ago
Replies: 5
Views: 95
Posted By Ancient Dragon
Re: FunEditor Difficulties

The error message is pretty clear about what is wrong, and the solution sould be obvious: where did you declare MUSHROOM_END ???
Forum: C++ 4 Days Ago
Replies: 8
Views: 140
Posted By Ancient Dragon
Re: general advice on programming pratices

1) 2) and 3). Very little, if any, performance gain. Those are not areas to optimize because the compiler will do that.

4) You talking about c++ classes? vertual class methods are extremly...
Forum: C++ 5 Days Ago
Replies: 4
Views: 88
Posted By Ancient Dragon
Re: open with: win xp

all c and c++ programs have a main() function, and it has two optional arguments.
int main(int argc, char* argv[])


argc is the number of command-line arguments (deliminated with spaces). argc is...
Forum: C++ 5 Days Ago
Replies: 1
Views: 52
Posted By Ancient Dragon
Re: .in file confusion

That information is not in a *.ini file. Its in a database, such as MySQL and Microsoft SQL Server (there are lots of others too). The simplest kind of database is a plain text file. *.ini files...
Forum: C++ 5 Days Ago
Replies: 8
Views: 181
Posted By Ancient Dragon
Re: string.size and accentuated words

I don't have ubantu, but Microsoft VC++ 2008 Express reports 1 for the program that jamthwee posted. The compiler stored -61 in that byte. crappy *nix :)

>>I'm sorry, but I'm a beginner C++...
Forum: C++ 5 Days Ago
Replies: 8
Views: 181
Posted By Ancient Dragon
Re: string.size and accentuated words

Please post example code. Are you compiling for UNICODE ?
Forum: C++ 5 Days Ago
Replies: 6
Views: 119
Posted By Ancient Dragon
Re: assigning the address of a variable in c++

AFAIK Must be done in the constructor.
Forum: C++ 5 Days Ago
Replies: 5
Views: 135
Posted By Ancient Dragon
Re: int *array[10] to dynamic array equivalent?

>>function(int *&head)
That is not a function that takes a 2d array. What you have there is a reference to a 1d array. They are not the same thing.



void functijon(int **array)
{
array[0][1] =...
Forum: C++ 5 Days Ago
Replies: 6
Views: 119
Posted By Ancient Dragon
Re: assigning the address of a variable in c++

try this out

class MyClass
{
public:
MyClass(int& xx) : x(xx){};

private:
int& x;
};
Forum: Geeks' Lounge 5 Days Ago
Replies: 142
Views: 5,186
Posted By Ancient Dragon
Re: 2008 US Presidential Poll Part 2

Many of the now-old rich farts actually inhereted their wealth from their parents. The Rockefellers and Hiltons are just two of many such examples. On the otherhand, the richest man in the world...
Forum: C++ 5 Days Ago
Replies: 6
Views: 119
Posted By Ancient Dragon
Re: assigning the address of a variable in c++

I think you want to declare testString as static. That way every instance of the class will reference the same instance of testString.
Forum: Geeks' Lounge 5 Days Ago
Replies: 142
Views: 5,186
Posted By Ancient Dragon
Re: 2008 US Presidential Poll Part 2

McInsain didn't earn his money -- he married it. And do did John Kerry for that matter.

BTW: Only 64 days left until election day. I might just vote for McInsain because of his female vp, who...
Showing results 1 to 40 of 500

 
All times are GMT -4. The time now is 5:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC