Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Small basic - detecting virus


  • Please log in to reply

#1
Litbulb

Litbulb

    New Member

  • Member
  • Pip
  • 1 posts

So, in school, I'm am using small basic to write code for a game, and it all runs fine, except when I use program to show a hint

(Sub Hint
  graphicswindow.height = 400
  graphicswindow.width = 400
  graphicswindow.show()
  graphicswindow.drawresizedimage(Image[counter],50,50,300,300)
  Program.Delay(2500)
  GraphicsWindow.Hide()
  Game() 
EndSub)

​ Trend Micro| Alerts - OfficeScan detects a virus, rendering my game unplayable

​when I had taken "Image[counter]" out of the file, the game runs fine, but I tested using .jpg files, and .png files, using the actual pictures(in one file, the pictures are in the same location as the rest of the files), and also using random pictures(in a different folder, the pictures are in the same location as the rest of the files), so my computer thinks there is a virus on the game, when there is not, I don't think the pictures are the problem, or the code, but I don't know what the problem is, I am looking for help to solve this problem, so that I can continue with my studies
 


  • 0

Advertisements


#2
AlexanderRoz

AlexanderRoz

    Member

  • Member
  • PipPip
  • 11 posts

Hi LitBulb (and Welcome to Geeks To Go!)

My first piece of advice is to approach your teacher and ask for assistance. If it's not something they can solve, they should escalate it to school IT. We will not tamper with your school's security software, for any reason.

First, just a small note about good coding habits. Keep the formatting the same through your code. Most languages that you will use in life (Java, C, SQL) are case-sensitive. For example, your method "drawresizedimage()" in Java would actually be "drawResizedImage()". Standards change from person to person, language to language. You can read about Microsoft's C# convention here.

I'm assuming that image[counter] is some form of string array with file names? (Where counter is the position in the array.)

In other words:

image[0] = "image1.jpg"
image[1] = "image2.jpg"

Just out of distinct curiosity (and I know this will cause the image not to show) what happens if you comment out the Program.Delay(2500) line? Eg: 'Program.Delay(2500). Just to be clear, you tried using the individual filenames, in lieu of the array right -- graphicswindow.drawresizedimage(image1.jpg,50,50,300,300)? (And TrendMicro still detected the software?) 


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP