49,761 Topics

Member Avatar for
Member Avatar for sixstorm1

Hi all, I am trying to use some APIs found in dwmapi.dll (like DwmExtendFrameIntoClientArea), but I have some problems. If I include dwmapi.lib in the dll include list, the the app works fine on Vista, but doesn't want to run on XP since dwmapi.dll is obviously missing. I tried the …

0
117
Member Avatar for PatMcC

I would like to learn more about how desktop applications are put together. There are many books out there that give specific code examples for small problems such as connecting to a DB or creating a dialog box etc and there are design pattern books that layout abstract concepts but …

0
63
Member Avatar for necrolin

What's the difference between (aside from syntax I mean): a) typedef struct MyStruct{....}; b) typedef struct{...}MyStruct; I saw this example in "Thinking in C++", but there's no real explanation as to if they're exactly the same or if there's some real difference in them.

Member Avatar for necrolin
0
93
Member Avatar for cbreeze

hey guys, I have the assignment to build a program to decode a cryptogram puzzle using provided word tables. for each table the program should print the decoded text generated by that table and the number of actual english words in the decoded text. the encoded text is in the …

Member Avatar for namehere05
0
209
Member Avatar for pymatio

I have this code: [icode] #include <unistd.h> #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; void add(char todo[], string priority, string home){ FILE *file; file = fopen(home.c_str(), "a"); fprintf(file, "%-50s| %-6s\n", todo, priority.c_str()); fclose(file); } void list(string home){ string line; fstream file(home.c_str(),ios::in); int …

Member Avatar for Ancient Dragon
0
232
Member Avatar for JETFUSION

The IT firm ITEnterprizes has a unique way of deciding whether an applicant for a post should be invited for an interview or not. The decision depends on the candidate’s qualifications, age and years of experience and is made as follows: a certain weight is assigned to each of these …

Member Avatar for Salem
0
140
Member Avatar for myle

The meaning of parallel is not that of parallel processing. I simply mean that if algorithms A and B are represented by the two sequence of operations (a_1, a_2, ...) and (b_1, b_2, ...), then the executed sequence of operations is (a_1, b_1, a_2, b_2, ...). It is not compulsory …

Member Avatar for myle
0
177
Member Avatar for Nathan Campos

Hello, At this times i need to decide something that will chage my life forever, it is: Continue with C++ and the possibility to compile my programs at my HP Jornada 720(Handheld PC) and in my [b]PC only and NOT for my j720[/b], or learn C and start my mobile …

Member Avatar for Frederick2
0
325
Member Avatar for JETFUSION

Hi Any reason why my votes aren't adding up once the program has run? [CODE]#include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = 0; votesForR = 0; votesForO = 0; // …

Member Avatar for Sky Diploma
0
76
Member Avatar for atch

Hi, Just wonder if there is any way to get this information while compiling your source code, what I mean is if I can do something like this: [code=c++] //pseudo code if (IDE == BORLAND) cerr << "You are using: " << _COMPILER << endl; if (IDE == VISUAL_STUDIO) cerr …

Member Avatar for Tom Gunn
0
67
Member Avatar for Phloxicon

This would be trivial but it comes with a serious catch - I can't edit the Unrelated or Friend class. I can't seem to access a private data member despite the friend relationship between the classes. Code: [url]http://pastie.org/613042[/url] [code=c] class UnrelatedClass { ... private: friend class FriendClass; float m_fNumber; } …

Member Avatar for Tom Gunn
0
279
Member Avatar for avico81

Hello all, I want to start using openCV, but I've noticed that some elements in GUI are missing (TextBox, Label etc.). I was wondering where to look for those missing elements (assuming openCV does not supply them), and whether I can integrate them to openCV, since it'll make my life …

0
41
Member Avatar for neutralfox

Hello everyone, Hope you are fine. Actually, I am going to implement a network program for my final year project and i am a bit confuse on the methodology to use. I have already reviewed extreme programming, v-model and agile but still can't find the right one. I have approximately …

Member Avatar for kvprajapati
0
74
Member Avatar for lahiruchandima

Can someone tell me a way to get the PID (Process ID) of a process from its name? thanks..

Member Avatar for lahiruchandima
0
390
Member Avatar for BlackPhoenix

Hi everyone, I have an [U]extremely complex topic[/U] to discuss/ask about. I'm hoping what I have already done is the WRONG way to do it, so that I can implement a more simplistic approach to this issue. To start, here is some background information on my project. I want to …

Member Avatar for BlackPhoenix
0
102
Member Avatar for Frederick2

I have a general question about threads prompted by something strange I'm seeing in an application I developed involving ODBC access to Microsoft Access and SQL Server databases. Let me present the context of the problem first. I have been developing some tutorials on ODBC database access in two different …

Member Avatar for Frederick2
1
575
Member Avatar for azjherben

Well, I believe the answer/problem is in these few lines: [code] SDL_Surface* thing; SDL_LockSurface(thing); put_pixel32(thing,2,2,SDLred); SDL_UnlockSurface(thing); apply_surface(0,0,thing,screen); SDL_Flip(screen); [/code] The locking/unlocking dosn't seem to do much, if I delete the lines the same thing happens, and if I check if it must lock before, the program still returns 3, etc.

Member Avatar for daviddoria
0
111
Member Avatar for niyasc

Hai, I'm a higher secondary student in kerala. As our project I have to create a simple car racing program in c++. I implemented the following code fragment. May I get some instructions to improve it? Especially the method of accessing input to controll movement of object? [code=c++]#include<iostream.h> #include<conio.h> #include<dos.h> …

Member Avatar for mrnutty
0
189
Member Avatar for MattyRobot

how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use …

Member Avatar for rughead
0
153
Member Avatar for iammfa

hi, in this code: [CODE]#include "stdafx.h" #include <iostream> int main() { using namespace std; cout << "Enter a value: "; double dX; cin >> dX; cout << "Enter a second value: "; double dY; cin >> dY; cout << "Enter one of the following: +, -, *, or /"; char …

Member Avatar for iammfa
-1
131
Member Avatar for sophie_kiu

Question1 : how to use c++ to read/write excel file without changing it into CSV file? Question2 : How to use CSV parser in c++? Are there any examples?

Member Avatar for Protuberance
0
329
Member Avatar for lancevo3

I am writing a method that does insertion into a doubly linked list and I was looking for some assistance with my code to see if I was heading in the write direction and what needs to be fixed to make this work. [B]Instructions[/B] template <class T> Iterator<T> List<T>::insert(Iterator<T> pos, …

Member Avatar for Protuberance
0
1K
Member Avatar for lancevo3

For some reason I am having trouble with just returning the address of the data field being pointed to by the node pointer. [code=cplusplus] template <class T> T* Iterator<T>::operator->() const { return *nodePtr->data; } [/code]

Member Avatar for Tom Gunn
0
97
Member Avatar for anupa

Hi, as per the requirement i was asked to create a code that fetches each line under a particular section of a text file and store it in a variable. [code]#include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { ifstream ifs("catter.txt"); string line; char name[100]; char cat[100]="mkdir"; …

Member Avatar for anupa
0
1K
Member Avatar for JETFUSION

Hi there all, Could anybody please help me, as to why my program is not adding the right quantity's? [CODE]// Question 2a #include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = …

Member Avatar for tux4life
0
124
Member Avatar for Thomasedicel

can someone give me some xsample of inventory program in turbo c++ using stdio conio switch/ case with addition and multiplication like in the grocery cashier computer XD:D

Member Avatar for mrnutty
-1
126
Member Avatar for rmeltg

I've always been a little confused with this stuff... I found snippet of code and understand what all of it is doing until this line... Seems overly obfuscated... [code=c] int tmp = 0xff000000 | ((int)(val) << 16 | (int)(val ) << 8 | (int)(val)); [/code]

Member Avatar for rmeltg
0
105
Member Avatar for enigma_arien
Member Avatar for Tom Gunn

This is an example of how to turn numbers into words. 1473 would get translated to "one thousand four hundred seventy three", for example. The class has a simple interface and can handle any value representable by unsigned int. The implementation recursively processes groups of 3 digits using table lookups …

Member Avatar for William Hemsworth
3
508
Member Avatar for floydus

I get a variable that is a int and a pointer (address) to a string (Byte*) in c++ I've been struggling like for 3 days in order to turn this into a Byte array. I have no clue how long would be that string so I know I'll have to …

Member Avatar for sknake
0
128

The End.