49,761 Topics

Member Avatar for
Member Avatar for cambalinho

i'm trying create a class for getting the child controls from it's parent, but without sucess :( class ChildControls { private: vector<HWND> childcontrols; UINT childcontrolsindex; HWND windowparent; public: ChildControls(const HWND parent) { windowparent=parent; //EnumChildWindows(parent, EnumChildProc, 0); } UINT childcontrolscount() { return childcontrolsindex; } HWND GetHWND(UINT index) { EnumChildWindows( windowparent, [this]( …

Member Avatar for cambalinho
0
1K
Member Avatar for yaldoo

Okay, I have another problem that I can't figure out and it has to do with the I/O file stuff. This is the problem: Write a function, CountElement, that receives two arguments: a 2-dimensional char array and the size of the array. This function counts the number of digits, small …

Member Avatar for David W
0
316
Member Avatar for nathan.pavlovsky

Hello programmers! After covering the basics of STL, I decided to complete the following assignment: `Write a function template palindrome that takes a vector parameter and returns true or false according to whether the vector does or does not read the same forward a backward.` So, for example, a vector …

Member Avatar for NathanOliver
0
1K
Member Avatar for Đăng

This is my code. It runs but not thing happen #include <windows.h> #include <iostream> #include <string> using namespace std; void CreateFolder(const LPCWSTR path) { if(!CreateDirectory(path ,NULL)) { return; } } void main() { LPCWSTR x; string s = "E:\\data\\"; x = (LPCWSTR)s.c_str(); CreateFolder(x); }

Member Avatar for Ancient Dragon
0
175
Member Avatar for vram

Hi, I would like to use gtkmm within codeblocks, but I don't know how to install it. I installed both packages, but probably Codeblock has to be said where to find the includes and the libs to link. Could someone tell me which files (or only directories?) has to be …

Member Avatar for vram
0
73
Member Avatar for Ben_7

write a c++ program to find the divisors of a positive integer number 'n'. the program should accept input of the positive integer number from the user

Member Avatar for rubberman
0
238
Member Avatar for cambalinho

RegisterHotKey is for we use the combined keys and the WM_HOTKEY message. i use these function for use the alt combination... but i need ask: can i re-regist the combination keys?

Member Avatar for cambalinho
0
146
Member Avatar for zhoudavid

Once I use an IDE to compile my C++ code, this IDE seems know everything of my code: I could find the most original definition of any element in my code, no matter how deep it is from usage to definition. the IDE seems know: 1.my code logic 2.my code …

Member Avatar for mike_2000_17
0
259
Member Avatar for ussra2

I have searched these forums and have seen multiple threads on the Weather Structure C++ program. I don't believe they have been resolved. I am tasked with the following: Write a program that uses a structure to store the following weather data for a particular month: Total Rainfall High Temperature …

Member Avatar for jwenting
0
9K
Member Avatar for kshahnazari

this might be a simple question so accept my appolegises , I am creating a 2 dimetional pointers to int and I want to release the memory at the end but I think I'm doing It all wrong and all of the memory isn't being relaesed. int **a; a = …

Member Avatar for rubberman
0
168
Member Avatar for Auroch

Hello everybody. I'm trying to write program with vectors and iterators. Coordinates X and Y are entered from keyboard (as structure) and placed in vector of points. It's necessary to display coordinates with maximal X and Y. This code was compiled but not display maximal X. What should I change? …

Member Avatar for Lucaci Andrew
0
274
Member Avatar for EarhawkPH

I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. …

Member Avatar for Lucaci Andrew
0
163
Member Avatar for yaldoo

Okay guys, I am having a problem with this code. I really need help with this one because I am stuck. The problem with this question is that the name, ss, id, and pass have to be ONE STRING. It's stupid because I wish I could make the strings split …

Member Avatar for NathanOliver
0
4K
Member Avatar for MatuQt

Hi, i have a program in qml with qtmultimedia 5.0. in the program i use media player and videooutput. when i refrenced media player 's source by a .mov file. it can't play the file. what's the problem? note: my .mov video files have size 5760 * 1080

Member Avatar for Auroch
0
85
Member Avatar for jeffcogswell

[ATTACH=RIGHT]17428[/ATTACH]Almost every programmer knows his name. He's a living legend in computers. His name is Bjarne Stroustrup, and he created the world's most popular programming language, C++. I had a chance to ask him a few questions. The first three of the questions I came up with, and the remainder …

Member Avatar for Auroch
15
2K
Member Avatar for Mark29

Create a C++ program that will allow the user to enter the number(x) to be used as maximum value of loop. //display the square, square root, sin , cos, log and log10 of the number 1 to x.ls)

Member Avatar for Auroch
-1
106
Member Avatar for yaldoo

Okay, I have another problem. It has nothing to do with the file I/O streams. But I want to make modifications with this code. It works but I would like to make changes though. PLEASE NOTHING TOO FANCY, I'm still a beginner. Thank you for the help! Write a function, …

Member Avatar for tinstaafl
0
1K
Member Avatar for kamilacbe

Hi, this might be kidish to people over here , am trying to migrate code from c++ to C# where am new to CPP , so guys please help me out what this below code exactly mean . int myFunc (int a, int b)=0; Thanks for your time .

Member Avatar for sepp2k
0
131
Member Avatar for nathan.pavlovsky

Hello programmers! I am having a function that has the user enter a name for an object, check if its valid, and return it if it is. I am getting the input via getline, but it seems that you have to press enter twice to make the input work. Here's …

Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for jlieu.ww

Design a C++ program by considering the following conditions; 1. User must keyed-in “start” to start the program and “stop” to end the program. . 2. If the user keyed-in “choice1”, print out PATTERN A. 3. If the user keyed-in “choice2”, print out PATTERN B. Use if else statement, while …

Member Avatar for NathanOliver
0
217
Member Avatar for newbiewwcode

Hi All, Private data in a class can only be accessed by getter functions. If I have a class as the private data in another class, in another class...Example: class Top { private: class Middle { private: class Bottom { private: int number; } } } If I want to …

Member Avatar for NathanOliver
0
133
Member Avatar for makan007

I want count the elements in a srand generated array. The array is char array. Can anyone advise me on my void countElements (char* a, int size) function as it don't work? TIA. [CODE] #include <iostream> #include <ctime> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 10; …

Member Avatar for TalhaMoazSarwar
0
866
Member Avatar for Masood_786

Hi All, I have demodulated two AM files (I/Q) succesfully but for one of the I/Q files which was Gnuradio (USRP) file i had to scale down I and Q components before demodulation by multiplying by 0.0001 (experimental value) to get the value that can be demodulated and heard on …

Member Avatar for rubberman
0
302
Member Avatar for masonketcham

This is my first time working with C++ and I have put together this program and came up with two errors and I am unsure what it is wanting me to do. The errors I got are: 1>c:\users\owner\documents\visual studio 2010\projects\week5\week5\passing_by_value.cpp(30): error C2064: term does not evaluate to a function taking …

Member Avatar for Ancient Dragon
0
210
Member Avatar for dkoohmarey

My client and server below can be run in seperate terminals an can see each others connections, but always send only 0 bytes. Cannot figure out why. Both scripts are g++ compilable so you can see what I mean. Run ./server in one terminal and ./client 127.0.0.1 test in the …

0
146
Member Avatar for yaldoo

Okay, so I was given this problem for my assignment, and I was wondering if I have completed the tasks the question asks. I would also like to know how I can improve this code as well. Please nothing too fancy as I have just learned arrays. Question: Write a …

Member Avatar for NathanOliver
0
2K
Member Avatar for berrychims

Design and develop a school timetable application for a school of your choice.The application should work with a database that has information on teachers,classes, subjects and departments in the school.The application should generate a teaching timetable in a well structured format. There should be a title line with year and …

Member Avatar for pritaeas
0
123
Member Avatar for newbiewwcode

Hi, I am trying to design a vector within a vector within a vector. For example, a school has 3 floors, each floor has 5 classrooms, each classroom has 20 students, each student has a last name and a first name. I know how to create a vector for floors …

Member Avatar for tinstaafl
0
689
Member Avatar for tanatos.daniel

I have this simple program in which I want to concatenate two char pointers using memcpy, but I get access violation writing location on the memcpy line. Why is this happening and what could be done to make it work? Thanks. char *first = new char[20], *second="world!"; printf("first: "); scanf("%s",&first); …

Member Avatar for Ancient Dragon
0
544
Member Avatar for redalert8
Member Avatar for DeanMSands3
0
522

The End.