49,756 Topics

Member Avatar for
Member Avatar for toolmanx

Running AMD XP SP1 - Bitmap can be any bitmap with a bitcount of 24. Compiling with Borland using .cpp extentions. I'm still having trouble getting CreateDIBitmap to work for me. The hex bits from my bitmap are saved in memory. I can see them. I've read that Windows just …

Member Avatar for toolmanx
0
525
Member Avatar for everlast

i'm quite new to programming. i'm a mechanical engineering grad student and i've been learning c++ for a year now on my own. so far i can program only win32 console programs i'll soon finish literature on OOP c++ like Robert Lafores interactive c++, C++ How To Program (Deitel) and …

Member Avatar for everlast
0
105
Member Avatar for bis student
Member Avatar for xeption12

Can anyone please help me with an answer? I have Intel Core 2 Quad Q6600 2.4 Ghz processor and i've downloaded PC Wizard 2008 to see information about computer (especially for CPU usage and temperatures). The problem is (it isnt actually a problem ... ) why when using Borland C++ …

Member Avatar for xeption12
0
147
Member Avatar for phalaris_trip

I've been reading a lot of info, but templates are really too new for me at the moment, and I can't find any examples similar to what I'm trying to do. Basically I have a template container defined like this: template <class CMissile_Type> class CMissileManager { std::vector<CMissile_Type> missiles; }; The …

Member Avatar for twomers
0
235
Member Avatar for obscured47

Hi, I was wondering if its possible to get the integer OR float value of a string. If I know it's an integer I can do int x = atoi(str) and atof if its a float but what do I do if I don't know what it is (in other …

Member Avatar for Duoas
0
131
Member Avatar for crunchycoder

im adding lines to a richedit control and after a while it starts to overwrite text i create the window like this in the main window proc WM_CREATE [code] HINSTANCE RichEditLibHinstance = LoadLibrary("Riched32.dll"); HWND RichEdithWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "RichEdit", "", WS_CHILDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_HSCROLL | WS_VSCROLL …

Member Avatar for Duoas
0
162
Member Avatar for limac

hi, i wanted to find the factorial with the same problem that I had the previous time: here's the code that I wrote, so how can i find the factorial and display it to the user? [code=cplusplus] #include <iostream> #include <cmath> #include <string> using namespace std; int main(void) { string …

Member Avatar for rajatC
0
208
Member Avatar for AceKnocks

I am working on a framework design problem in which I have to design a C++ based framework capable of solving three puzzles for now but actually it should work with a general puzzle of any kind and I need your able help in this activity. [B][I]Objective -[/I][/B] In this …

0
57
Member Avatar for raniajay

program to print all special numbers less than a given number (a number is special if it is equal to the sum of factorials of digit)

Member Avatar for rajatC
0
96
Member Avatar for jcstier

I'm working with winmm.lib (in C++) and am having a hard time with waveInOpen(). When I call waveInOpen() in my dll, it blows up. I think it's becasue its not getting a device context. I take the same code and put it in a regular exe... it works fine with …

Member Avatar for Salem
0
747
Member Avatar for eranga262154

Hi all, I've create a window as follows, [CODE=cplusplus] void CRtf::Initialize(void) { HWND m_hwnd_RTFBox = CreateWindowEx( WS_EX_APPWINDOW, RICHEDIT_CLASS, "RichTextWindow", WS_BORDER|ES_MULTILINE, 0, 0, 100, 100, ::GetConsoleWindow(), NULL, 0, NULL); } [/CODE] After doing all the process, I've destroyed the window as well. My question is this. I use the above handler …

Member Avatar for eranga262154
0
101
Member Avatar for benshums

Aight, so I know I just posted a few hours ago but I promise that after this bug I'll not posted for a couple of days... or weeks. Aight, so I have two classes -> Connection, and SocketServer (which is inside of "socket.h" and "socket.cpp"). Inside of Connection.cpp, the code …

Member Avatar for benshums
0
130
Member Avatar for raniajay

i have tried to do the pascals law in the following method .....bt i m not getting a triangle shape.could someone help me out in this tight Spot?? here is the code what i have typed... [code=c] #include<iostream.h> #include<conio.h> #include<iomanip.h> long TRIANGLE(int x,int y); int main() { clrscr(); int lines=0,n; …

Member Avatar for Jishnu
0
155
Member Avatar for wijitha

hi all.... In c++ how to convert integer value to hexadecimal (in ANSI-C ). wijitha...

Member Avatar for Jishnu
0
115
Member Avatar for jimmy.rocks1
Member Avatar for jimmy.rocks1
0
81
Member Avatar for mcham

Basically I'm having difficulty figuring out what to return to a function. Here is my problem: I have a class called Zoo that contains Animal objects in an array of pointers called cages e.g.. [CODE]class Animal{ double weight; double height; double speed; double power; Animal(){} }; class Zoo{ Animal ** …

Member Avatar for Lerner
0
107
Member Avatar for guy40az

I am a new to linux and the gcc system I was just wondering if someone could answer a couple of questions about the including hearder files like the math.h file. I was making a simple program and using some math trig functions. I keep getting the error cosf undefined …

Member Avatar for Salem
0
173
Member Avatar for VanithaGopi

Hi , i am very new to C++ , OOP concept. I am making a bookstore using classes and have made it till books details ( tat is for ex. 10 books aval and when the user searches fo particular book he gets the detail with price and aval copies) …

Member Avatar for Lerner
0
78
Member Avatar for Karkaroff

Please help me in self documenting the program below. All you have to do is, take a quick glance at the following code to see if you can understand what each part is doing. If you have any difficulty in understanding(at a quick glance that is!), please tell me, so …

Member Avatar for Karkaroff
0
240
Member Avatar for limac

hi, i am basically a newbie to C++ and tried to make this simple math program but came acroos this error and don't know how to resolve it: [code=c++] #include <iostream> #include <cmath> #include <string> using namespace std; int main(void) { string input = Add; int a, b; cout << …

Member Avatar for Rippie
0
212
Member Avatar for zoner7

I started using the tutorial "Teach Yourself C++ in 21 days" yesterday, and I absolutely love it's clarity. However, there is one thing that perturbs me about it. All of the code written in the code is numbered. This is a great feature until I want to try running the …

Member Avatar for Jishnu
0
176
Member Avatar for az1983us

hello all i can write string in a text file but i don't know how to choos a path like this c:\test\tets.txt and how can show it on screen i tried to use fscanf and printf but i couldn't thanks for yr helps

Member Avatar for Ancient Dragon
0
69
Member Avatar for bis student

hello ,Im a new member and Im not very good in english , so please excuse me , I have question : write a C++ program that declares an array alpha of 50 component of type double . Initialize the array so that the first 25 components are equal to …

Member Avatar for invisal
0
4K
Member Avatar for sara_84

[code=c++] #include <iostream> #include <string> #include <algorithm> #include <vector> #include <set> #include <map> using namespace std; class transition // an entry in 'alpha' transition_table { public: transition(string from_state, char input_symbol, string to_state) {from=from_state; input=input_symbol; to=to_state;} static bool smaller(transition a, transition b) { if(a.from<b.from) return true; else if(a.from>b.from) return false; else …

Member Avatar for hkdani
0
180
Member Avatar for tootypegs

Hi, basically i was wondering if there was anyway of directly accessing and writing to a harddrive? for example i have a specific sector on my harddrive which i would like to directly insert some code? does anyone know of any C++ functions or commands to do this? thanks

Member Avatar for Ancient Dragon
0
114
Member Avatar for maori

Hi Guys i'am trying to learn text file manipulation and i've got a problem with one particuler subject and unsure of how to acchive what i need the text file contains lines in this format Name0 1 2 3456 7 8 9 10 "discription" Name1 1 2 3458 7 8 …

Member Avatar for Ancient Dragon
0
142
Member Avatar for BalaKrish

Hi All, I have to handle text files of larger sizes ranges from 10GB and more which are exported from some application softwares. The text files contains the required information scattered throughout the file. I need to gather all those information in a particular format to do further analysis. Say …

Member Avatar for BalaKrish
0
107
Member Avatar for EnderW4785

Hello, I just recently started trying to write code that would automate a "reporting" function by writing to a microsoft word document. At this point, all I'm trying to do is open a new document, write some text, insert a picture, write some more text, save the file as a …

Member Avatar for lch
0
392
Member Avatar for zeroground

i want to enter x1,x2 and y1,y2 and it displays the slope of the line...but there are some errors ,can anyone figure it out ? [code]#include<stdio.h> #include<conio.h> /* 2 point form*/ float findslope(float , float,float , float); float m,n; void main() { float a1,b1,a2,b2,; double result cout << "\n Enter …

Member Avatar for toko
0
96

The End.