PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Stupid First Project.. I'm a definate newby.. and loving it.  (Read 238 times)

Marc van Cauwenberghe

  • Senior Member
  • ***
  • Posts: 339
  • Vista Home Premium sp2
Stupid First Project.. I'm a definate newby.. and loving it.
« on: April 10, 2007, 04:52:49 PM »

OK I create my first project and get a compile error...
I bet this is a real simple one.. too.....
The error is totally screwy since this include statement is not even close to a sample project..

This excerpt is from my project include *.inc file...

I even deleted the .inc file and it recreated it again...

   'Determine if the Class already exists. If it does not, then create the class.
   
    szClassName       = "XPDEPLOY2_FORM1"

    If GetClassInfoEx(App.hInstance, szClassName, wce) = 0 Then
        wce.cbSize        = SizeOf(wce)

        wce.STYLE         = %Form1 ***** ERROR HERE *****


        wce.lpfnWndProc   = CodePtr(FORM1_FORMPROCEDURE)
        wce.cbClsExtra    = 0
        wce.cbWndExtra    = 0
        wce.hInstance     = App.hInstance
        wce.hIcon         = LoadImage(App.hInstance, "AAAAA_APPICON", %IMAGE_ICON, 32, 32, %LR_SHARED)
        wce.hCursor       = LoadCursor(%Null, ByVal %IDC_ARROW)
        wce.hbrBackground = %COLOR_BTNFACE + 1
        wce.lpszMenuName  = %Null
        wce.lpszClassName = VarPtr(szClassName)
        wce.hIconSm       = LoadImage(App.hInstance, "AAAAA_APPICON", %IMAGE_ICON, 16, 16, %LR_SHARED)
   
        RegisterClassEx wce         
    End If   
   
Logged

Marc van Cauwenberghe

  • Senior Member
  • ***
  • Posts: 339
  • Vista Home Premium sp2
Re: Stupid First Project.. I'm a definate newby.. and loving it.
« Reply #1 on: April 10, 2007, 04:56:04 PM »

I fixed it by selecting form properties...  wonder how they got screwed up...  couldn't have been me.... I'm too new do anything
that would cause a problem...
Logged