Forum: C# Sep 4th, 2007 |
| Replies: 2 Views: 8,107 The class below is a proxy (or wrapper) for making oledb calls.
You can use std sql scripts.
Just make sure that you have the appropriate connection string for your db.
using System;
using... |
Forum: C# Sep 4th, 2007 |
| Replies: 0 Views: 950 Hi,
I have an application where i want a datagridview to treat single mouse clicks as if they are ctrl_clicks. IE I when a user clicks on a row, the rows state is togled (eg not selected to... |
Forum: C Jan 29th, 2006 |
| Replies: 1 Views: 1,865 have a look at http://en.wikipedia.org/wiki/Compiler |
Forum: C++ Jan 29th, 2006 |
| Replies: 4 Views: 2,247 Its actually a theoritical question. You are not required to write any code to solve it.
However, it can also be proven with actual code & appropriate data.
You need to be able to explain how... |
Forum: C++ Jan 29th, 2006 |
| Replies: 7 Views: 1,524 from memory, that exercise is in the chapter on associative arrays.
If you think about how a map (or 2) might be useful, you will find the task much simpler than using vectors. |
Forum: C++ Jan 27th, 2006 |
| Replies: 2 Views: 8,781 Your code wont compile as is. What you need to have is
void aFunction
{
A a; // create local auto object on the stack
A* ap = new A() // create object on the heap &... |
Forum: C++ Jan 27th, 2006 |
| Replies: 3 Views: 3,192 Why not have your program use cmd line arguments. Then your user can specify the output directiry when invoking the prog.
Eg:
prog "D:\output Dir1"
would inform the program to write the... |
Forum: C++ Jan 20th, 2006 |
| Replies: 7 Views: 9,614 Why not use the assignment operator rather than the CopyPerson() method?
Actually most classes will work perfectly will with the compiler generated copy constructor, destructor & assignment... |
Forum: C++ Jan 8th, 2006 |
| Replies: 39 Views: 71,156 you definitely have a config problem. Your path is wrong &/or dev c++ isnt installed correctly.
some of the following has already been suggested, but ill put it here for completeness anyway.
... |
Forum: C++ Jan 7th, 2006 |
| Replies: 5 Views: 1,362 have alook at http://www.gotw.ca/gotw/001.htm |
Forum: C++ Feb 10th, 2005 |
| Replies: 5 Views: 28,286 It all depends on what you need.
Your example saves a class (or class hierarchy).
And, it is much simpler than the Factory pattern.
I have used th same thing in quite a few smallish projects.
... |
Forum: C++ Feb 10th, 2005 |
| Replies: 5 Views: 28,286 You dont specify how you intend to use the factory. That will play a larg part in choosing a Factory pattern to use. So my comments are fairly general.
The motivation behind Factory, is to put the... |
Forum: C++ Feb 10th, 2005 |
| Replies: 1 Views: 1,491 Try changing the first few lines of your code to:
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <iomanip>
using std::ifstream; using std::ofstream;
using... |
Forum: C++ Feb 10th, 2005 |
| Replies: 4 Views: 1,442 using everything in a namespace is not a great idea in general, as it negates the benefits that namespaces bring in the 1st place.
It is far better paractice to only include those symbols that you... |
Forum: C Feb 10th, 2005 |
| Replies: 8 Views: 10,092 The ascii character set assignsg the (256) numbers that can be represented by an unsigned char to display characters. The set runs from 0 - 255. No negatives.
C/C++ uses chars to store ascii... |
Forum: C++ Feb 9th, 2005 |
| Replies: 4 Views: 1,442 You program simply ended after the output line. I assume that you were running it directly from the dev environment. If you run it from a cmd shell you will see the output:
Hello World
To add a... |
Forum: ASP.NET Feb 9th, 2005 |
| Replies: 1 Views: 5,024 Hi,
I am interested in comments / experience people have wrt writing a tcp server in .net.
We currently have existing an existing server, written in native c++. It communicates with our own... |