49,757 Topics

Member Avatar for
Member Avatar for efe.ozyer

Hi guys, i want to create mfc application in custom DLL, another C++ application init dll dialog will be shown is it possible?

Member Avatar for Ancient Dragon
0
111
Member Avatar for sciwizeh

Hello, I have some java code I want to port to C++, and first class in the Heirarchy has me stumped. I'm trying to port a simple parsing framework as an exercise to figure out how it works internally, and almost everything in the framework requires, uses, or is `PubliclyClonable` …

Member Avatar for sciwizeh
0
430
Member Avatar for britto

# Simulating mouse click # #include <windows.h> using namespace std; // Forward declaration of the LeftClick function void LeftClick ( ); // Forward declaration of the MouseMove function void MouseMove ( int x, int y ); int main() { MouseMove(100, 100); LeftClick(); return 0; } // LeftClick function void LeftClick …

Member Avatar for triumphost
0
3K
Member Avatar for robinotje

Hello everyone, I'm new to C ++, and I want to know how to delete a whole folder. I've tried to do this, but it doesn't work. Can anyone help me? [CODE]#include <iostream> #include <stdio.h> using namespace std; int main() { remove ("c:\\users\\asus\\new"); return 0; }[/CODE] I'm running Vista, and …

Member Avatar for Ancient Dragon
0
15K
Member Avatar for raphael1

I followed a tutorial online on how to create a obj file parser, so far my parser reads a obj file and stores all the vertices into a struct named coordinate. Am not quite sure, how to use the coordinates in my struct in my main graphic pipeline My parser: …

Member Avatar for happyHacker
0
452
Member Avatar for happyHacker

I'm in the middle of reading "Windows Internals 6th edition", and after mentioning 32 bit threads running on 64 bit Windows have 3 stacks, one user-mode 32-bit, a 64-bit user-mode, and a kernel-mode stack (along with a 32 bit CONTEXT and a 64 bit CONTEXT "block")--when it proceeds to explain …

Member Avatar for happyHacker
0
457
Member Avatar for raphael1

I got win32 application, that runs a infinite for loop, which increment a value inside the loop. the problem am having is that my application become unresponsive and uses alot of CPU when compiled. case IDM_ROTATION: for(int i = 0; i < 4; i++) { i = 0; rotation += …

Member Avatar for tinstaafl
0
237
Member Avatar for supanovabay.kebede

Can mobile phones run c++ compilers such as borland and turbo? If yes pls do tell where i can download them thanks

Member Avatar for PrimePackster
0
141
Member Avatar for marco.lanza.507

Hi Everyone, I have been trying to post a code by I am not able to do it; I might the wrong but I am following all the rules; I don't know what else to do; please help. I will try to copy as follows (it might works) :) #include …

Member Avatar for marco.lanza.507
0
342
Member Avatar for tensity

My objective is to read in a line from a text file, then search that line for a particular set of characters/numbers, and finally, if the line contains the particulars, write the line to another file. I am fine with all of the coding, except the part of searching the …

Member Avatar for Ancient Dragon
0
102
Member Avatar for vikuseth

#include <iostream> class Hello { public: void Test() { std::cout << "Testing" << std::endl; } }; class Hi { public: Hi() :hello(new Hello()) {} ~Hi() { delete hello; } void Testing() const { hello->Test(); } private: Hello * hello; }; int main(int argc, char ** argv) { Hi hi; ; …

Member Avatar for vikuseth
0
284
Member Avatar for markwiering

**Hello everybody!** My program which is able to calculate your age, has been **updated!** See http://www.daniweb.com/software-development/cpp/threads/432997/age-calculator for the old version. The programs asks your **birthdate** and the **current date**. With that information, the program is able to calculate your age. It calculates the years, months and days. This program is …

Member Avatar for innocentmeshi
0
474
Member Avatar for silvercats
Member Avatar for maria ishaq

i want a program on c++ language using dev project name is phone directory .............plz if any one have this program send me i need it urgent

Member Avatar for deceptikon
0
33
Member Avatar for nathan_jun2

hello guyz!need help.. I have a txt file written like this 1,ben, 200.00 2,mike,300.00 I want to create a program that can search in the text file. I just only enter the ID number or the first number in the text file then the program will search that No. The …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for plang007

Has anyone found any compilers to work with windows 8 besides Microsoft studio? I have tried downloading Dev C++ and code::blocks but keep getting build errors? I have used both of those compilers on window 7 for multiple programming purposes.

Member Avatar for caperjack
0
151
Member Avatar for marnun

> Write a recursive, bool-valued function, containsVowel, that accepts a string and returns true if the string contains a vowel. > A string contains a vowel if: > The first character of the string is a vowel, or > The rest of the string (beyond the first character) contains a …

Member Avatar for marnun
0
514
Member Avatar for sripad44
Member Avatar for silvercats

*Can't access private member declared in class 'Sales_item'* Visual studio 2010 my compiler. here is the "Sales_item.h" header file. http://tny.cz/b7f276dd here is the code that I ge the error #include <iostream> #include "Sales_item.h" using namespace std; int main() { Sales_item item; Sales_item item2; cout<<"Enter item names"<<endl; cin>>item>>item2; if (item.isbn()==item.isbn ()) …

Member Avatar for Gonbe
0
136
Member Avatar for VISPFORALL

CAN ANYBODY PLEASE TELL HOW TO LEARN C++ Coding. . . WHENEVA EXAM'S COME I WAS CONFUSED HOW TO START LEANING. . .AND ALSO I WANT TO KNOW . . IS THAT THEROY IMPORTANT. . . BEACAUSE C++ IS A LANGAUAGE OF CODING. . . .PLEASE HELP ME TO MAKE …

Member Avatar for tinstaafl
-1
106
Member Avatar for vikuseth

Sample_Program-1 #include<iostream> using namespace std ; int main(){ const int i = 9; int *j = const_cast<int*>(&i); //Ok int *j = const_cast<int*>(i); //Error } Sample_Program-2 #include<iostream> using namespace std ; int main(){ const int i = 9; int j = const_cast<int&>(i);//Ok int j = const_cast<int>(i);//Error } I was just learning …

Member Avatar for vikuseth
0
116
Member Avatar for deepecstasy

Here is my splay function: template <class WA> void SplayTree<WA>::Do_Splay(SplayNODE<WA> *temp) //temp is the node which is to be splayed { if (temp==root) //if temp is root then { return; } //Do Nothing else if (root->left==temp || root->right==temp) //else if temp is a child of root { if (root->left==temp) //if …

0
82
Member Avatar for new_developer

Hi everyone, I have a simple problem related to string, but I did not notice before that we can't give space in string input. For exmaple in the following program, take name input from user. If user enter M John, it will skip the enter email input(and the program will …

Member Avatar for new_developer
0
176
Member Avatar for crazyboy

Invalid sequence in stack permutation ???? inpurt sequence ... 1 2 3 4 5 1) 4 3 5 2 1 2) 2 3 5 4 1 3) 5 4 3 2 1 4) 3 4 1 5 2 Answer is .... 4) ..... but i dont know how ? can …

Member Avatar for bamasohn
0
563
Member Avatar for peymankop

HI! i'v got a file like this: Lesson Name:Math Lesson File Name:1892.txt Student ID | Number ---------------------- 1892-----------20 i want to delete "20",only "20"! what i have to do? would you explain seekp,seekg,tellp,tellg... i looked everywhere for the but find nothing! please help... thanks so much

Member Avatar for peymankop
0
118
Member Avatar for Prysm[VA]

So in my classes I've taken I was told by the teacher "case statements and if-else statements are the same things essentionally" so why learn both? and so I was not taught about cases. Besides the fact I should learn it anyway incase I need it for someone elses code, …

Member Avatar for mike_2000_17
0
323
Member Avatar for muneeb ahmed

2. Write a program in C to input values into a table sort these values in ascending order and print them on the screen in tabular form...

Member Avatar for PrimePackster
-1
153
Member Avatar for triumphost

I'm diving into various Image reading and writing methods and writing my own. I decided to tackle TGA/Targa. I got reading working flawlessly. It reads both compressed and decompressed .TGA files. I got writing decompressed .TGA files working. However, I cannot figure out how to write Compressed .TGA files. I …

Member Avatar for triumphost
0
1K
Member Avatar for anuran

i'm trying to create a splitmenu but haven't found any tutorial, i would like to know after creating a splitmenu button with createwindow function, how to populate the menu and what will be the change in switch case of callback function?

Member Avatar for Ancient Dragon
0
336
Member Avatar for vikuseth

double & val = 66.6; //illegal const double & val = 66.6; //legal I was just doing some demo programs and came through the above concept but not able to identify what exactly the need of the above concept . what magic exactly const is doing in the second case …

Member Avatar for Gonbe
0
225

The End.