49,762 Topics

Member Avatar for
Member Avatar for eranga262154

Hi all, This question partially related to one of my old question. Reading the time zone information. Now I'm try to do it in this way. User enter the time offset. Using that value search the registry and find the time zone name. Where I'm stuck is how to search …

Member Avatar for eranga262154
0
172
Member Avatar for tootypegs

My query is as follows. I have a file that is 16384 bytes in size. However i would like to break this down into 512 chunks of 32 bytes each. I am familaiar with straight forward loops but is there a way to initialise a loop to run for the …

Member Avatar for Ancient Dragon
0
91
Member Avatar for sadaka

Hello everyone. I just started incorporating directx into my programming and I am still unfamiliar with this territory. I installed directx version 9 into my computer after I had removed all previous versions. From my project settings I linked all the necessary file such as: d3d9.lib, d3dx9.lib and winmm.lib. From …

Member Avatar for sadaka
0
96
Member Avatar for Max_Payne

[B][COLOR="red"]Question: [/COLOR][/B] Can i initialize char arrays using preamble initialization ? [B][COLOR="red"]Code:[/COLOR][/B] [code=c++] #prag... #pragma once class Pizza { public: Pizza (const char top[] = "cheese", const int size = 12, const double pr = 8.99) : strcpy_s (_topping ,top), _diameter (size), _price (pr) {} ~Pizza () {} void setValues …

Member Avatar for Narue
0
272
Member Avatar for todd.sifleet

My goal is to call a very simple C++ program from python, see below. The program generates a couple of random numbers and then moves the mouse and clicks. I would like to be able to call it from python with a few inputs(the python side I understand), but i …

Member Avatar for Ancient Dragon
0
206
Member Avatar for jacques95
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
538
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
106
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
149
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
236
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
133
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
167
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
212
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
59
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
754
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
131
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
156
Member Avatar for wijitha

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

Member Avatar for Jishnu
0
118
Member Avatar for jimmy.rocks1
Member Avatar for jimmy.rocks1
0
82
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
109
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
79
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
242
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
180
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
70
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

The End.