15,300 Posted Topics
Re: >The drivers are 32bit. You should consider implementing MSSQL, or Mysql or whatever db that has 64bit drivers. I question that. On my 64-bit Windows 7 and 8 I use 32-bit database drivers. | |
Re: >with this current situation of my mathematical abilities (which have no chances of improvement either) will i able to do good in game development? Probably not. There are just too many other programmers out there with much better math skills who are also competing for game development jobs. You might … | |
Re: inline functions, the compiler can choose to make them inline as if they had been macros or to just make them regular functions. inline functions as well as functions written as macros has the potential to bloat the compiled program, making it a lot larger than if the function had … | |
Re: It's fairly easy to accomplish in either language. In C, call fgets() to read each line, separate it into tokens with strtok(), then convert each string token into integers using atol() (or one of several other conversion functions). In C++ it's a little simpler, call getline() with a line terminator … | |
Re: You are getting core dump becuse the pointer has never been allocated any memory. Lines 6 and 11 attempt to store an integer into a pointer that contains an invalid address. Is it a requirement of the assignment to use a pointer? | |
Re: > 100(1+0.00417)=100.4417 That is incorrect. 100 * 1.00417 = 100.417, not 100.4417. In any event, just a simple loop will calculate the value after N number of months. | |
Re: line 9: what's the value of variable a??? line 20: what's the value of variable j?? Answer: both i and j are uninitialized variables, so their value can be any random number. | |
Re: > I will go with my method because it has less no. of statements That's a poor reason not to use his code. If you post the exact assignment I'm willing to wager that your instructor wants you to swap the variables in memory, not just on the console screen. | |
Re: It doesn't work with other programs because the other programs are not in the same address space as the one you posted. What you want to do is called injecting, [here](https://www.google.com/webhp?source=search_app#q=inject+function+c%2B%2B) are a few google links for you to consider. | |
Re: So the c++ code is already compiled as an exe program? Then in the java program construct a string that contains the name of the program followed by the command-line arguments you want to pass. After that call a function that executes other programs. I'm not a java programmer but … | |
Re: Simple solution: use the mod % operator to determine if a number is odd or even, then if even just add to the sum. Note: the only reason I'm posting entire code is because this thread is already over 2 weeks old, so it probably won't affect the OPs program … | |
Re: First off -- LPWSTR is a pointer, declared like this: `typedef wchar_t* LPWSTR` That means `LPWSTR buffer[256];` is an array of 256 pointers of type wchar_t\*. I don't think that is what you intend. What you want ot `WCHAR buffer[255];` Now to answer your question. Once you get the text … | |
Re: > I am trying to call the borland C++ DLL from VS 2005 .But its giving Linking Error. You can't link Borland DLLs from Microsoft compilers because name mangling is different. Even C language names are different -- Microsoft puts an underscore before the name while Borland doesn't. There are … | |
Re: strcmp() wants two char* not two std::string | |
Re: >int size=0; int a[size]; That creates an array of 0 elements. That's not what you want. Move line 11 down to below line 13 where the value of size is known. Note: you will have to use a c++11 compliant compiler to compile this. | |
Re: have you learned pointers yet? You will need to use a pointer to find the first digit character in the string. Then use a loop to print the next 8 digits to the screen, one digit at a time. | |
Re: What is User Acceptance Test? What is the test for? That would give us some ideas what to call those rankings. | |
Re: > You'd have to get a hook into the clock cycles of your computer That would be going a bit to the extreme -- just using standard C function clock() and repeating the algorithm a million times would probably be sufficient. clock_t t1,t2; t1 = clock(); // get starting time … | |
Re: We can help you if you would tell us what you don't understand about 2d arrays. | |
Re: Yea, there's a link at the bottom of every page, just scroll all the way down and you will find it on the very last line. | |
Re: > if(a==5.2) Should never test for equality with floats and doubles because of extraneous fractional values beyond your control, which is due to the way floats/doubles are stored in memory. The value 5.2 might actually be stored in memory as 5.200001 and the test for equality will fail. Since the … | |
Re: >"People seem naturally comfortable disclosing personal information on unprofessional websites Those are probably the same people who post prolifically on FaceBook and MyPage. | |
Re: First you need to make a list of commands and associated functions that are to process them. Then you have several options, probably the simplest is to use a switch statement for each command char command = 'B'; switch(command) { case 'A': // do something break; case 'B': // do … | |
Re: Sounds like a good idea -- might also include and area where members can post their resumes. | |
Re: Some compiler IDEs such as Microsoft can provide that information, but C and C++ lcnaugages know nothing about function names -- only addresses. | |
Re: The best way to learn a programming language is lots and lots of practice. One learns to play a piano well only by years of practice -- same with progamming languages. At first you will have to constantly read reference books, but the more you program the more you remember … | |
Re: I have both wired and wireless on the same home network and works great. File sharing is a bit of a pain to set up right, but once it's done it works ok. | |
Re: Probably not -- it has most likely been overwritten by something else. Did you look in the Recycle Bin if you are using ms-windows? | |
If it's the thread I started upload works ok as long as I attempt to upload the file at the same time that I create the thread. Any other time I don't get any error message such as "file too big" (it's only 124K) or the options where to place … | |
Re: function create_queue() is attempting to dereference a NULL pointer. You don't need to call that function on line 23 because the pointer is already NULL. | |
Re: > also stated that we use the Start8 add-on to bring back the desktop, Waste of time -- the desktop is already there. Just click the desktop icon on the metro screen. > If you use Ubuntu, and do not like their out of the box Unity interface, just load … | |
http://thelibertarianrepublic.com/robber-tries-to-stick-up-clerk-an-iraq-veteran-who-turns-and-shoves-a-pistol-right-in-his-mouth-video/ | |
Re: Could you put a cut-off date for the calculations, for example only calculate for the most recent 3 or 4 years? That would de-emphasize the quality of very old posts. | |
Do you like it? I've seen it in a showroom and couldn't tell the difference between 3d and normal tv. I've read elsewhere that it makes may people dizzy, headaches and other problems. The same with 3d blu-ray movies, I won't buy them. What's your thoughts? | |
Re: >line 14:` r_file(argv);` Wrong. That is passing the entire array of strings, not just a single string. You have to tell it which string you want to pass. I'm assuming the filename is located at argv[1] `r_file(argv[1]);` | |
Last week I bought a new [Lonovo G505 laptop](http://shop.lenovo.com/gb/en/laptops/essential/g-series/g505/) for the purpose of installing Linux. After removing Windows 8 I tried to install three different linux distributions, none of them worked. None had a compatible wifi device driver, and none of them could start the X server after installation was … | |
Re: @dominiquehelper: what exactly is the question about the code you posted? Does the code you posted compile and work correctly? If not, why not? Just posting code without an explanation of what you don't understand isn't helpful to any of us -- we are not mind readers. [Here](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question) is some … | |
Re: The problem is in concantination function. The loop doesn't work right. After the first iteration the strings are `borndramatic dramatic insurance gravy release frying` Notice that dramatic is now in the list twice. When the first loop is finished the value of i is incremented from 0 to 2, which … | |
Re: I use Windows 8 Pro. It requires a bit of learning curve after using Windows 7, mainly because there is no Start button. But everything is there in Windows 8, you just have to learn how to find it. I rarely use the Metro screen, prefer the standard Desktop view, … | |
Re: >That is very sad, that most UK office personal does that. I'd bet the data is over stated. What they could count is only those who stay on the porn sites for more than 10 seconds or so. Anything less could just be accidental. | |
Re: They both do the same thing -- its just how the object is declared. The -> is pointer notation. Some examples: class MyClass { public: int x; }; // in this function pMyClass is a pointer, so it requires -> to // reference any of it's objects void foo(MyClass* pMyClass) … | |
Re: The while statement is incorrect. The eof() function doesn't work the way you think it does. [code] while( joke.getline(data, 256) ) { // blabla } [/code] After the above loop finishes data will contain the last line of the file. | |
Re: You don't really need to write your own HTTP server, such as Apache2, to do all that. Just write client/server socket programs, then carefully design the commands you want the server to recognize and how to do file transfers. What operating system do you plan to use? [boost has os … | |
Re: See line 165 of mongoose.c -- you need to define the macro HAVE_STDINT near the top of that \*.c file. `#define HAVE_STDINT` | |
Re: Most websites use MySQL databases, and most hosting companies have it included in the package you buy. | |
![]() | Re: All that code does is illustrate how to copy data into register ax from somewhere. For example: `mov ax,bx` just copies the value of bx into ax register. In another case, `mov ax,[bx+di]` it assumes the data is in the segment pointed to by the ds register. It could also … ![]() |
Re: [Read this free book](http://www.homeandlearn.co.uk/bookshop/samples/VB_NET_Sample1.pdf) which has a chapter on sending email |
The End.