Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Maybe that's what's happening -- the purple ribbon covers up the status bar.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

This has been an annoyance for some time now. Hover the mouse of any of the links on the purple ribbon at the bottom of the screen and something or someone is displaying the URL for that link, which hides half the purple ribbon. The same thing happens with IE8, IE9 and Chrome. Is that something that DaniWeb is doing or something that's part of the browsers ?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

It's not possible to determine if the array is empty or not without knowing the array size. Even then the only way to tell if the array is empty is if the array size is 0.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

24 on my phone.

Not surprised :) I would think you can text faster than that ????

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster


You reached 194 points, so you achieved position 78789 of 308040 on the ranking list


You type 297 characters per minute
You have 48 correct words and
you have 3 wrong words

I slowed down a bit in the past 20 years.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The code manipulates the structure through the passed pointer doesn't it? i think you are mistaken Oh Ancient One! Ternary operation in line 15 set node's pointer to equal p's next pointer if p is not null pointer or zero if p is zero (NULL).

Yes, but what good is it? The function sets pointer p then just exists without doing anything with it. That makes it a do-nothing operation.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The problem is your WinProc() is incorrect. Change it to the one shown in that tutorial link I posted and your program works.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Have you read this tutorial?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 14 needs a semicolon after the }

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Some years ago we controlled external devices by sending a signal out the serial port to a PLC which, in turn, turned on/off switches to the device.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Why disappointing? DLLs never call functions in the application program (except via callback function pointers) -- its the other way around.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Read the article I posted carefully and download the demo application files whose link appears at the beginning of the article.

>>Can I call functions in the application with the DLL ?
No. But you can get text off the window and put text into the program. You can also use SetWindowsHook() to hook into the remote process's WinProc() function, which means MS-Windows os will call your WinProc() function before that of the remote process.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

only mods can close a thread.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If the blocks are in sequential order with no unused numbers then just store then in a vector or array and use the index value as the block number.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

MSVCR90D.dll is a debug DLL (which is what the D at the end means). Sounds like you are trying to mix files compiled for debug with others compiled for release mode. Calling DLLs compiled for debug may also produce that error.

Here are other suggestions to try

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Yes of course you can -- that's the whole purpose of doing that. After calling LoadLibrary() to load the DLL into memory you need to call GetProcAddress() to get the address of the function you want to call.

If you want to inject YOUR DLL into another process, then here is a good tutorial

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Strange that the Bible is the world's best selling book, estimates are in excess of 6,000,000,000 (yes, that's 6 Billion copies) in over 2,000 languages (and those stats are 20 years old). Link here. I think the atheists are outnumbered. That, of course, does not mean 6 billion people bought it, many people own more than 1 copy.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Since the function does not have a loop variable p can be removed and line 15 deleted. Line 15 is wrong anyway because it used = assignment operator instead of == boolean operator. Also, without a loop line 15 does nothing even then the == operator is corrected.

>> what's the meaning of p=list(
To initialize the variable p.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Yes that has been a problem for a long time now -- every since DaniWeb went purple. I've just learned to click the New Posts link (or one of the others) twice in order to get good results. The problem does not occur if you are reading some thread then click New Posts.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The function I posted would be the thread created by either CreateThread() or _beginthread(). Read the online docs (use google for that) and you will find out what the parameter to the function means. In most cases you can just pass NULL as the parameter.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

line 12: you don't need double star on FILE since the function is not attempting to change the caller's pointer. Just pass FILE pointer by value -- with only one star then on line 66 remove the & operator.

line 61: you are assuming that fgets() read in exactly sizeof(buf) number of bytes. Most likely it did not. The loop on line 61 needs to check for end-of-string null terminator instead of sizeof(buf).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You need to add year, month and day to the clockType class because you can not compare times if you don't know what days they are on. Suppose you have two times that have the same numeric numbers for hour, minute and second. Are they the same, or are they at least 24 hours apart? Another example: t1 = 1:00 a.m. and t2 = 11:00 p.m. Is that 2 hours difference or 10 hours difference? Again, you don't know if you don't know the dates.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't have to real estate for two monitors. I don't need a monitor for each eyeball :)

jingda commented: Lol +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

My PC is HP desktop computer and 19" monitor. Ancient?? I just bought it a few years ago :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

i think it depends on your system specifications... if you have powerful PC Windows 7 will run smoothly on it... otherwise XP is still alive... and working superbly..!!

That's true -- you can't run Win7 on a computer designed for Win95. Microsoft provides a program that check the computer to see if it is capable of running Win7. If not, then don't install it. Simple as that. It doesn't mean Win7 sucks, it means your hardware sucks.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

OMG ^^^! The IBM 1301 disk storage unit released in 1961 held 28 Meg data and sold for $115,500. How times have changed. Today we can put 2 Gig data on a stick that costs only about $40.00.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

This is Geek's Lounge -- the link is NOT spam. Lots of members have posted links to favorite (or funny) sites in this forum without being harassed for spamming.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you wrote your programs using punch cards.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>> The doctors/hospitals then decide how much of their operating room time they will use for hip replacements vs other surgeries based on this price.

Wonderful. So the hospital says you have 30 minutes to do the hip replacement. When the time clock expires then toss the patient out whether the operation is finished or not and to another hip replacement.

>>Since the patient isn't paying for it giving the hip surgery to a poor person is just as profitable as giving it to a rich person so patients are treated equally.
Yup -- everyone is treated equally like shit.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You don't have to actually declare the array to be of size 0 in order for it to be considered empty. The size parameter may just mean the number of elements in the array that have valid entries. The array itself could have been declared with any size > 0. The question is a bit ambiguous about that.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

i can almost call myself C++ and VB.NET engineer now :)

Just because you can write code doesn't make you a "software engineer". See this link to see the definition of a software engineer. In order to claim to be a software engineer you have to be certified by the Software Engineering Institute, and that requires a minimum of a college bachelors degree in computer science.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Post current code.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Yes I did visit that site. Went to the Windows Doors link and only saw an advert for some game (Hunted) with a few comments below it. The trailer makes the game look interesting, but its a bit pricy.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Anyone on daniweb now but not using a laptop
I never use a laptop -- hate them. I just use a regular HP PC.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

looks like spam to me.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Please tell me how the two statements are related??? The Democrats did Obamacare all by themselves, not one Reublican voted for it and it still passed. That makes the Democrats the perpetrators of the biggest fraud in American history, with the exception, of course, of Obama's forged birth certificate. But that is a different store for another time.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You would be right if there were enough demand for such an operating system. But there isn't, and hasn't been for many years now. If you want a 32-bit DOS then just use *nix. MS-DOS is dead, so leave is dead and buried.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

lines 7 and 8 are incorect. Array elements are counted from 0 up, but not including the max index number. For example scores has valid index values of scores[0][] and scores[1][] The <= operator on line 7 will attempt to dereference scores[2][], which does not exist.

The correct code for line 7 would replace <= with just <.

line 10 is also in error. You have to pass a pointer to scores by adding & pointer operator. scanf("%d", &scores[i][j]);

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I always used ODBC because its supported by most (all) SQL compliant databases and is well documents. You can even find free c++ classes that wrap the odbc calls.


If you are using MySQL then you can get MySQL++ which are c++ wrapper class for MySQL. That's a little different than odbc, and probably faster too.

For really small projects that do not require multi-user features you can use SqLite which does not require some external database engine such as MySQL or MS-Access. Its all self contained and is compiled right into the application program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The first error indicates that you have called a time functon that does not exist. Read this thread for the solution to that problem.

The second error is quite simple. You created a MS-Windows project but you probably replaced WinMain() with main(). If you wanted main() then you should have created a console project.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Obamacare was destroyed by the Republicans (who were working on behalf of their corporate donors) by not provided a public option and thus just helping the insurance companies rip-off the American people.

The republicans had no say in passage of Obamacare. The Democrats controlled both houses of congress at that time. So I don't know how you can possibly blaim the republicans for anything.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Don't you have a brain? Don't use your head for something other than a hat rack.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You will have to use two temp arrays

(1) and array that contains the random numbers so that when a random number is generated the program searches this array to see if it has already been used. If the new random number already exists in the array then go back and generate another random number.

(2) You can not shuffel the rows directly into the original array because moving one of the rows will overwrite the values in the destination row, and the values in the destination row will be lost forever. Create a new temp array to hold the shuffled rows, then after the shuffling is complete copy the data in the temp array back into the original array.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You should pass the structures by reference, not by value. That means passing a pointer to the structure. I don't know what InitArray() does or returns, but I assume it returns a pointer. Here is how you need to write the first function you posted. Do something similar with the other functions.

Do not use reserved words as variable names. struct is a reserved word.

void function(Struct* str, int i, int k)
{
    str->array[i] = InitArray();
    str->array[i]->key = k;
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't know C# (or CLR/C++) that well either, but I'm pretty sure there is a way to do it. You just need a little more experience writing code in C# and reading tutorials. www.codeproject.com may have some code that will help you.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

nuts for the nutty??

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You can create it in any of several languages. C# might be easiest so that you can take advantage of what .NET framework has to offer.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Funny what you sya about teh contradictions. Yu don't just read the verses, you look around it for teh context - He even admits that is a factor when your read the editors notes; have youa ctually read this?. I will read teh moses one another time, infact its best you remind me though.

I didn't really say anything at all about the contradictions except to post a link to them.