15,300 Posted Topics

Member Avatar for KenSquare

>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.

Member Avatar for Ancient Dragon
0
624
Member Avatar for codetoeternity

>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 …

Member Avatar for Ancient Dragon
0
208
Member Avatar for nitin1

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 …

Member Avatar for sepp2k
0
178
Member Avatar for Ancient Dragon
Member Avatar for nitin1

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 …

Member Avatar for deceptikon
0
261
Member Avatar for FairyA

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?

Member Avatar for FairyA
0
189
Member Avatar for Sallybaks

> 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.

Member Avatar for Ancient Dragon
0
223
Member Avatar for saurav2007

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.

Member Avatar for parag29081973
0
233
Member Avatar for charishma

> 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.

Member Avatar for Ancient Dragon
0
260
Member Avatar for Xen_1

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.

Member Avatar for Ancient Dragon
0
211
Member Avatar for manel1989

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 …

Member Avatar for manel1989
0
324
Member Avatar for LokiSoliman

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 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for CodyOebel

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 …

Member Avatar for Ancient Dragon
0
220
Member Avatar for angelinrajeesha

> 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 …

Member Avatar for Ancient Dragon
0
268
Member Avatar for waqas.zafar.125
Member Avatar for kamalashraf

>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.

Member Avatar for Ancient Dragon
0
325
Member Avatar for The Dude
Member Avatar for Dani
0
133
Member Avatar for Iamateur

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.

Member Avatar for Adak
0
219
Member Avatar for CloudZELL91

What is User Acceptance Test? What is the test for? That would give us some ideas what to call those rankings.

Member Avatar for cwarn23
0
267
Member Avatar for filipgothic

> 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 …

Member Avatar for filipgothic
0
264
Member Avatar for Khalessi

We can help you if you would tell us what you don't understand about 2d arrays.

Member Avatar for Khalessi
0
219
Member Avatar for wasik

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.

Member Avatar for Ancient Dragon
0
72
Member Avatar for prakash4

> 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 …

Member Avatar for sepp2k
0
287
Member Avatar for Emily Banks

>"People seem naturally comfortable disclosing personal information on unprofessional websites Those are probably the same people who post prolifically on FaceBook and MyPage.

Member Avatar for Ancient Dragon
0
407
Member Avatar for Ravic85

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 …

Member Avatar for Ancient Dragon
0
220
Member Avatar for mmcdonald

Sounds like a good idea -- might also include and area where members can post their resumes.

Member Avatar for mmcdonald
1
290
Member Avatar for kandarpa

Some compiler IDEs such as Microsoft can provide that information, but C and C++ lcnaugages know nothing about function names -- only addresses.

Member Avatar for बालाजी
0
7K
Member Avatar for ganges

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 …

Member Avatar for NardCake
0
442
Member Avatar for Rik_

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.

Member Avatar for mmcdonald
0
191
Member Avatar for Bhstickman

Probably not -- it has most likely been overwritten by something else. Did you look in the Recycle Bin if you are using ms-windows?

Member Avatar for Sai_3
0
269
Member Avatar for Ancient Dragon

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 …

Member Avatar for Ancient Dragon
0
276
Member Avatar for usama sadaqat
Member Avatar for sepp2k
0
156
Member Avatar for dendenny01

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.

Member Avatar for Ancient Dragon
0
925
Member Avatar for khakilang

> 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 …

Member Avatar for Ancient Dragon
0
211
Member Avatar for Ancient Dragon

http://thelibertarianrepublic.com/robber-tries-to-stick-up-clerk-an-iraq-veteran-who-turns-and-shoves-a-pistol-right-in-his-mouth-video/

Member Avatar for Reverend Jim
2
191
Member Avatar for Dani

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.

Member Avatar for JorgeM
2
237
Member Avatar for Ancient Dragon

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?

Member Avatar for Dani
0
238
Member Avatar for Muhammad Waqar_1

>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]);`

Member Avatar for Ancient Dragon
0
295
Member Avatar for Ancient Dragon

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 …

Member Avatar for farmwife
0
623
Member Avatar for dominiquehelper

@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 …

Member Avatar for PodHunter
0
7K
Member Avatar for kingkong123

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 …

Member Avatar for Ancient Dragon
0
314
Member Avatar for arunmarvel5

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, …

Member Avatar for MidiMagic
0
360
Member Avatar for happygeek

>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.

Member Avatar for MidiMagic
2
538
Member Avatar for pars99

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) …

Member Avatar for deceptikon
0
157
Member Avatar for jbrock31

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.

Member Avatar for samone1228
0
614
Member Avatar for chetanbhasin

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 …

Member Avatar for Ancient Dragon
0
648
Member Avatar for chetanbhasin

See line 165 of mongoose.c -- you need to define the macro HAVE_STDINT near the top of that \*.c file. `#define HAVE_STDINT`

Member Avatar for Ancient Dragon
0
659
Member Avatar for GuardinoM

Most websites use MySQL databases, and most hosting companies have it included in the package you buy.

Member Avatar for GuardinoM
0
186
Member Avatar for zmem32

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 …

Member Avatar for zmem32
0
88
Member Avatar for Ahmed.C

[Read this free book](http://www.homeandlearn.co.uk/bookshop/samples/VB_NET_Sample1.pdf) which has a chapter on sending email

Member Avatar for Ancient Dragon
0
190

The End.