maj3091's Profile User Rating: *****

Reputation: 319 Architect
Group:
Expert
Active Posts:
1,906 (0.76 per day)
Joined:
26-March 09
Profile Views:
26,842
Last Active:
User is offline Yesterday, 03:42 PM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Expert In:
VB6

Latest Visitors

Icon   maj3091 has not set their status

Posts I've Made

  1. In Topic: Delay Loop

    Posted 18 Jan 2016

    Just had a quick look at your code (so maybe I missed it) and I don't see where you reset the TimerCount variable back to 20?

    You set it to 0 when you disable it, then start it again. The first thing the timer event does is decrement the variable and you only check for when the count is equal to zero.

    Setting it back to 20 when you start the timer could solve the issue for you.
  2. In Topic: No results after entering score

    Posted 15 Jan 2016

    View Postandrewsw, on 15 January 2016 - 12:15 PM, said:

    View Postmaj3091, on 15 January 2016 - 08:15 AM, said:

    If this is .Net (I'm not so familiar with VB.Net), then you may have to use the equivalent Convert.ToString or the .ToString method of the variable itself testScore.ToString()

    Hope that helps.

    CStr() is still there in VB.NET.

    You should use the ampersand & to concatenate, to join, strings, not the plus sign; just use the plus sign for addition.


    Thanks for clarifying that Andrew. I jumped from VB6 to C# and never looked at VB.Net, so I wasn't sure.
  3. In Topic: No results after entering score

    Posted 15 Jan 2016

    I can't say I've ever done a console app in VB6, but looking at the error and line 53, it looks as though it's because your variable testScore is an integer and you're trying to write it out to the console, which would expect a string.

    The error is telling you that you need to "cast" it to another type, so if this is VB6, if you wrap the variable with the CStr function as below, it should work.

    Console.WriteLine("Test Score " + Cstr(testScore))
    


    If this is .Net (I'm not so familiar with VB.Net), then you may have to use the equivalent Convert.ToString or the .ToString method of the variable itself testScore.ToString()

    Hope that helps.
  4. In Topic: App shows as ~1.exe in Task Manager

    Posted 13 Jan 2016

    Thanks, I already did that on my test VM and it did resolve the issue for me, but the customer was reluctant to let me change it "in case it affected something else".

    In the end, I had no option but to rebuild my exe with an 8.3 compliant filename, which did resolve the issue.

    Thanks again for taking the time to answer.
  5. In Topic: App shows as ~1.exe in Task Manager

    Posted 13 Jan 2016

    Thanks, I understand how the 8.3 filenaming works, but this is slightly different, as when installed on another machine, the file appears correctly in task manager.

    Also, the filename itself shows as the correct long filename in the filesystem, it appears to be related to the Registration of the file (Self-register option in WISE).

    I'm trying to figure out where the OS has this 8.3 format stored as it's not in the registry.

My Information

Member Title:
D.I.C Lover
Age:
44 years old
Birthday:
June 12, 1971
Gender:
Programming Languages:
C#, VB

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    Coulee Icon

    02 Feb 2012 - 19:29
    Hi,I found your post Compiling on Win7x64 SP1 gives ADO Issue on XP....http://www.dreamincode.net/forums/topic/221024-compiling-on-win7x64-sp1-gives-ado-issue-on-xp/
    I met the same problem,can you help.
    I will really really appreciate it
  2. Photo

    maj3091 Icon

    20 Dec 2011 - 01:32
    Thanks raziel_, I didn't realise what you meant at first! I was hoping you knew my boss at work! :)
  3. Photo

    raziel_ Icon

    19 Dec 2011 - 09:24
    gratz on the promotion man :)
Page 1 of 1