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

The third line should be W2->Show(); -- needs the parentheses.

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

managed c++ does not use new -- it uses gcnew. And you have to make W2 a pointer. The braces are unnecessary.

Window2^ W2;
               W2 = gcnew Window2;
               W2->Show;
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

what compiler and operating system are you using?

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

Everything you need to know is in that article. Download and run the example c++ or .net program to see what it does.

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

>>I just discovered that it says right on my assignment that I am not able to be assisted by anyone

You poor boy -- you should have read that before posting here. Next time learn to follow instructions.

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

try declaring the arrazys globally, outside any function.

And its int main(), never void main()

#include <iostream>

const int size=85020;

int b[size];

char c[size];


float f[size];


int main()
{

   std::cin.get();
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Those numbers are the data types. They should be defined in one of the header files you have to include in your program. Here is a complete list.

kvprajapati commented: Hi! Happy New Year! Sir. :) +11
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Will not make any new years resolutions.

jember commented: hahaha! Nice one! xD +0
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

You probably got no responses because no one knows what the hell you are talking about. Don't assume everyone knows what those acronyms mean, such as KPO, "HCL BPO" and "B.Tech. in Computer Science".


You should also mention what country you live in. This is the net and for all we know you might be living at the North Pole with Santa Clause.

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

The linker puts all the *.obj and *.lib files together to make the *.exe file. You don't normally have to use it yourself -- IDEs such as Dev-C++, Code::Blocks and VC++ will call the linker for you. You only have to be concerned about linkers if you compile from command-line without use of an IDE.

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

In Dev create a c++ project then just add all the *.c and *.cpp files to it that you want. Dev-C++ will do all the rest for you, you don't have to do a thing.

But I would suggest you replace Dev-C++ with Code::Blocks because Dev-C++ is old and has not been updated for quite a few years not.

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

Happy New Year -- we still have 2 hours to go :) Years ago when I was a young lad it was fun to stay up at night and watch all the parties on TV. They don't do that any more, it's so boring now.

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

Don't know -- never tried it. You may not be able to extract just one file from a cab unless that's the only file in it.

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

Here are some links you will need to study.

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

Oops :) Click CONTROL PANEL link at the top of the page and look to see that all the info you entered is there.

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

Find info here about std::fixed. google is your good programming buddy, learn to use it.

#include <iostream>
#include <cmath>

int main()
{
   double x = pow(10.0,10.0);
   std::cout << std::fixed << x << '\n';
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

If you google "PlaySound c++" you will get several threads that show you how to do that, such as this one. You will need to create another thread to play the music so that the main part of the program can continue to run normally

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

Impossible. cab files are used for installation programs such as InstallShield. Your idea of an all-in-one is not workable because the program would have to be extracted every time someone wants to use it, and that would be very very slow.

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

what do you want to do with that file?

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

cout << fixed << x

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

I would suspect one of the header files in your program contains a reference to that lib which causes the compiler to try and link with it.

Did you read the system requirements from here?

According to that link it may not be compatible with Vista or Windows because it only mentions 98, 2000 and XP. And the link from Source Forge was last modified in 2007.

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

You could do it all in one query SELECT cq_rebirth.*, cq_action.* from cq_rebirth cq_action But that may not work if there are column names that occur in two or more tables. It might also produce a very very huge result set with many NULL columns for any given row. It would be far better to execute the queries individually as previously suggested.

You could write a function that executes a query and puts the results into a vector that can be used by other parts of the program.

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

You keep pencils in a beerstein? Germany and myself are appalled.

Yes -- its a pretty small beerstein.

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

>>answer immediately please

Demanding immediate response is considered a very rude comment, which is probably the reason you got a negative rep for your post.

Nick Evan commented: It is indeed. +16
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The only knick-knack I keep is my wife :) although I did have a beerstein to keep pencils etc in.

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

Are you writing an MFC program? afxres.h is a resource file for MFC programs. You can't compile MFC programs with the Express version of VC++.

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

Sorry, no I didn't notice that. My error.

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

argvw is nothing more than a pointer and pointers don't have methods. If you want to find the length of the string then call wcslen(argvw), which is the UNICODE version of strlen()

>>argvw->c_str(),
Same problem as above -- you are attempting to treat a poointer as if it were std::string class. Doesn't work like that.

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

Maybe, and maybe not. Depends on the class. The compiler will generate a default copy constructor which copies only POD (Plain Old Data)-- contents of pointers and STL containers are not copied.

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

Would have to see the C code but most likely the -16 is allocating 16 bytes on the stack for local variables, such as four 4-byte integers.

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

If you are using Turbo C then most likely delay() is in dos.h. But if you are using a modern compiler then there is no such function. MS-Windows has a Sleep() function and *nix has sleep().

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

Thank you.

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

When you create a new project with vc++ the IDE will generate the stdafx.h header file for you. The contents of stdafx.h will depend on the kind of project you created. If you copied stdafx.h from somewhere else such as from a site on the internet then most likely it will contain the wrong stuff.

Here is a link you want to read so that you can get started using the compiler/IDE Read the Getting Started thread first.

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

You are allocating memory for the structure, but not for name element of that structure and that's why fscanf() doesn't work.

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

I can't help you because I never used that function. Since it's a C function then your assembly program calls it just like any other C function. You have to be intimately familar with the operating system for which you are programming.

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

System::String does not have a method called get_Length() -- Look up the methods available to that class and you will see that its a property (int) named String.

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

Will you please put this back as a sticky? Its very useful thread that I post links to quite frequently here and at other forums that I visit.

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

Your question how to convert String^ to TCHAR is answered in the very first link that I gave you. Don't be so quick to dismiss google.

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

Using pointers as in my example won't work. How is the data going to be transferred to another system (computer)? Maybe vectors isn't the best way to do that.

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

Yes, the vector can hold items of random data types

#include <vector>
#include <string>

int main()
{
    int a = 0;
    float b = 1.2F;
    std::string hello = "Hello";
    std::vector<void*> list;
    list.push_back(&a);
    list.push_back(&b);
    list.push_back(&hello);
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I wish I had not drunk quite so much beer over the weekend. Oh boy, does my head know about it this morning.

That said, it would have been rude not to use the pint glass that my son had bought me as present. It has the Spitfire logo on the front (my favourite beer) with 'Goering, Goering, Gone...' etched onto the back. Arf!

You could have used it as a flower pot.

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

when line 25 returns NULL then line 26 is going to cause a lot of grief. You need an if statement between those two lines.

if( (start = strchr(line,'$')) != NULL)
{
   // blabla
}
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

So what does your homework asignment have to do with converting cout to printf()?

You will need to extract each digit of the number and then print only that digit. The mod operator % and divide / will help you do that. The mod operator returns the remainder after division, so if the number is 1234 then 1234 % 10 will give you the 4. Next divide 1234 by 10 to make the number ready to retrieve the nedxt digit -- 3. Repeat that process in a loop until all digits have been extracted and printed.

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

what's the problem?? If you know what cout does then it's pretty simple to convert it to printf().

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

maybe this will help you

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

1. name must be defined in maiun(). Since the constructor of MyClass expects a std::satring then declare std::string name in main()

2. Remove the parentheses in the macro

3. There is no point in using that macro other than as an educational tool.

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

Since this is managed c++ you must be using VC++. Use your compiler's debugger to find out when the value of the global changes. Either get_energy_liver_calf() is gbetting called before the value of global is set, or something else is changing it.

You might also surround global with a namespace of your choice to make sure there is no possibility of name clashes.