Jump to content
  • Advertisement

Archived

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

FenixRoA

BEGINNER NEEDS HELP!!!

This topic is 5224 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

My code is as follows: Private Structure Slide Private Surf As DirectX.DirectDraw.Surface Public Sub New(ByRef FilNam As String, ByRef Height As Integer, ByRef Width As Integer, ByRef DDevice As DirectX.DirectDraw.Device) Dim Desc As New DirectX.DirectDraw.SurfaceDescription() Desc.SurfaceCaps.Alpha = True Desc.SurfaceCaps.OffScreenPlain = True Desc.Height = Height Desc.Width = Width ''put in a try Surf = New DirectX.DirectDraw.Surface(System.Windows.Forms.Application.StartupPath + "\graphics\" + FilNam, Desc, DDevice) Desc = Nothing End Sub End Structure The line Surf = New DirectX.DirectDraw.Surface(System.Windows.Forms.Application.StartupPath + "\graphics\" + FilNam, Desc, DDevice) returns an exception with a description that goes like this: An unhandled exception of type ''System.ArgumentException'' occurred in microsoft.directx.directdraw.dll Additional Information: Value does not fall within expected range. Please help out a noob to game programming! Thanks for your time and consideration

Share this post


Link to post
Share on other sites
Advertisement
try copying your source code and put source brackets around it around it....makes it easier for everybody

[edited by - redrabbit on June 3, 2004 1:07:33 AM]

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!