132,726 Archived Topics
Remove Filter ![]() | |
Hello there. I have here a constructor of class CDriveControl and class CSPTIDriver.. [code=c++] class CSPTIDriver; class CDriveControl{ public: CDriveControl(); CDriveControl(const char* pPort); ...... ...... protected: char* m_pPort; CSPTIDriver* m_pSPTIDriver; bool m_bInitFlag; bool m_onlycomp; } [/code] It was defined outside the class. [code=c++] CDriveControl::CDriveControl(void) :m_pPort(NULL) //Object drive ,m_pSPTIDriver(NULL) //SPTI object … Software Development c++ | |
I don't ensure whether "0" or "NULL" is better to be an empty point's value in C++. Could anybody can tell me,and why? Then how about it in C, why? Thank you! Software Development c++ | |
Can anyone tell me why this doesn't work? I know it's probably really easy, but I did try.... [code]/* ISU program created by Matt in grade 12 programming. */ #include <iostream> #include <list> #include <iterator> using namespace std; class humanPlayer { public: humanPlayer(char thePlayersName, unsigned int thePlayersTurnNum); //constructor ~humanPlayer(){}; void … Software Development c++ | |
When using an STL list, how can I check if a certain variable happens to just be in there? Basically, given this already: [code]#include <iostream> #include <list> #include <iterator> using namespace std; list<int> integer_list;[/code] I need a way to code this in C++: [code]if(x is in integer_list){ do this }[/code] Software Development c++ | |
Hi everybody, I'm new to Java language & was previously working with C++. I'm totally confused as to what is the mechanism of passing variables having 1) built-in datatypes 2) array datatypes 3) user-defined objects as datatypes to any function. Is it pass by value or reference ? If arguments … Software Development java | |
Hi, I'm trying to use a program, written by others, that has C/C++ code compiled as part of its setup procedure (it's called Content - integrated environment for the analysis of dynamical systems). However, c++ (or g++ actually) complains about invalid conversions and cannot compile: [code]autodif.c: In function ‘char* Mult(char*, … Software Development c++ | |
pliz assist in linking visual basic 6.0 with access step by step Software Development visual-basic | |
hey everyone, im making a program that controls my cube using GCNRD. but shellexecute is being a tard to me the code should work like this: enter a value and the program starts gcnrd to poke the value i got that in these lines [code=cplusplus] string CButton; string CoButton; cout … Software Development c++ | |
Hi, everyone. I have worked in IT field for about 1 year, before that my major was physics. So I feel I'm just a new guy in this field, and I hope you could help me:) Now, I work in a embedded C++ project on WINCE platform. I'm not very … Software Development assembly c++ engineering operating-system software-architecture | |
Thank you very much for who can solve this bash script: "Create a bash procedure createdata that creates collections (directories) that that will have to contain a random number, comprised between 300 and 600, of binary files of dimension comprised between 10 Kbytes and 30 kbytes. Also the names of … Software Development shell-scripting | |
I'm looking for a C++ book with exercices(solved),practice or something like "tips and trips of c++ language" cause I need to prepare for the exam. If someone know's a kind of this book , pls reply.I searched google , but didnt found what i want Software Development c++ | |
pliz assist in showing how to link visual basic 6.0 and ms access following all the correct procedures. i have used data 1 for linking but still not working.tell me how to link vb with access Software Development visual-basic | |
Hello all... I set a key in the registry with a name as Database, the Value consists of a Database name "PBC_DB.mdb" My hopes are to use the key in my program (I am using vb6) to find the database; in the connection string rather than having it read ex: … Software Development visual-basic | |
Hi, could anyone help me by explaining what Lib means i have come across these lines of code in a book and i could not understand what theses codes mean. Thx in advance [CODE]Private Declare Function GetPixel Lib "gdi32" _ (ByVal hDC As Long, _ ByVal x As Long, _ … Software Development visual-basic | |
I am trying to store information then retrieve it on my program. I know I have to use a class and a constructor. The problem is that my text doesn't have any good examples that I can view. I am truly lost. I am not sure 1. where to build … Software Development java | |
Hiz well i m new in here n i m goin to have exam after 3 days :S i got stuckd in a question Q) Write a program to print the product of even numbers..... plz i m new with c langauge :S n i m having final exam jst … Software Development c | |
Hi! I was writing a calculator to practice my programming skills and I really cannot solve a problem with an abstract class [code=C#] //base class for all tokens public abstract class BaseToken { public override string ToString() { return tokenValue; } } //base class for all operators public abstract class … Software Development | |
I was wondering by using the Visual Studios 2005 and Windows XP could you write code in C# and add some other code in C++? What is happening is that I am updating this program that was previously made in C# and I need to add some security functionality, although … | |
I have been trying for two days to figure out how to use a loop in my program. It is the ever dreaded payroll program. I can't seem to get the program to start over once the program goes through each question. Can anyone point me in the right direction … Software Development java | |
I'm trying to create a database for an operator to choose values from a dropdown list. However, the source of these values are calculated (in a different query) in different columns (long story). I need to be able to choose any single value from multiple columns. I have tried to … Software Development visual-basic | |
#!/perl/bin/perl -w print "Content-type: text/html\n\n"; use WWW::Mechanize; my $mech = WWW::Mechanize->new( ); $mech->agent_alias("Windows Mozilla"); use LWP::Simple; use HTML::TableContentParser; $mech->get("http://google.com/"); my $filename = "admin.htm"; [COLOR=red]print $mech->content;[/COLOR] print "done..............."; [I]$mech->save_content($filename); [/I] die "cud not save ",$mech->response->status_line unless $mech->success; print "done..............."; here is part of my perl script. the problem is, i am … Software Development perl | |
I kept getting 500 Internal Server Errors when trying to set up one of my Perl scripts, so I decided to test a simple "Hello World!" script. It produced the same error: [FONT=Courier New]Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your … Software Development perl web-server | |
[B]Hi,[/B] [B]Can anyone help me, how to determine selected control from an array of listbox? Anyhelp is greatly appreciated. Thanks.[/B] [B]cguan[/B] Software Development visual-basic | |
I want to write a server side application for Pocket PC. I wrote it in eVC++ by deriving a class from CCeSocket. But i couldnt accept a connection. How to do socket pgming in PocketPC. My aim is to send messages to pocket pc from desktop application when an event … Software Development c++ | |
Program received signal SIGSEGV, Segmentation fault. 0xff2209e8 in _write () from /usr/lib/libc.so.1 (gdb) up #1 0xff212bf4 in _xflsbuf () from /usr/lib/libc.so.1 (gdb) up #2 0xff21000c in _flsbuf () from /usr/lib/libc.so.1 (gdb) up #3 0x00000037 in ?? () (gdb) up #4 0x00000037 in ?? () (gdb) up Previous frame identical to … Software Development c++ | |
Hey everyone. I'm trying to get a dataset to a page from a web service and im having problems. I have been using the MS page here: [URL]http://support.microsoft.com/kb/310143[/URL] and copied it exactly(o so i thought). And for some reason my datagrid (DataGrid1 in my program) is not being populated and … Software Development asp asp.net dataset web-server xml | |
I need to do a non-recursive function for count the leafs in a tree. I have the recursive algorithm, Can someone help me to figure this out!! count leafs int count_Lnodes(root, int cnt) { if (root != NULL) { cnt = count_Lnodes(root->left, cnt); cnt = count_Lnodes(root->right, cnt); if (root->left == … | |
warning C4273: 'fileHandle::fileHandle' : inconsistent dll linkage. dllexport assumed. what does this warning mean? during debug i dont get this message but during release i have this one. can anyone explain the message to me and maybe give some remedy to it Software Development c++ | |
What is the difference in these two lines? #define X 100 const int Y 100; Apart from the fact that one is for X and the other is for Y (har har, very funny) effectively don't they do the same thing? Why would one be preferable over the other? Software Development c++ | |
Has anyone noticed any problems with the Delphi 7 system routines in GETMEM.INC with newer WinXP security updates? One of my applications just started throwing a random exception with ResizeInPlace after the latest WinXP update. | |
Hey all. Sorry to embarrass myself here. I have a question to ask: What exactly is C#? Well, I know it's a programming language but how would you explain it? Does it have anything to do with C and C++? Sorry, I'm kind of novice in programming. Your help will … Software Development c# | |
hi,i want to have persian calendar with dateTimepicker that it show in persian calendar .how can i change DateTimePicker View to persian calendar? Thanks Software Development | |
Making a "hello" world program in VC++ 6.0 is cool, as I got a very happy feeling when i completed it... but reading alot of books to learn "a round about" way in something isn't me. I'm objective oriented. What materials should I, could I, get my hands onto learn … Software Development c++ client-server file-stream opengl tcp-udp | |
Hi, Trying to overload - and getting this error. I am not sure why.. error C2447: missing function header (old-style formal list?) [code] #include<iostream.h> #include<string> #include<new> #include<ctime> using namespace std; class D { public: D operator- (const D &d2); }; D D::operator- (const D &d2); { //error points to here!! … Software Development c++ | |
I'm fairly new to C++ and have an assignment that is knocking me out. The text file is fairly simple: Plain Egg 1.45 Bacon and Egg 2.45 Muffin 0.99..... etc.... And the code is: [code=c] //Breakfast Billing System //Marlen LaBianco //May 20, 2007 //Program to calculate a local restaurant's breakfast … | |
I wrote this function to generate random numbers and return it to the calling function [code=c] int getCard(void) { int range; int card; srand(time(NULL)); range = (10 - 1) + 1; card = rand() % range + 1; return card; } the calling function is.... int first2(void) { int firstCard; … Software Development c | |
I've been attempting to teach myself some C, as I have been tasked with maintaining a program written for a handheld barcode scanner that appears to be written in this language. (At least, I'm assuming that for the moment, considering the fact one of the first statements I saw when … Software Development c | |
[B]Hi everyone, What does @ mean in shell scripts? Cheers, [/B] Software Development shell-scripting | |
Hello, The code below calculates the determinant of the matrix. I know that the method of global 2-d pointers is a poor programming practice (so u don't need to reply saying that!!!), but it is a simple method for an amateur programmer. As the code didn't work, I set two … Software Development c | |
Hi All How can we plot the pixel without using the function putpixel(int x,int y,int color) . Software Development c | |
**I know the code looks big, but it's a very small isolated section at the bottom (starting at line 164) that's giving me the problem.** When this program is run, when I try to open the file I just appended some text to, it doesn't open... can anyone spot why? … Software Development c++ file-system ios | |
Dear All, Please help me regarding this C++ Assignment. Q.1 [COLOR=green]Write a program using [B]malloc[/B] function. In which you take input from user and allocate memory equal to square of this number. Which multiply numbers and draw a table in the following format?[/COLOR] [B][COLOR=green]Hint: User enters 3 then program allocates … Software Development c++ | |
Hello all! I have a flexgrid and everytime a user would click in a cell to edit it, an error occurs "Run time error 5 "Invalid procedure call or argument"" Here is my code: 'simple sub routine to fake the edits Private Sub EditFlexGridCell(PassedText As String, Optional CpBoard As Boolean) … Software Development visual-basic | |
I have an ongoing TurboPascal development that jumps into one of the units code on program termination causing a hangup. Running it in the IDE under Windows XP 'Just' locks up the instance of the Turbo compiler. Porting it to another machine running Win98 gives 'Code segment to large' when … Software Development ide pascal windows-xp | |
Let, i have a database in ms access with two field named-"name" & "roll". I also have a combo box or list box in vb containing those names. I have to select a name from that list and appear the corresponding "roll" from that database in a text box in … Software Development visual-basic | |
Hi all, I have a QUESTION regarding [B]data validation[/B] I'm writing a program, where i want the input to be [U]only integers[/U]. so if they enter things such as letters or symbols it won't crash my program. i tried stuff like, while(inputArray[count] != int) { cout << "Invalid Input. Please … Software Development c++ | |
Hi, there, all fellow programmers I need a help on this. I have a code in vb6. It acts when a click action is made on 'X' on form1. Here is the code :- private sub form1_unload(cancel as integer) dim confirm as integer confirm=msgbox("Sure to exit ?",vbyesno+vbquestion,"Confirm Exit") if confirm=vbyes … Software Development vb.net visual-basic | |
The End.