51,593 Topics

Member Avatar for
Member Avatar for RohitSahni

Hi All, Please Help me out with this below mentioned error. [code] librohit.a: undefined reference to `MODEL_NAME' librohit.a: undefined reference to `FT_MODEL' librohit.a: undefined reference to `STOCK_MODEL' librohit.a: undefined reference to `FUTURE_MODEL' librohit.a: undefined reference to `COArgs::COArgs()' librohit.a: undefined reference to `std::strstreambuf::freeze(int)' librohit.a: undefined reference to `RWMutex::wLock()' librohit.a: undefined reference …

Member Avatar for Ancient Dragon
0
140
Member Avatar for gopi kannan

i wrote a program in c ++...when i compiled it..the compiler showed limit=215f #00a5....and the program did not get compiled and the ide got closed...i compiled using turbo c compiler...tell me whatz dis??and how to compile my program??the program is around 500 lines...help me...

Member Avatar for WaltP
0
217
Member Avatar for Fromethius

If I launch my DirectX program, full-screen initializes. If I alt tab out of it, it alt-tabs as normal. However, if I then maximize it so it has the focus of my computer again and then alt-tab for the second time, the window doesn't minimize. The taskbar shows up but …

Member Avatar for FireNet
0
159
Member Avatar for Fromethius

I've been working on this for a couple days now. I'm really looking for the best way to render. Nothing too complicated but something that is fast, reliable, and powerful. I've seen many websites and about each one shows a different way. I've probably gone through about 5 different ways …

Member Avatar for FireNet
0
86
Member Avatar for flavour_of_bru

Hi, I have a small question. How do I compute the number of files(which are specific such as .doc) in a directory in C++. For example, if I have 10 files of type .doc format in a directory, how do I compute this value using C++. Any help is appreciated. …

Member Avatar for Ancient Dragon
0
114
Member Avatar for zandiago

Good day: We've just commenced our chapter on arrays. The way how it was presented just didn't click to me. The following is the assignment: " Use a one-dimensional array to solve the following problem. Read in 1000 numbers, each of which is between 10 and 100, inclusive. As each …

Member Avatar for Lerner
0
418
Member Avatar for Fromethius

Hello everyone, Is there an equivalent to SendKeys.Send in C++? I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions. Thanks for any help. Edit: I'm not using the .Net Framework so I can't use any of …

Member Avatar for rdwofrdw
0
622
Member Avatar for ftom2

hi, i'm trying to create a shared object. the files i want to put in the shared object use a properties file to read some of the data. is there a way to include the properties file in the so file? if not, then how do i refer to the …

Member Avatar for shouvik.d
0
91
Member Avatar for SirJames

I have a program evaluating a straight hand in poker: Here is my code: [code=cplusplus] int numInRank[14]; cin.get(rankCh); switch (toupper(rankCh)) { case '-1': exit(0); case '?': rank = 0; break; case 'A': rank = 1; break; case '2': rank = 2; break; case '3': rank = 3; break; case '4': …

Member Avatar for vijayan121
0
105
Member Avatar for dilumjr

Does any one know how to configure [COLOR="Red"]VC++ 2005 [/COLOR]for a maya API project, to write a simple pulggin? I'm a beginer to Maya API.

Member Avatar for dilumjr
0
177
Member Avatar for noituloverx

I am trying to figure out a way of retrieving/enumerating menu items that pops up from one of my application system tray icons when I right click on it, and seeing which menu item is checked. So far what I've done... I've used Winspector to find that the tray icon …

0
58
Member Avatar for JRM

I just started to fool around with QT4. I was wondering how experienced organized the widgets used in GUI's. For instance if I were to use several widget objects in a particular program, is it better practice to make a header file for each function? If I wanted a spin …

Member Avatar for JRM
0
99
Member Avatar for eyedea2011

Can someone help im suppose to write a family of overloaded functions called equal(), which take two arguments of the same type, returning 1 if the arguments are equal, and 0 otherwise. This is what i have that refuses to compile. [CODE=cplusplus]#include <cstring> using std::cin; using std::cout; using std::endl; int …

Member Avatar for JRM
0
125
Member Avatar for tformed

I got this code from a book I bought. I wanted to see if it words but it gives me errors. Here is the source code. [code=cplusplus] #include&lt;math.h&gt; #define NRANSI #include"nrutil.h" #define SWAP(a,b) { temp=(a);(a)=(b);(b)=temp; } void gaussj(float **a, int n, float **b, int m) { int *indxc,*indxr,*ipiv; int i,icol,irow,j,k,l,ll; …

Member Avatar for Ancient Dragon
0
267
Member Avatar for kpillsb39

Hi, I would like a good reference for reading arrays from text files. The program i need to write requires that we read a text file that has the information in an array format. thanks

Member Avatar for Ancient Dragon
0
79
Member Avatar for Earth Wyrm

Hi, as is about to become entirely apparent, I'm a newbie programmer and I'm having some problems with what should be simple operations. I'm having some trouble writing to file and no matter what method I use I can't seem to get it to work as I hope it to. …

Member Avatar for Earth Wyrm
0
168
Member Avatar for klarz

I am trying to remove certain buttons from an office menu bar, but am having trouble obtaining the menu bar handle. If anyone knows how to do this, it would be greatly appreciated.

Member Avatar for ndeniche
0
59
Member Avatar for kogorman

In my current Unix/C++ application, I need to pipe a file through the sort(1) program before reading it. The input is large to huge, so in-memory sorting won't work. I'm used to using fork(2), pipe(2) and exec(3) in my C programs. I know I can do the same in C++, …

Member Avatar for vijayan121
0
219
Member Avatar for jaepi

Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :)

Member Avatar for Ancient Dragon
0
130
Member Avatar for eyedea2011

Can someone please help me with these 2 problems. Here is number 1. I have to write a family of overloaded functions called equal(), which take two arguments of the same type, returning 1 if the arguments are equal, and 0 otherwise. This is what i have that refuses to …

Member Avatar for eyedea2011
-1
145
Member Avatar for jenco

The task is to put text in ab Edit box & then to iterate over it. The result should be in a block graph. If there is a vowel =="A" then block one should rise, if =="B" then block two should rise to represent it. I can make this work …

Member Avatar for Lerner
0
229
Member Avatar for khalidxa

Hi guys, I am trying to pass a two dimensional array into a constructor. I am having hard time with it. Can anyone please tell me how to pass arrays into a parameter. the code is something like this : testCase::testCase(int i, int *matrix[][],float m) Your help is appreciated Khalid

Member Avatar for Lerner
0
118
Member Avatar for RohitSahni

Hi all, [code] fstream filestr ("test.txt", fstream::in | fstream::out); [/code] Plz confirm me about the permission on "test.txt". it will be '777' by default ..am i thinking correct.?

Member Avatar for Salem
0
67
Member Avatar for zite.1
Member Avatar for Masood Ali

Hi, I am debugging a C++ application. when I compile it, the compiler gives an error [code]fatal error C1083: Cannot open include file: 'dir.h': No such file or directory [/code] I have seached for the file dir.h, but I could not find it. Please help.

Member Avatar for Salem
0
128
Member Avatar for shouvik.d

recently while studying STL i came thru functors and facades > http://en.wikipedia.org/wiki/Function_object] > A typical use of a functor is in writing more intelligent callback functions. A callback in procedural languages, such as C, may be accomplished by using function pointers. However it can be difficult or awkward to pass …

Member Avatar for vijayan121
0
315
Member Avatar for eyedea2011

I'm trying to write 2 codes in C++, but i'm having major problems. The first one should output something like this: Enter a number: 123 -- Enter a name: Jack Thank you, Your name and number is Jack and 123. [code=cplusplus] #include "stdafx.h" #include <iomanip> using std::cin; using std::cout; using …

Member Avatar for Ancient Dragon
0
396
Member Avatar for complete

I am looking for a good example of how to do a pop-up menu in MFC. I have found this bit of code: [CODE]void CMyView::OnRButtonDown(UINT nFlags, CPoint point) { CView::OnRButtonDown(nFlags, point); CMenu* menu_bar = AfxGetMainWnd()->GetMenu(); CMenu* file_menu = menu_bar->GetSubMenu(0); ASSERT(file_menu); file_menu->TrackPopupMenu(TPM_LEFTALIGN |TPM_RIGHTBUTTON, point.x, point.y, this); }[/CODE] But what if my …

Member Avatar for complete
0
1K
Member Avatar for tformed

I am working off the code that the professor provided, but for some reason I cannot get it to work. It is giving me errors. I created a project in Visual Studio. The header file: [code]#include <iostream> #include <math.h> using namespace std; class xy_coordinate { public: void input(); void print(); …

Member Avatar for ~s.o.s~
0
226
Member Avatar for mauro21pl

Hi I have a small code and a question concern it. What is the value of the first print of ptr2. I have 0. Why? Isn't suppose to be a memory address like for example 0xff10 thanks [CODE=cplusplus] #include<iostream> #include<conio.h> using namespace std; int main() { //a: 0xdf30 //b: 0xef41 …

Member Avatar for Ancient Dragon
0
99
Member Avatar for mauro21pl

Hi Could anybody fill the table for me. thanks Declarations and initializations int i=3,j=5,*p=&i,*q=&j,*r; double x; [code] value Equivalent expression value p==&i; **&p r=&x 7**p/*q+7 3**q-*p [/code]What excutly means: **&p and *&p Ihave seen them somewhere, but I don't know what it means thanks

Member Avatar for Bench
0
108
Member Avatar for Stefano Mtangoo

Hi! I'm Newbie in programming and I'm interested in VB and VC++.My problem is that I don't know completely how to program VB or VC++ Dll so that i will NOT repeat procedures in each exe i write. Is there anybody to guide me to write simple example? With regards, …

Member Avatar for Ancient Dragon
0
103
Member Avatar for ShawnCplus

I'm having a slight problem. This particular function is crashing caused by the Loadfile ifstream being opened. [code=c++] void LoadChar(Entity players[], char saveNum) { string filename, saves; saves = saveNum; filename = "save/Save" + saves + ".sav"; char *file; file = const_cast<char*>(filename.c_str()); ifstream Loadfile(file, ios::in); //this little diddy right here …

Member Avatar for ShawnCplus
0
1K
Member Avatar for eyedea2011

I'm a student that needs extra emergency help please!! Please help my assignment is already late. I'm trying to get these 2 codes to work but i can't. I have no more ideas, can someone please please help me. I'm using Microsoft Visual C++ to for my codes. Here they …

Member Avatar for Salem
0
254
Member Avatar for eyedea2011

Can someone please help me with this code, it should change numbersd to text. It compiles but the CMD box has the incorrect output. [code=c] #include "stdafx.h" #include <stdio.h> #include <string> //#include <math.h> // for exp(), pow() and log10() int _tmain(int argc, _TCHAR* argv[]) { int number=5; char text[10][10] = …

Member Avatar for John A
0
239
Member Avatar for mauro21pl

Hi I try to compile that program to see the results but I encountered a problem. The error that is guven by my comiler is : K undeclared (first use this function) e undeclared n undeclared and so on how my I make it compile thanks [code=C++]#include <iostream> int main() …

Member Avatar for Ancient Dragon
0
102
Member Avatar for rainbow78

it suppose to take the user input(a number) and put that item into your item into the inventory(1. hat, puts hat into the inventory). After that I need a loop that will keep adding items into the inventory intill it reaches the max and allow the user to discard one/replace. …

Member Avatar for rainbow78
0
309
Member Avatar for shouvik.d

As we all know we don't have Hashes in STL can anybody please suggest an analogous way of emulating it. Or also has any library added it as a standard component? Please do let me know

Member Avatar for Rashakil Fol
0
153
Member Avatar for *~ Salam ~*

[COLOR="Red"]- Creat a Daubly Linked List with 9 node with the following values: 3 ; 2 ; 1 ; 4 ; 6 ; 7 ; 2 ; 8 ; 3; - print the Daubly Linked List: - Creat a function number " Special Delete" that searches for a value in …

Member Avatar for WolfPack
0
103
Member Avatar for Fromethius

Hello everyone, I have this code: [CODE] Image* newImage = Image::FromFile(szFileName); Bitmap image(50, 50); Graphics graphics(&image); HDC gfxHDC = graphics.GetHDC(); graphics.DrawImage(newImage, 0, 0); int pixel, row; for (pixel = 1, row = 1; row <= 50; pixel++) if (GetPixel(gfxHDC, pixel, row) != RGB(255, 255, 255)) [/CODE] Anyways, whenever I use …

Member Avatar for WolfPack
0
157
Member Avatar for quintoncoert

i hope that this does not sound like a silly question but can someone please tell me why we return an integer from the main method in c++? if program execution starts and ends in main then what is the point? main calls other mothods and receive return types so …

Member Avatar for Salem
0
619
Member Avatar for RohitSahni

Hi All, [code] In file included from ../../incl/_Components/DbRes.h:7, from DbRes.cc:1: ../../incl/_Components/IniReader.h:79:8: warning: extra tokens at end of #endif directive /sbcimp/run/pd/gcc/3.4.2-32bit/lib/gcc/sparc-sun-solaris2.8/3.4.2/crt1.o(.text+0x5c): In function `.nope': : undefined reference to `main' /var/tmp//ccA4edOw.o(.text+0x84c): In function `DbRes::Lock::Lock(String const&, String const&)': /home//Developer/__local_unix/_/lib/_Components/DbRes.cc:65: undefined reference to `String::String(char const*)' /var/tmp//ccA4edOw.o(.text+0x8c4):/home//Developer/__local_unix/_/lib/_Components/DbRes.cc:65: undefined reference to `String::~String()' /var/tmp//ccA4edOw.o(.text+0x8e4):/home//Developer/__local_unix/_/lib/_Components/DbRes.cc:65: undefined reference to …

Member Avatar for thekashyap
0
116
Member Avatar for ganurobotto

plz help me to solve those errors.. # include<iostream> using std::cout; using std::cerr; using std::endl; Class DcmFileFormat int main() { DcmFileFormat fileformat; OFCondition status = fileformat.loadFile("C:\Documents and Settings\ganeshk\デスクトップ\subj006reg000.dcm\GE2EQ2FB.DCM"); if (status.good()) { OFString patientsName; if (fileformat.getDataset()->findAndGetOFString(DCM_PatientsName, patientsName).good()) { cout << "Patient's Name: " << patientsName << endl; } else cerr << …

Member Avatar for Salem
0
115
Member Avatar for jbennet

Okay I have made a c++ console application to take user input and append it to a text file and then read it back. I am using the win32 version of Dev c++ [code] #include <iostream> #include <fstream> #include <string> using namespace std; int main(){ int choice; cout << "What …

Member Avatar for Salem
0
155
Member Avatar for Firestone

I tried searching the forums for this, but couldn't find anything. If I were to make a career out of computer programming, which would be better to learn, Java or C/C++?

Member Avatar for Rashakil Fol
0
377
Member Avatar for eXceed69

Any one familiar with this error? [COLOR=#000000]exit code 100 error[/COLOR]

Member Avatar for thekashyap
0
89
Member Avatar for Milkybar

Hello Im a beginner in C++. I havent done any bit of programming. I am doing an Information Systems course through Intec College. My course includes Financial Management, Business Management, intro to computers and then C++. So I am finding it very difficult as this is not my field and …

Member Avatar for Milkybar
0
83
Member Avatar for Pmaster

Hi all, Does Visual basic net support inline c or c++ code and if so what keyword method, etc. ,do I use to do this. Thanks in Advance.

Member Avatar for cwood
1
168
Member Avatar for biganimal

I all ready completed and ran a program that works fine in Python but now I'm looking to convert that code to C++ in Eclipse. I thought I would be able to import this code than have some miracle conversion take place. Is this possible or does the whole code …

Member Avatar for vijayan121
0
5K
Member Avatar for darkrappaz

hi everybody!! well iam taking this c++ class and we r doing this problem that is givin me such a headache so i trying to get some help , topic are string and vectors. ok this is what i have to far all the precondition and postcondition are given becuase …

Member Avatar for darkrappaz
0
112

The End.