| |
thread by: Lewap |
last post Jul 23 '05 by: Sumit Rajan
NT Service working on LocalSystem. Can ordinary user start such service?
I've tried this:
scmHandle = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
scHandle = OpenService(scmHandle, "CapNetSrv", SERVICE_START);
OpenSCManager working but OpenService return error: "The handle does not
|
thread by: Don Kim |
last post Jul 23 '05 by: Francis Glassborow
I'm writing a program to read 2,000,000 floating point numbers off a text
file, to compute the sum, mean, and median. This is a direct example of
Stroustrup's paper.
But the program will not display the total number of elements beyone 23,272:
#include<vector>
#include<fstream>
#include<iostream>
#include<algorithm>
|
thread by: Vince |
last post Jul 23 '05 by: Richard Herring
I have a very specific problem to solve but I cannot find a data
structure for it.
I don't know if I am posting on the good newsgroup but I cannot find
a software.design group.
I would like to declare a smart structure initialized via a XML file.
The goal of this structure is to store data from a smart card.
My XML file describes the file...
|
thread by: Gernot Frisch |
last post Jul 23 '05 by: Peter Koch Larsen
Hi,
is this code:
class XY{};
void foo(bool b)
{
XY a;
if(b)
{
|
thread by: Feverish |
last post Jul 23 '05 by: Stewart Gordon
I am a bit confused with the two marked lines. I have never seen such syntax
even though I read a lot
of C++ codes.
Thanks for your suggestion...
BluetoothReceiver::BluetoothReceiver()
: bandpassFilter(BPLENGTH), <--- Here
|
thread by: Guriks |
last post Jul 23 '05 by: EventHelix.com
HI,
When can i use aggregation and composition. I mean
Class A{
};
Class B{
private:
|
thread by: Alf P. Steinbach |
last post Jul 23 '05 by: chris
The fourth part of my attempted Correct C++ tutorial is now available,
although for now only in Word format (use free Open Office if no Word),
and also, it's not yet been reviewed at all -- comments welcome!
"Decisions & conditions"
<url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_04.doc>
Different from before I don't expect...
|
| |
thread by: cs_hart |
last post Jul 23 '05 by: cs_hart
I have an application in Java that I would like to port to c++ to
integrate with existing c++ app. is anyone aware of any tools to help?
I found microsft has a java->csharp convert, but the java app has class
that do multiple subclassing and this doesn't seem to work in Csharp.
thanks...charlie
|
thread by: Yves Dhondt |
last post Jul 23 '05 by: Chris \( Val \)
Hello,
Currently I have the following "design":
class A { ... };
class B : public A { ... };
class C : public A { ... };
class Z {
private:
|
thread by: shuusaku |
last post Jul 23 '05 by: Robert Emmons
Dear all,
I'm not sure this is the right place to ask for help, but I cannot find
any solution anywhere else, I hope you could help me.
I'm using Borland C++ Builder 6 with TeeChart v4.04 standard. I'm
writing a simple application that should acquire a signal from an
acquisition board, and diplay it on the screen. The signal is sampled...
|
thread by: puzzlecracker |
last post Jul 23 '05 by: Karl Heinz Buchegger
does anyone know how to implement this function?
|
thread by: Sacha Schär |
last post Jul 23 '05 by: Dietmar Kuehl
Suppose I have an array of Foo's:
class Foo
{
public:
int SomeMethode(void);
int i;
char c;
char * p;
|
thread by: Grumble |
last post Jul 23 '05 by: Gianni Mariani
Hello everybody,
(Disclaimer: I do not understand C++ templates.)
I've tried to make a testcase from the original code.
GCC 3.3.5 compiles with no warning, while GCC 3.4.3 rejects it. Could
somebody tell me if it because the code is illegal, and GCC 3.4.3's
stricter parser now rejects it, or is it some kind of regression?
|
thread by: Howard |
last post Jul 23 '05 by: Andrey Tarasevich
Hi,
I know I can do integer division with the / operator, and get the
modulus with the % operator, but is there any function that calculates both
values in one shot? It seems quite wasteful in time to do the division
twice in order to get both of those values, when it would be quite easy to
return them both from a single function.
I saw...
|
thread by: Jo |
last post Jul 23 '05 by: Pete Becker
Hi Guys!
I'm sorry for my stupid question.
I want to use the operator "mod" (perhaps mod is pascal and not c++)
to calculate the rest of a division, to separate the odd and even number of
an array.
do you know what is the name of operator I need ? ("mod" is pascal ?)
|
| |
thread by: Markus Dehmann |
last post Jul 23 '05 by: Joseph Turian
I have a big class that contains code like this (the code is automatically
generated according to some configuration):
if(str == "name1"){
do;
something;
name1_specific;
}else if(str == "name2"){
do;
something;
|
thread by: aaronfude |
last post Jul 23 '05 by: Victor Bazarov
Hi,
Sorry to ask this question in such a backward way, but in java it is
possible to say
int arr = new int { { 1 }, { 1, 2}, { 1, 2, 3}};
Is it possible to do the same in C++ with an (int **)? (Understanding,
of course, that I will need to know the sizes of arrays when using
arr.)
|
thread by: Todd Shillam |
last post Jul 23 '05 by: Mike Wahler
I'm a total C++ newbie here--my background is largely in Visual Basic. I'm
looking for someone who knows (or can send me in the right direction) on a
method to convert a double to currency for output; moreover, I'm interested
in finding a method that supports the thousandths separator. I have found a
money class that works just fine; however,...
|
thread by: Stephane Vollet |
last post Jul 23 '05 by: Efrat Regev
Hi,
Can someone explain this to me, please. Why is it m_values that takes
what's in v.m_values ?
I don't understand because it's Tvector& v in parameter...
Maybe it's too obvious to be explain...
Tvector(const Tvector& v)
|
thread by: Derek Long |
last post Jul 23 '05 by: Efrat Regev
I believe that the following is valid c++:
#include <iostream>
template <typename CMP>
class Comparator
{
bool operator()(int x,int y)
{
return CMP(x,y);
|
thread by: Michaela Martens |
last post Jul 23 '05 by: Michaela Martens
Hi,
ich habe gerade angefangen mit C++.
So, ich habe mal zum testen eine simple Codezeile geschrieben die unter
Windows nur
ein Hinweis-Fenster öffnen soll.
Das funktioniert auch, jedoch öffnet sich beim Programmstart erst die
Console (ohne Prompt) und gleichzeitig erscheint auch das
Hinweisfenster.
|
thread by: bigfaceworm |
last post Jul 23 '05 by: shez
I had what I thought was proper SFINAE code. Two declarations of a
function, one more general, one more specific. The code compiles just
fine on gcc 3.3, but fails on 3.4 and 3.4.2. What is wrong with my
code?
My understanding was that the second routine would be called because it
is a better match, and the first one would not be...
|
thread by: Mark |
last post Jul 23 '05 by: Rolf Magnus
the following is an example of code that won't compile.
(I've reproduced the problem in a simplistic format )
....
#include <iostream>
using namespace std;
class MyClass
{
public:
|
| |
thread by: Jon |
last post Jul 23 '05 by: Jon
For the past month I have been porting a DirectX windows game to libSDL
on linux, for right now I am working on the basic syntax of the game
engine, I was having problems with opening, reading, and closeing of
directories, I have fixed that though...who woulda thought that it would
be open, read, and closedir()?
Anyway, I am still working...
|
thread by: Tumzadoc |
last post Jul 23 '05 by: Tumzadoc
Hi
I'm receiving a message from a device which includes the CRC16, i also
have to calculate the CRC16 and check if it matches the one received. My
problem is that the calculated CRC is not the same as the received one.
This is how the unit for calculating the CRC:
...
|