DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier
DX7 - Invalid Qualifier DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
Go Back  Xtreme Visual Basic Talk > > > > DX7 - Invalid Qualifier


Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2009, 05:17 AM
AkselJ AkselJ is offline
Newcomer
 
Join Date: Dec 2009
Location: Norway
Posts: 20
Default DX7 - Invalid Qualifier


When I run my program, then enter my game I get Compile Error - Invalid qualifier.

Code:
Public Sub BltInventory()
Dim i As Long
Dim rec As DxVBLib.RECT
Dim rec_pos As DxVBLib.RECT

    If frmInventory.picVisInv.Visible Then
        frmInventory.picVisInv.Cls
        
        For i = 1 To MAX_INV
            If GetPlayerInvItemNum(MyIndex, i) > 0 And GetPlayerInvItemNum(MyIndex, i) <= MAX_ITEMS Then
                With rec
                    .Top = Item(GetPlayerInvItemNum(MyIndex, i)).Pic * PIC_Y
                    .Bottom = .Top + PIC_Y
                    .Left = 0
                    .Right = .Left + PIC_X
                End With
                
                With rec_pos
                    .Top = InvY + ((InvOffsetY + 32) * ((i - 1) \ 4))
                    .Bottom = .Top + PIC_Y
                    .Left = InvX + ((InvOffsetX + 32) * (((i - 1) Mod 4)))
                    .Right = .Left + PIC_X
                End With
                
                Call DDS_Item.BltToDC(frmInventory.picVisInv.hDC, rec, rec_pos)
                
            End If
        Next i
        
        frmInventory.picVisInv.Refresh
    End If
End Sub
It marks DDS_Item.

Any ideas? DDS_Item.BltToDC works fine everywhere else...
Reply With Quote
  #2  
Old 12-20-2009, 06:11 AM
Iceplug's Avatar
IceplugDX7 - Invalid Qualifier Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Right-click on DDS_Item and go to definition. Where does Go To Definition take you?
Ensure that it does not take you to a definition of something that wouldn't contain the .BltToDC method.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #3  
Old 12-27-2009, 03:49 PM
AkselJ AkselJ is offline
Newcomer
 
Join Date: Dec 2009
Location: Norway
Posts: 20
Default

Just takes me to its declare.

Code:
Public DDS_Item() As DD_BufferRec
Reply With Quote
  #4  
Old 12-27-2009, 05:21 PM
Iceplug's Avatar
IceplugDX7 - Invalid Qualifier Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

I'm not sure, but I don't think you'd have DDS_Item declared as an array for .BltToDC to work properly.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #5  
Old 12-27-2009, 07:13 PM
AkselJ AkselJ is offline
Newcomer
 
Join Date: Dec 2009
Location: Norway
Posts: 20
Default

Well as said, it works perfectly elsewhere.
Reply With Quote
  #6  
Old 12-30-2009, 01:51 PM
Iceplug's Avatar
IceplugDX7 - Invalid Qualifier Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

The error comes from having a declared variable name conflicting with another variable of the same name and then accessing the wrong variable property. Go through your code carefully and verify that you do not have two things called DDS_Item (look through all your modules and your forms, not just the current one)
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #7  
Old 01-09-2010, 10:07 PM
jedifuk jedifuk is offline
Newcomer
 
Join Date: Jul 2005
Posts: 2
Default

use ctrl+f to search the string with search project criteria checked
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
 
DX7 - Invalid Qualifier
DX7 - Invalid Qualifier
 
-->