473,544 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
9
2,357
thread by: me | last post Jul 19 '05 by: me
Hi, I trying to add a menu bar to my main widget. The reslut is, that the menus (like file menu) apear and work ok, but the menubar it self is not being refreshed at all. I looked at all the documantation I could find, and I cant find what I am doing wrong... When my main widget first apears, the area of the menu bar will be full with...
6
4,512
thread by: Chandrashekar | last post Jul 19 '05 by: Karl Heinz Buchegger
Hi all, I am using "vectors" and also Borland C++ compiler for fist time. I wrote the following code. /***********************************************************/ #include<stdio.h> #include<iostream.h> #include <vector> #include <algorithm>
1
22,307
thread by: Marc Schellens | last post Jul 19 '05 by: Marc Schellens
How can I delete a file in C++? thanks, marc
1
1,869
thread by: don | last post Jul 19 '05 by: Victor Bazarov
This is a great code developing editor which works with just about any programming language out there.... Its best feature is the way it lets you create shortcut phrases for any of your most often typed code syntax, which it then expands automatically.... it has fantastic search and replace routines and a fully customizable color display for...
1
2,038
thread by: Jeremy Cowles | last post Jul 19 '05 by: Victor Bazarov
Just curious (and I will probably regret this), but what kind of projects are you all working on? I am just starting to learn C++ and I was wondering what kind of systems the /average/ developer works on. Jeremy
3
3,337
thread by: Charles Keepax | last post Jul 19 '05 by: Josephine Schafer
Just a little quick question what is the effect of putting a const after a member function definition. Charles
0
1,682
thread by: Vikas | last post Jul 19 '05 by: Vikas
I am working on an application to be written in C++ which has to read a binary file and parse it to get the data out of it. The file format is Integrated Product Message (IPM) which contains message type, elements and sub elements in it. Now the elements in the file and their value depends on message type and one element's value may be...
4
4,002
thread by: Vasileios Zografos | last post Jul 19 '05 by: Thomas Matthews
Can someone please tell me what this assignment does? iType |= EB_YMIN_ZMAX;
2
3,585
thread by: Mark | last post Jul 19 '05 by: Victor Bazarov
I'm compiling an application with a Borland C++ compiler. We use the VERSIONINFO in the rc files to store product information. VS_VERSION_INFO VERSIONINFO FILEVERSION 6,500,09,105 PRODUCTVERSION 6,500,09,105 FILEOS VOS__WINDOWS32 FILEFLAGS 0 FILETYPE VFT_APP
1
3,899
thread by: claire.bell1 | last post Jul 19 '05 by: Psy
Hi, Is there a standard library or tool for C++ that lets you draw 2D graphics in a window? Does anyone know a good website that teaches how to do 2D graphics in C++? Thanks, Vipa
1
1,770
thread by: Shubhadeep | last post Jul 19 '05 by: Jakob Bieling
Dear Sir, Can anybody please tell me why cannot we have virtual destructors like virtual constructors in C++ ? Thanx, Regards, Shubhadeep
1
15,314
thread by: minjie | last post Jul 19 '05 by: Victor Bazarov
Hi, I'm writing an app that fetches a row of data from the database, and extract the value from each column (of that row of data), and insert each value into a linked list for later display on the GUI. Since the values are of different data types, I'm using stringstream (say, ss) to hold the data and converts each one into string when...
4
4,489
thread by: las | last post Jul 19 '05 by: John Harrison
Hello, Im trying to figure out the difference between int and char #include <iostream> #include <stdlib.h> int main() { int i = {1}; char c = {'1'};
5
5,094
thread by: Ulf Rimkus | last post Jul 19 '05 by: Ulf Rimkus
Hallo! Now I've tried out for quite a long time how to access the -operator from a base class. But I cannot find out how to do this. Well, it's an example from "Think in C++". So, I guess I need some help from any real C++ programmer. Greetings, Ulf // 14.9 Inherit a class StringVector from vector<void*> and redefine the
2
4,087
thread by: Laxman | last post Jul 19 '05 by: Laxman
==C.H <== #include <fstream.h> class C { public: C(int i); friend ofstream& operator<<(ofstream& os, const C&); }; ------------------------------------------------------------ ==B.H <==
2
9,499
thread by: Rahul Joshi | last post Jul 19 '05 by: Shane Beasley
Hi, Is it possible to define static member functions that are 'const', i.e. they just read but do not modify the static data members of a class? Declaring functions like: class SomeClass { static int read() const; };
0
4,164
thread by: Marc Schellens | last post Jul 19 '05 by: Marc Schellens
fstream.open( name, mode) fails fstream.fail() returns true. How can I find out what went wrong? (ie. file does not exist for reading, permissions...) thanks, marc
2
8,886
thread by: christos panagiotou | last post Jul 19 '05 by: Vasileios Zografos
hi all I am trying to open some .raw files that represent images (256x256, 8 bit per pixel, no header) in a c++ program I cannot copy paste the module here as it uses a method from the VTK (Visualization Toolkit) the module i ve got is already tested with the same dataset and it works if these files have been created under windows and...
2
3,418
thread by: Marc Schellens | last post Jul 19 '05 by: John Harrison
I have (or better had) a class wich contains a fstream (as a private member). I made a vector of this class. When I resize() the vector I got several error messages, about some stuff being private int that context. Is this gcc (3.2) specific or is there a 'official' reason for this? thanks, marc
2
2,918
thread by: Sandy | last post Jul 19 '05 by: vijay
what is the difference between SEND NOTIFY MESSAGE AND POST MESSAGE AND SEND MESSAGE. If which circumstances these functions are used. Regards Sanjeev
1
1,877
thread by: gukn9700 | last post Jul 19 '05 by: John Harrison
the following code cannot pass the compiler: #include <fstream> #include <iostream> using namespace std; int main() { fstream outfile("i:\\test.txt", ios_base::in | ios_base::out);
1
1,529
thread by: Joerg Toellner | last post Jul 19 '05 by: Jakob Bieling
Hi Group, Dont know how to solve my problem with my little brain by myself. Maybe my way is not the best at all and maybe not C++ style...but i don't no to do better at the moment. So excuse my maybe horrible coding-style. I have the following files: a.cpp b.cpp
4
60,703
thread by: Joerg Toellner | last post Jul 19 '05 by: Joerg Toellner
Hi Group, sorry, its again me with a dumb question. If i have a function with the optional parameter "mode" like this: void myfunc(char *blah, int mode = NULL) { if(mode == NULL) do_something();
0
570
thread by: Makis Papapanagiotou | last post Jul 19 '05 by: Makis Papapanagiotou
Hello, Does anybody knows any good book as a reference, concerning advanced exception handling methods for C++ and so on? I am not refering simply to the "try" & "catch" statements. I am trying to find a detailed description concerning set_terminate(), set_unexpected(), set_new_handler(), etc.. functionality
2
5,027
thread by: Abhi | last post Jul 19 '05 by: Dhruv Matani
Hi, I am looking for some memory pool implementation of new/delete. Is there any freeware/shareware/software out there? Any pointers would be great help. Thanks ......Abhi

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.