51,593 Topics

Member Avatar for
Member Avatar for FTProtocol

Im trying to send text to the place where you type messages in an msn conversation but i cant seem to do it. [code] { char buffer[MAX_PATH]; char *message = "hello"; sprintf(buffer, "%s", message); GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); //GetWindowText(hwMsg, szMsg, 256); //strcpy(&szMsg[strlen(szMsg)], ""); HWND fcContact = FindWindow(NULL, …

Member Avatar for TheBeast32
0
150
Member Avatar for Brent.tc

Hi, I need to know how (if it is possible) to determine the sizeof a function... [code=c++] #include <iostream> using namespace std; int theFunction(); int theFunction() { int x = 0; return x; } int main() { cout << sizeof theFunction; cin.get(); return 0; } [/code] The above does not …

Member Avatar for Duoas
0
96
Member Avatar for wcmport

I have written code that is supposed to be an 11 X 11 grid. A mouse is placed on the center spot and until such time that it touches each and every square, the program will continue to run. I also need to count how many times the mouse touches …

Member Avatar for wcmport
0
110
Member Avatar for QuantNeeds

Well here is my biggest jam of the day: 1) I am not sure if I am using the test method successfully in this program. I need to test the recursion to make sure it’s working accurately. I am not sure how to test this before it prints because I …

Member Avatar for QuantNeeds
0
2K
Member Avatar for Q8iEnG

Hi developers :) Actually, I'd like to introduce myself first, I'm Mohd. *Computer Engineer* still student :/ Actually, I really like this community, and I think I'll be active in the C++ section as I like it xDD back to my question :) Please can anyone help me doing this …

Member Avatar for Q8iEnG
0
118
Member Avatar for n00b3

DLL Global Object Constructor String Error Hello, This one has really got my head spinning. I cannot figure it out. I have a c++ console application that loads a dll. In that dll there is a global variable that is a user defined object. Upon the dll being loaded the …

Member Avatar for n00b3
0
214
Member Avatar for totaljj

I don't have graphics.h and library. I could not find on internet. My project consists of loading images and define a grid on the images to manipulate. Which way is the best to do? I want to keep up with Borland because I wrote some code in it.

Member Avatar for totaljj
0
85
Member Avatar for Greyspectre

Hello, I have been writing a piece of code to pull a set of numbers out of a text file and store them in assorted int and double variables and int and double arrays. Currently my program does this and successfully stores all the values, however it returns a large …

Member Avatar for Greyspectre
0
125
Member Avatar for cam875

Ok, now I am getting really lost with all the different things with client-server architecture. I know the basics and stuff but I was originally going to use ODBC to have my C++ program connect to my SQL server but than I started reading about sockets and winsock and I …

Member Avatar for cam875
0
176
Member Avatar for QuantNeeds

I am not sure what to do for this error because I do not want to create an object that I initialize. I just want to use it to call the functions. I have included my header file and main() in case that I am doing something wrong. It is …

Member Avatar for QuantNeeds
0
228
Member Avatar for allena
Member Avatar for n1337
0
505
Member Avatar for solaf_111

hello for all i read lines from file as : getline(infile,word); but i want put condition :don't read the spaces that in begin of lines this problem appear with me now when i end my project :'( please help me

Member Avatar for mitrmkar
0
174
Member Avatar for cam875

My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up. void AmasiVillage() { CharacterLocationID = 1; system("cls"); cout << "\n"; cout << "\n"; cout << "\n"; …

Member Avatar for ninjaneer
0
120
Member Avatar for QuantNeeds

Hello, I am working on two separate programs because I was trying one differently. I got my other program’s issue solved but now I would like to complete this one. But I am little lost on the error because the data it is complaining about is part of the class. …

Member Avatar for QuantNeeds
0
2K
Member Avatar for mrboolf

Hi all. I'm trying to write a "simple" program for a word game (something somewhat similar to Scrabble) and I got stopped by the task I tought to be easy enough to start with. I have a text file (Italiano.list) wich is a collection of italian words listed alphabetically as …

Member Avatar for mrboolf
0
595
Member Avatar for abacian1983

Hello I want to make pairs between random number and non random numbers. so that random number will come twice to its corresponding value. I think it is better to see the output so it will give the idea. Like the first column have the numbers from 1 to 25 …

Member Avatar for Nick Evan
0
234
Member Avatar for QuantNeeds

Hello, I have 3 major problems: 1) I am not sure if I am doing my static test method correctly. 2) I am not sure if the wagering class is actually checking the bankBalance and the wager 3) I have the following error, which I am not sure how to …

Member Avatar for QuantNeeds
0
305
Member Avatar for CheesyBeefy

Hey everyone, I'm new to the forums here, and also new to C++ and hoping to get some help. In my code, I want a random number to be displayed but in between two numbers. (ex. with my code, it generates a huge random number in the thousands, I only …

Member Avatar for VernonDozier
0
138
Member Avatar for integer*09

Hi all, I have done a word search within a text file and managed to find it on a particular line, but i dont know what to do so as to get the word/number directly after the searched word. e.g content with the text file sdakodjskfjsdkfjasook sample1. : ihavemakeit sdofjsdfjasfjsdkf …

Member Avatar for integer*09
0
340
Member Avatar for singal.mayank

hello.. I m designing a STATISTICAL SUMMARIZER in C.. This software will create the summary of a text file submitted by the user.. The first step is to separate line in the text file.. I hav almost completed this step.. but there are some limitations.. Suppose if text file hav …

Member Avatar for singal.mayank
0
164
Member Avatar for CoolGamer48

Hey, I'm working on a chess game, and I'm creating two enumerations - for piece_color and piece_type. I'm wondering what the difference is (whether it's an actual difference in the way the program executes or a matter of good object-oriented practice) between having the enums be global or having them …

Member Avatar for Dave Sinkula
0
80
Member Avatar for FTProtocol

[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front

Member Avatar for FTProtocol
0
109
Member Avatar for n00b3

Hooked Procedure Early Return In/External Trigger Hello, I've hooked into an application succesfully using WH_CALLWNDPROCRET or WH_CALLWNDPROC both give the same issue detailed below. In the hooked callback function I trigger my code by waiting for a spceific window message. Once the hooked callback function receives this message, my code …

Member Avatar for n00b3
0
129
Member Avatar for cyrinius

Hey guys, new to the forums, and was hoping to get a bit of help on some C++. I am looking for a few professionals who know a lot on the code, and have a little patience. When you just started to learn how to code, what did you do …

Member Avatar for AceofSpades19
0
163
Member Avatar for lahom

hi i have an application made of several dialogs each has its own exit button my question: whan i press the exit button ... iwant to exit the whole application (not exit the present dialog and return to the Previous one ) how can i do that .....please help me …

Member Avatar for Ancient Dragon
0
766
Member Avatar for manzoor

I have two programs both do the same thing but both when run gave totally different results. I am sure there is a lesson to learn from this and that will teach you a fundamental difference between the ‘if’ and the ‘while’. Can anyone explain to me why both the …

Member Avatar for VernonDozier
0
91
Member Avatar for VernonDozier

I am using Windows XP SP II and Visual Studio 2008. I've created a little program that I'd like to run when the computer boots. Here is the code: [code=cplusplus] // dummy1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <fstream> #include <string> …

Member Avatar for VernonDozier
0
251
Member Avatar for ranseed

Hi, I have this assignment from my information structures class that is kicking my butt!!!!! I would really like some help with it. I have to use a graphical user interface which I already built to display a binary file. The binary file is shown based on a BST, a …

Member Avatar for Lerner
0
81
Member Avatar for 1q2w3e

Im new to C++ and i dont know where to start so im asking you to do this. Generate all possible 4-digit combinations of words(lowercase)+ numbers(0123456789) into .txt file.

Member Avatar for Lerner
0
96
Member Avatar for adarshcu

Can we initialize an array of objects to unique values without using constructors.... can anyone provide me a program to demonstrate this if it is possible?

Member Avatar for writem
0
119
Member Avatar for adarshcu

Can anyone provide me a program with comments regarding generating fib series using copy constructor??

Member Avatar for stephen84s
0
60
Member Avatar for FTProtocol

Just wondering what functions i would need ( possibly includes ) to print someones msn contacts to a window ( selectable ) and then print text to it and send it.

Member Avatar for writem
0
71
Member Avatar for Alex Edwards

I know this is a really sad question to ask, but please tell me... how and when should I ever use extern? I recall an example that Narue showed me but even if I read through the definition from MSDN.com as well as other sources, I still can't quite understand …

Member Avatar for Alex Edwards
0
5K
Member Avatar for vender hak

Please help me ! I read a book . I had new project . Following the instruction that : File->new->projects->C++ templates. The book require " Managed C++ application" templates. I use Visual Studio.NET 2003 professional . So I can't find that templates . But the book don't say use what …

Member Avatar for vender hak
0
92
Member Avatar for jen_

here it goes.. example prog. output: Input a number/s, (-) to stop: 5+6-7+8-9+1-2[B]-1[/B] -the user will input numbers, if he/she inputs a (-) number that will be the time that the program will stop. -the operations between the numbers should be + and - (alternate). how will i do the …

Member Avatar for pradhan.nc
0
90
Member Avatar for mike issa

i have a header file and one of the function prototypes is [CODE]extern "C" LONGBOOL _stdcall LT360LIB_CmdValue(LONGINT Handle, LONGINT CmdID, char * ParamValue);[/CODE] and there is an example of using this code [CODE]z=LT360LIB_CmdValue(0, lt_Goto_CCW, "5.5");[/CODE] when i try this code it compile and builds correctly but when i run the …

Member Avatar for mike issa
0
344
Member Avatar for garblund

I have Visual C++ 2008 Express Edition and I am just trying a sample program to see what happens when it is run. I just don't know what to do to compile it. All the examples I have seen so far don't help. Some show going to "Build" on top …

Member Avatar for mike issa
0
168
Member Avatar for manzoor

how do you find the minimum and maximum number from a given set of numbers without sorting them ? i have the code but the it isnt working properly [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { const int SZ = 7; double sales[SZ]; int x; double lowest = 0; …

Member Avatar for manzoor
0
99
Member Avatar for dmanw100

I was wondering if anyone could recommend a powerful library for communicating with USB jump drives? My attempts to locate a solution on Google have not provided much in terms of usefulness. I would simply like to read and write to the drive, perhaps even find the size of the …

Member Avatar for dmanw100
0
167
Member Avatar for deepaksworld

hi all, I am working on flight simulation using c++ and flight gear software. I have to create virtual rain fall in the scenery. I found some java scripts for rain falling. How i can embed it with c++? its very urgent requirement? pls help. Deepak

Member Avatar for ~s.o.s~
0
83
Member Avatar for MrPickle

I want to write a program to detect when my laptop's mouse is connected/disconnected but I don't know if there's any events called when a USB device is plugged in or maybe it's something else? I'd also like to know whether it's possible to tell what device the mouse input …

Member Avatar for camthalion95
0
94
Member Avatar for dougy83

HI, I've written a big program which uses multiple serial ports and udp & tcp sockets. Everything works functionally as expected, but the serial port writes block until the data has been sent (reading is fine as I check the number of bytes available before trying to read). I thought …

Member Avatar for dougy83
0
1K
Member Avatar for ladyscoleman

Hey guys. can anyone help me, i'm a newbie and i need to show the number of times each of the numbers 1 -9 appear in a 2 dimensional array. store counts are suppose to be 1 dimensional and i also have to enter the code to display the nine …

Member Avatar for tesuji
0
135
Member Avatar for Shaun32887

Just to introduce myself again, My name is Shaun and I'm a 21 year old engineering student with about... six weeks of c++ experience. I main concern isn't my ability to get the job done. I have enough Matlab experience and logical thinking to accomplish this task. My worry is …

Member Avatar for Shaun32887
0
212
Member Avatar for mike issa

hi all i was a able to create a .def file from lt360lib.dll using Borland C++ (impdef.exe) [CODE]LIBRARY LT360LIB.DLL EXPORTS LT360LIB_CloseLink @3 LT360LIB_Cmd @7 LT360LIB_CmdIndexValue @9 LT360LIB_CmdString @10 LT360LIB_CmdValue @8 LT360LIB_GetDllVerDate @1 LT360LIB_GetUsbFirmwareVerDate @6 LT360LIB_LinkedCnt @2 LT360LIB_OpenLinkCOM @5 LT360LIB_OpenLinkUSB @4 LT360LIB_ReadBinary @12 LT360LIB_WriteBinary @11 [/CODE] how can i convert this …

Member Avatar for mike issa
0
3K
Member Avatar for ThomYork

Hello All! I have a program in C# and I am trying to write it in C++. Somewhere in my app I have to run a command. In C++ I am trying to do it using system() To run the command I have to give the absolute path. For example: …

Member Avatar for ThomYork
0
164
Member Avatar for chavas

Hi All, I'm brand new to C++ and writing a program which asks for user input to open a text file then displays the text file using specific characters which parse the file. The files that I need to open are too large to display the entire contents and the …

Member Avatar for AceofSpades19
0
176
Member Avatar for Pikachumanson

For Visual Studio 2008. I am not sure if this is the right place for it, but maybe someone here can help me. I have my program set up for Open GL, I also want to put Open AL in there too. Now I scoured the net for tutorials and …

Member Avatar for Pikachumanson
0
76
Member Avatar for ederX

Ok, I posted earlier and your suggestions worked fine, I had to rework the program a bit but it compiles now. The only problem is that it segfaults right away now. This is the gdb backtrace: [code] (gdb) backtrace full #0 0x95082630 in std::istream::sentry::sentry () No symbol table info available. …

Member Avatar for ederX
0
136
Member Avatar for Aamit

[code] #include<stdio.h> #include<conio.h> #include<string> #include<stdlib.h> #include <iostream> #include <cstdlib> #include "convert.h" using namespace std; int check(string); int checkNo(string); int checkMinSec(string); string send(string); int getTime(int); string hr_str,final_time; int main() { int ch,result=2; int i=1,x,y,z,p,q,n; char tt[2],dd[5],ll[9],mm[5],nn[3]; char xa[3]; char choice; printf("\nEnter the Time in 24 hr Format"); printf("\nE.g. 10:05:03 It shoud …

Member Avatar for Nick Evan
0
178

The End.