| |
thread by: ashish.sadanandan |
last post Feb 22 '06 by: Praetorian
Hi,
I haven't done a lot of C++ programming (done a lot of it in C) and the
reason why I'm considering switching now is also the question I'm
posting here.
I have some library functions that return to me a void* to data that
has been specifed by the user. There are also functions that return an
enum which contains information about the...
|
thread by: Bilgehan.Balban |
last post Feb 22 '06 by: Bilgehan.Balban
Hi,
My platform has 32 bit words, and an `unsigned int' corresponds to 32
bits. Also an `unsigned long long' corresponds to 64 bits.
If I declare a type of `unsigned long long', can I assume that my
compiler would correctly interpret any operation I do on this type if I
visualise it as if it's the native word size? I guess that's the...
|
thread by: pointer noob |
last post Feb 22 '06 by: Mark McIntyre
Hi,
I am trying to write a bit of code to iterate through memory addresses
and if the address is divisable by 2 then write one byte, if not write
a different byte. I am having trouble with the pointer to the address
incremented by for loop.
unsigned long i;
for(i=0xB8000; i<0xC0000; i++)
|
thread by: sweety |
last post Feb 22 '06 by: Jordan Abel
Dear all,
Kindy help to convert the char* ( LPCSTR) to WCHAR*(LPCWSTR). Would be
great if you tell if any function does this job in VC++.
Quick response will be greatfull...as its blocked...
Thanks,
Sweety
|
thread by: Protoman |
last post Feb 22 '06 by: Mark McIntyre
Which is better for general-purpose programming, C or C++? My friend
says C++, but I'm not sure. Please enlighten me. Thanks!!!!!
PS I believe the folks over at comp.lang.c++ could add something to
this.
|
thread by: Kufa |
last post Feb 22 '06 by: Kufa
Hi,
I am probably asking for something which was discussed several times,
but all my researches were unsucessfull.
If you look at this code (simplified part of my project):
---------------
template< int dimension > struct Test
{
|
thread by: poison.summer |
last post Feb 22 '06 by: Ben Bacarisse
Hi I have a char p,
I'd like to print out the lower 4 bits and higher 4 bits of p
seperately
how can i do that?
Thanks a lot!
|
| |
thread by: SecretCodeBreaker |
last post Feb 22 '06 by: SecretCodeBreaker
I apologize for this OT posting.
I've read the FAQs and the Etiquette comments, so I know that this post
is a probably a No, No.
I even looked at the <misc.jobs.offered.entry> newsgroup, but that
didn't seem to be the right place either.
In any case - I'm looking for two or three programmers (hobbyists) that
are past the beginner stage...
|
thread by: gbostock |
last post Feb 22 '06 by: gbostock
I'm working on some legacy code and came across something like this.
Anybody know exactly what the ramifications are to the memory if you do
something like this:
int somefunction (some arguments)
{
....
Mystructtype mystruct;
|
thread by: QQ |
last post Feb 22 '06 by: Richard G. Riley
I have a string
the length is 0. I got it from strlen(TE);
however, if I use
if(TE!=NULL)
{
}
|
thread by: Kenneth Kahl |
last post Feb 22 '06 by: Kenneth Kahl
Hello,
I would like to call a C++ programm out of Java with help of JNI. By the
followed command I created a "shared library":
g++ -shared -o libcalculate.so rechner.cpp
When I create an object from the existing program inside a method of my
class rechner.cpp, and then call the method out of java, a following
|
thread by: Protoman |
last post Feb 22 '06 by: Ben Pope
Can you help me figure out why this integer printing program won't
compile? I've looked far and wide in my diagnostics to figure out why,
but I'm lost. Here's the code:
#include <iostream>
#include <cstdlib>
using namespace std;
template<int I>
class _name
|
thread by: yazwas |
last post Feb 22 '06 by: Victor Bazarov
Hi everyone
I have a problem. I compiled hello wold progarm under unix (solaris 9
workstation) and it compiled fine using c++ compiler but when I try to
execute it it gives me this error messgae:
ld.so.1: ./a.out: fatal: libstdc++.so.2.10.0: open failed: No such file
or directory
Killed
I know that the libstdc++ is not in the default...
|
thread by: Yohan |
last post Feb 22 '06 by: Marcus Kwok
Hello,
I have a question concerning the template classes and their parameters.
Is it possible to set a condition on the template parameters in a way
that could block the compilation if the condition isn't true?
(e.g. by throwing an error message to the compiler).
And is it possible to use this type of condition to make the compiler
choose...
|
thread by: Charlie |
last post Feb 22 '06 by: Ben Pope
Dear all,
I'm running a trace analyzer over a large trace file(several gig hz).
However it stopped in the middle. I got the call stack from the gdb. I
wonder if anyone could figure out the reason of this SIGABRT?
About to run ./tracer_21Feb2006 ammp.loop_bounds.trace
ammp.mem_ops.trace
Using host libthread_db library...
|
| |
thread by: mike |
last post Feb 22 '06 by: Ben Pope
hi,
how can i use the object as the parameter of the method, in the body of
a class in which the method is defined ?
example: assume i've got a class imaginary_number, and one of the
methods is imgaginary_number::add(imaginary_number a, imaginary_number
b)
how could this be done ?
|
thread by: Steve Edwards |
last post Feb 22 '06 by: Neil Cerutti
Hi,
I'm using a map with the key of type string, and value of type int.
typedef map<string, int, less<string> >concordance;
I'm finding words within some text and keeping a count of their
frequency.
|
thread by: srilalpr |
last post Feb 22 '06 by: Rolf Magnus
Hi,
I have a dll and one of its exported function is suppossed to return a
pointer to an object.
How can i check whether the exported function is of the same prototype
i want.
Please comment
|
thread by: Michael |
last post Feb 22 '06 by: Sukumar Raghavan
Hi,
I have defined this class to hold configuration for each field of a
message:
class field {
public:
int fieldno;
std::string name;
rtypes type;
|
thread by: jortizclaver |
last post Feb 22 '06 by: jortizclaver
Hi,
I have a very simple library that wraps a Timer class and a test
program linked to it.
First of all, I compile the library and the main without the KPIC flag.
Then, I execute the program and, while it's running, I add some dummy
sentence to the library and recompile it. Nothing happens to the binary
running. It keep unaware of...
|
thread by: Sush |
last post Feb 22 '06 by: JetSnaiL
Can anybody explain me what is control and data coupling with respect
to C code?
Also, how to do control and data coupling analysis?
|
thread by: szabi |
last post Feb 22 '06 by: Gavin Deane
Hi!
I have seen in a couple of libraries that object are never passed
through dll boundary, instead the results are returned through an
output parameter reference like:
void f(std::string &s)
{
s = "foo";
}
|
thread by: uday.das |
last post Feb 22 '06 by: uday.das
hi ,
I am not sure but I think it might be to avoid heap fragmentation due
to several malloc calls. Are there any strong reason ? What are the
other things that should take care when we implement a memory manager ,
like i) garabage collector kind of thing , ii) Safe Free of pointer in
wrapper of Free functions etc .
Thanks
Uday
|
| |
thread by: Romulo Carneiro |
last post Feb 22 '06 by: Richard G. Riley
Hi all,
I want to calculate a time of any routine in micro second.I know there
is a function utime.h in the programming linux.But I'm using a OS
Windows. If somebody know the soluction, let me know, please. Thanks!!
|
thread by: Trep |
last post Feb 22 '06 by: seesenk
Hi there!
I've been having a lot of difficult trying to figure out a way to convert
a terminated char array to a system::string for use in Visual C++ .NET
2003.
This is necessary because I have some legcay C code that needs to process
a string taken from a textbox, then I need to re-display the string as the
textbox->Text. I easily found...
|