Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RyoxSinfar

Got Win32 Now need DirectX to work. (updated title)

This topic is 5232 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Lol, here I am attempting to learn the languages (or atleast part, (must beat out my friend's java pong)) and I can't seem to get Win32 programs to compile, (nor do I know how to properly install the DirectX SDK ) could someone enlighten me on these? I see throu the directories that it has some things and Win32 in an option box so I had thought it was ready, but it keeps giving me a unresolved link error about wanting a regular main function. Since non of the tutorials I got has a main function I am thinking its something on my part (you can compile and build/run off of the Visual Studio for both right?). Any help appreciated! Allow me to drive a friend of mine face first into his own smugness! [edited by - RyoxSinfar on March 19, 2004 11:37:58 AM]

Share this post


Link to post
Share on other sites
Advertisement
When you create a new project, if you create a console application, it will expect a main() function. However, if you create a new Windows application, it will look for a WinMain() function. So you probably need to simply create a new project, and make sure it is a Windows Application, not a Windows Console Application.


int Agony() { return *((int*)0); }    Mwahaha... >8)

Share this post


Link to post
Share on other sites
its .cpp if thats what ya mean? Its not executable (the exe that came with does work thou)

(just tried puting in a main, yeah it just gave me press any key to continue (notta happened)

[edited by - RyoxSinfar on March 18, 2004 11:49:08 AM]

Share this post


Link to post
Share on other sites
Well if you''re trying to compile and link a Win32 program then you need the main function (unless of course you''re making a library, which I''m guessing you''re not).

Maybe you should try out the tutorials at DrunkenHyena which uses DirectX.

Under all circumstances do you need a main function (or WinMain depending on project).



Human beings, by changing the inner attitudes of their minds, can change the outer aspects of their lives.

William James (1842 - 1910)

Share this post


Link to post
Share on other sites
It has the WinMain (replacement main as I said), but it wants main?

tried making it exe and it didn't work I am using 6.0...

[edited by - RyoxSinfar on March 18, 2004 11:50:48 AM]

Share this post


Link to post
Share on other sites
If it has WinMain you should compile it as a Win32 application NOT a console application.



Human beings, by changing the inner attitudes of their minds, can change the outer aspects of their lives.

William James (1842 - 1910)

[edited by - rohde on March 18, 2004 11:53:08 AM]

Share this post


Link to post
Share on other sites
... and what do I need to do that (I havn''t had tha kinda experience yet, I havn''t done more than headers and .cpp (but I have worked in threading and etc... )

Share this post


Link to post
Share on other sites
If you have WinMain() then in VS when you create a new project, you need to select the project type that says "Win32 Application". If you are using main(), select the type that says "Win32 Console Application".

Tadd
- WarbleWare

Share this post


Link to post
Share on other sites
Okay I did that then opened the basic window tutorial I had but it would not run. I also tried opening the .exe file but it gave me the source and no option to compile or build, only run.

Quick walkthrou on how to open the tut then compile and run it maybe? (gone for a few hours

[edited by - RyoxSinfar on March 18, 2004 12:05:41 PM]

Share this post


Link to post
Share on other sites
Searching should provide some help.
I just glanced at some of those results, but there should be some guides that will walk you through it (I think #9 looked good).

Tadd
- WarbleWare

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!