Advertisement

Microsoft Inferior C++

Started by January 01, 2003 04:50 PM
7 comments, last by Optimus 21 years, 10 months ago
Hi, I want to use MSVC++ for making DirectX stuff, but I cant figure out how. I have the new DX9SDK from the msdn, and installed it. If I run a .dsp file from one of the examples or tutorial, it compiles without one problem. But if I make a new project, CopyPaste the code from one of the examples in to it, include the linker options with it, it doesnt work. Why ? What options am I missing ? This problem does not only occur with DirectX I wanna make good stuff, some help I can use, thx Nothing and all, by some meaning, no difference
Nothing and all, by some meaning, no difference
1. Don''t blame Microsoft for your own mistakes.
2. Saying "it doesn''t work" is not at all useful. We need to know exactly what went wrong. Do you get compiler errors? Is the output incorrect?
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Advertisement
1 I dont blame Microsoft for my mistakes and I don''t know where you get that info, I just dont like msvc, my opinion, so please don''t return on that. And I am not making mistakes, I am forgetting something I should do, my question is what
2 I get errors like this
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/asdadsas.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

But, if you are an experienced msvc programmer you should have no problem answering me
It is bullshit to ask me to tell you exact stuff.
I gave you this info, I copy source code from one project into a new. I copy the linker options.
It does not compile, WHY
If you cant answer this question, don''t botter to answer, because what U just said is absolutely no use to me.


Nothing and all, by some meaning, no difference
Nothing and all, by some meaning, no difference
You made a new "console application" project rather than a windows GUI-based one when you went on "new project".

Note: "It is bullshit to ask me to tell you exact stuff." - nay!

Toodles
Well, you are using DirectX9.0, I believe it only works in .net, at least that''s true for Visual Basic, I do not know about C++.

Check to make sure you set up the dependencies correctly...

Also set ur screen res high (like 1600x1200) and setup the sample project and your project right next to each other and go through everything to see what is different, and if you see something odd, change it...

And stop being so rude, the nicer you are, the better chance you have of people answering your question.

oh, and I am starting to think the above poster is right, ...excuse me for a second...

<- Digital Explosions ->
"Discipline is my sword, faith is my shield
do not dive into uncertainty, and you may live to reap the rewards" - (Unreal Championship)
kiern is correct; You made a console project instead of a win32 application.

quote: It is bullshit to ask me to tell you exact stuff.


Without you further explaining the error you got kiern or I wouldn't have been able to tell you how to solve the problem. Console applications need an entry point e.g int main()

[edited by - ph33r on January 1, 2003 6:27:03 PM]
Advertisement
quote: Original post by Optimus
1 I dont blame Microsoft for my mistakes and I don''t know where you get that info,

A thread title such as ''Microsoft Inferior C++'' just might be sending the wrong message ...
quote:
2 I get errors like this
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/asdadsas.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

quote:
But, if you are an experienced msvc programmer you should have no problem answering me
It is bullshit to ask me to tell you exact stuff.

Oh the irony. The ''exact stuff'' that you just listed above is precisely the information we need to help fix your problem. And no programmer, no matter how experienced, can help you fix your problems if you don''t tell us what they are. We can''t read minds.
quote:
I gave you this info, I copy source code from one project into a new. I copy the linker options.
It does not compile, WHY
If you cant answer this question, don''t botter to answer, because what U just said is absolutely no use to me

Just to emphasize that point again, saying "It does not compile" is of absolutely no use to those of us who are trying to help you fix the problem.

That said, kieren_j just gave you the answer.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
You are relatively new to these forums, so I assume you simply have not had a chance to learn how we treat each other. No one gets paid to answer questions. If you insult and attack the people trying to help you will quickly find that no one will be interested in helping you at all.

quote: Original post by Optimus
1 I dont blame Microsoft for my mistakes and I don''t know where you get that info, I just dont like msvc, my opinion, so please don''t return on that.


Your choice of subject, "Microsoft Inferior C++", suggests to most people reading the thread that you believe the compiler is at fault, rather than yourself.

quote: Original post by Optimus
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/asdadsas.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

But, if you are an experienced msvc programmer you should have no problem answering me
It is bullshit to ask me to tell you exact stuff.

That kind information is exactly what is needed to answer your question. Based on the vague description given in your first post I could only narrow it down to a few hundred possible problems, and not many people here are interested in playing 20 questions just because you can''t be bothered to help us help you. You need to understand that compilers and computers are complex things, with many "moving parts". Would you be able to tell me what''s wrong with my car if I said "I turn the key, but it doesn''t do anything"?

quote: Original post by Optimus
If you cant answer this question, don''t botter to answer, because what U just said is absolutely no use to me.

Again, learn to have a little respect for the people helping you voluntarily.

Now, if you are interested in attacking me too please use email rather than disrupting this forum, otherwise you''ll find out what those funny colored letters beside my name are all about.


BTW, thank you to the regular members who chose to assist despite the poor attiude of the OP, and who remained level headed enough not to flame back.
People, forgive me.
First off all thank you for the help!
It works with Visual C++, I have .NET but its even worse then VC++ to me.
I have got it running now and I can start messing arround with DirectX.

But let me explain myself a little.
I want to program with DirectX, I want this very much.
Not being able to do this is frustrating, and does not make you nice. Especially if you had some good drinks to drink at newyears evening.
Why I was annoyed by him, my question is clear to me, ofcourse because I asked the question. So maybe he dissagreed with my topic and hes annoyed by those people who talk shit over microsoft, while microsoft is good, not evil. Money is good, not evil. Here is no operating system better than microsoft. Thats my opinion. Tried Linux.. Also DirectX is the best.
Maybe because he dissagreed he refused to help me.
This is what I thought and thats why his return annoyed me.

Again, forgive me being rude, its just who I am! :D
not









Nothing and all, by some meaning, no difference
Nothing and all, by some meaning, no difference

This topic is closed to new replies.

Advertisement