Jump to content

Visual studio win32 problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
Hi

i tryed to start using Visual Studio 2008 (professional edition) instead of dev c++ but got problems right away.
when starting a new project it starts out with a complete window that works running, but when i try change or add even the smallest thing its "error everywhere". the weirdest thing is that dev will run everything i write without problems, from the simplest msgbox
#include <windows.h>


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 

    LPSTR lpCmdLine, int nCmdShow)

{

	MessageBox(NULL, "Hello Codecall", "Title", MB_OK);


    return 0;

}
or when i start out from the premade code i let me change Background color adding menus, popupobjects without problem, and visual just say "you cant do that" over and over again.
have looked at guides especially for VS, but still same problem.
and no i havent forgotten the header imports at top:
#include "stdafx.h"
#include "Swin32.h"
#include <windows.h>
need sugestions/guides on what vs does accept and maybe a simple example of a program thats vs accepts.

Any help is appreciated thanks

Acw

#2
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
You need to post the errors that you are getting.

#3
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
got i solved, the problem was all the precompilled headers that was imported at start, made empthy project and it worked.
thanks to the user "carly" for directing me to a newsgroup for win32 where i could find the answer :)

Edited by acwclassic, 08 September 2008 - 10:50 AM.