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

Also make sure the PATH environment variable isn't very long. TC is a 16-bit compiler and can't handle long environment variables like 32/64-bit programs can. You may have to use a batch file to shorten the path to only essential directories.

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

I always donate unneeded clothing to Goodwill

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

It depends on the operating system, but in MS-Windows you first have to empty the folder. Or you can call the shell command "rmdir -S" to remove all the files and folders. system("rmdir -S c:\mydir");

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

It was smart to ask her for the money for a plain ticket instead of the more expensive elaborate ticket.

LOL :)

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

>>But , How can I create Resource.h for this specific program code.

It's just a text file so you can use any text editor such as vc++ or even Notepad. Now if you want to know what to put in resource.h then you should have been reading a tutorial, like this one.

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

Today is an American Thanksgiving holiday and we typically gorge ourselves with turkey, sweet potatoes, mashed potatoes, salads, and desserts. If you cook all that at home there is normally enough left overs to last as week or so.

This year we decided not to bother with all that cooking and cleaning up. Instead, we went to a restaurant and left the cooking/cleaning up to someone else. And I don't even miss all the leftovers.

Happy Thanksgiving to all those who celebrate it today.

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

If MS-Windows you have to add an entry in the registry under HKEY_CLASSES_ROOT. If you run regedit.exe and scroll through that key you will see how others do the same thing, just make sure you don't accidentally change anything because you can potentially screw up the entire operating system.

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

What version of vc++ 2008 are you using? Express, Pro, etc. The Express version doesn't come with rc.exe but the others do.

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

duplicate thread. See answer here

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

why download an old and ancient version 6.0? Get the free current version vc++ 2010 Express, easily located by google.

>> I can provide the header files myself
Are you sure? There are a couple hundred of them.

If you insist on version 6.0 you will also have to install service pack #6 for that compiler because it contains many many bug fixes.

BTW: I don't know a free link

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

concatenate the two strings before calling system

string fname;
string pick;

cin>>fname;
cout<<"Do you want to open the file?";
cin>>pick;
if(pick=="yes")
{
    string command;
    command = "umplayer.exe " + fname;
    system(command.c_str());
}
else
cout<<"Thanks for your time;
slygoth commented: PERFECT +2
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

where is the function readint ?

How is ecx set to the number of integers that the user wants? Maybe its set in readint?

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

add header #include<time.h>

won't help.

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

line 16 is wrong. The parameters are only variable names, not the variable size decode (crypted_string, uncoded_string, key);

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

There is no link -- I just know from experience that vc++ and MFC requires resource.h to be in the same folder as all the other *.cpp and header files.

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

Nope, cleared cache - still nothing doing. I'm stuck in DW! In all of my browsers! And my smartphone.

Uninstall MS-Windows, reformat the hard drive, then reinstall MS-Windows. That should do it :) (just kidding)

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

Simple solution -- just read my post of 4 years ago.

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

>> When you log out you should see this screen

It does. Unfortunately when I re-visit Daniweb after that screen, I'm still logged in.

I just tried it and had no problems. Logged out, closed browser then started again. I had to log back in. Maybe you need to clear your browser's catch (that's always Dani's answer to me, which almost always solves the problems).

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

I like that change too. :)

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

Windows 7, Google Chrome. No problem logging out. When you log out you should see this screen

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

Use your compiler's debugger and single step through the program to find out what the problem is. You can also put print statements around the program so that you can see the value of various variables.

line 65: for (int column = 0; column < 5; column++)

Why 5? why not column or 10? (make those two const ints global so that they can be used throughout the program.

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

You are correct, I didn't read it well enough.

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

The problem is line 8 of the header file. Delete that semicolon at the end of the class name. Otherwise it looks to be ok.

>> it is generally inadvisable to have code (as opposed to declarations) in a header file
He has inline code, which is perfectly acceptable and often used in professional programs. One or two inline statements within the same method is ok, more than that should be moved to a *.cpp file and only function declaration in the header file. The reason for doing that is to reduce the overall size of the program. The compiler may duplicate all the code of inline functions every time the function appears in the program. So if a program calls foo.Example() 10 times then all the code in Example() will be duplicated 10 times. Clearly 1 or 2 statements in the inline method will not be a problem, but more than that could potentially cause unnecessary bulk. I say potentially because compilers are free to ignore inline keywords and statements if they so desire.

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

Never declare data objects in a header file because if you include the same header file in multiple *.c or *.cpp files the compiler will generate multiple declaration errors. So you want to move lines 12 - 17 of that header file into the *.c file (about line 7).

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

Where is your program? We are not going to write it for you. But as a hint: Save a copy of the initial node pointer so that as the program iterates through the nodes it knows where it started.

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

Maybe calculateAvailableUnits() need to round the return value to 2 or 3 decimal places so that it will return 30.00. The problem you are describing in the comparisons will most likely show its ugly head up in other places in your program too.

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

The correct code you want is here. You probably made a mistake copying the code. Or you did not include the correct header files #include <wx/wxprec.h>

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

lines 37 and 43: the friend functions need to return a value. Your compiler probably gave you a warning on this and you just ignored it.

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

My guess is the problem is the :

wxLegendWindow::wxLegendWindow( wxWindow *parent) ; // <<<< replace the colon
wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH,LEGEND_HEIGHT)) m_WinParent(parent);

Another possibility is that there are too many )

wxLegendWindow::wxLegendWindow( wxWindow *parent, 
wxWindow(parent, -1, wxDefaultPosition, wxSize(LEGEND_WIDTH,LEGEND_HEIGHT), m_WinParent(parent));

\

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

class nopdeType is expecting an integer, not a data type. Example: nodeType *n = new nodeType(5);

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

The longest book in the world only has 1400 pages. Instead of one 6,000 page book maybe he should write 20 300-page books.

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

its p+p[3]-p[1],not p+p[3]+p[1],hence 2011 is the output...

Not possible.

p[3] == '2' == 50 (see any ascii chart for values)

p[1] == 'a' == 97

Therefore: 50 - 97 == -47, which is a negative value, so the result of p+p[3]-p[1] == 47 bytes before p.

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

>>Also on a side note what part of the memory is the realtime screen data stored

Depends on what operating system you are talking about. MS-DOS Version 6.X and older was stored at address 0x8000:0000, and graphics memory at 0xA000:0000 (or something like that, I'm recalling from over 20 years ago). Screen memory for modern operating systems such as MS-Windows and *nix is not at any fixed location, your program has to call os-specific functions to address screen and graphics. And modern graphics so complex that no one in his/her right mind would try to do it in pure assembly.

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

Sometimes the comma just acts as a separator instead of an operator. See this wiki article for more details

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

I don't know if this will work for you or not, but here is a suggestion

update account
set byprice = byprice * 2
where byprice < 20

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

>> Compared the values (e.g. if A = 10 then replace it with the letter of the alphabet that has the highest frequency

Huh?? The English alphabet does not have a frequency other than 1, e.g. ABCD...

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

where is the C++ code?

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

..Someone should have told me that there is an issue with strtok and strcat..

There are issues with almost all standard C functions, not just those two.

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

Check out this Youtube video

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

Your program is writing the file in binary mode so you can't open it with a text editor such as Notepad.exe.

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

we already told you how to fix that problem. Go back and read previous posts.

>>Using new same error happens :
The code you posted is the same as your original code, so you made no changes at all.

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

>>.can someone help me going with this coding?

Yes, we can help, but we're not going to write it for you.

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

Change the packing factor to 1 and the alignment problem will go away. #pragma pack(1) will not put holes in the structure. The pragma is compiler dependent, some compilers may do it differently.

#pragma pack(1)
// your structure goes here
#pragma pack() // revert to default
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Lots of different causes, one being your program may have scribbled something all over memory and damaged vector's memory space. Another problem could be bad use of pointers. Without knowing more details about the program its not possible to give you any really good answers to your question.

One way to debug the program is to start commenting out sections of the code until the assertion failure goes away. That will let you narrow down the problem.

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

Unlike C, C++ requires you to typecast the return value of functions that return void*, like malloc().

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

Do you have a question, or are you just posting your awesome code?

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

Sorry buddy,im not yelling...

I meant to say "I figured all spammers come from the USA"

Very few of them do.

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

but i am just a beginner in C++.. thats why i use it.

Use a modern compiler such as Code::Blocks so that you can learn how to write c++ programs correctly. Would you try to learn how to repair 2011 model automobils by using a 1920 Ford? Of course not! So why use a 1980 compiler to write 2011 programs on 2011 operating systems?

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

You can not just arbitrarily remove __stdcall from the function prototypes because the DLL was compiled to use it. __stdcall is one of 5 calling conventions used by Microsoft (and probably others too) compilers. Here is a more in-depth thread about it.

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

The best C++ compiler is Borland Turbo C++. .

Only if you are 10 years old or younger. No adult would think of using that compiler any more for anything other than a toy to play with.