Over 1 million tech questions and answers.

What is the problem in my C# code??

Q: What is the problem in my C# code??

I have written the following code to the exercise question given at the end of the book from which I'm learning C#.. However, my code gives me an error and I'm not able to find the reason. Can someone please review the code and mention the problem area


Code:
///summary
///Write a program, which creates an array containing all Latin letters.
///The user inputs a word from the console and as result the program
///prints to the console the indices of the characters matching array
static void Main()
{
char ch = 'A';
char[] alph = new char[26];
for (int row = 0; row < 26; row++)
{
alph[row] = ch;
ch++;
}
for (int row = 0; row < 26; row++)
{
Console.Write(alph[row] + " ");
}
Console.WriteLine();
Console.Write("Enter word: ");
string word = Console.ReadLine();
string wordUpper = word.ToUpper();
int wrdIdx = 0;
for (int i = 0; true; i++)
{
if (wordUpper[wrdIdx] == alph[i]) //If below if is removed then this gives as error. Same error of overflow
{
Console.Write(i + " ");
wrdIdx++;
i = 0;
if (wordUpper[wrdIdx] == wordUpper.Length - 1) //This line is giving error if i remove it then the error shows above in the IF statement.
break;
}
}
}

This is the output and error message that I get:


Code:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Enter word: mohit
12 14 7 8 19
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.String.get_Chars(Int32 index)
at Revision.Program.Main(String[] args) in C:\Users\mohit\source\Revision\Revision\Program.cs:line 644
What I have tried:

Tried to debug the code. But as I'm a beginner so not able to understand whats going on in the debugger.

I request to please provide a very basic answer without using anything external from what I have written. As i dont know much about other functionalities provided by the various classes and methods. Please try to correct only the current code.

Please also excuse me for my English.

Thanks in advance.

RELEVANCY SCORE 200
Preferred Solution: What is the problem in my C# code??

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: What is the problem in my C# code??

I did a little update to the code to include Index at the top. New code is:

Code:
char ch = 'A';
char[] alph = new char[26];
for (int row = 0; row < 26; row++)
{
alph[row] = ch;
ch++;
}
for (int numIdx = 00; numIdx < 26; numIdx++)
{
Console.Write(numIdx + " ");
}
Console.WriteLine();
for (int row = 0; row < 26; row++)
{
if (row < 10)
{
Console.Write(alph[row] + " ");
}
else
{
Console.Write(alph[row] + " ");
}
}
Console.WriteLine();
Console.Write("Enter word: ");
string word = Console.ReadLine();
string wordUpper = word.ToUpper();
int wrdIdx = 0;
for (int i = 0; true; i++)
{
if (wordUpper[wrdIdx] == alph[i])
{
Console.Write(i + " ");
wrdIdx++;
i = 0;
if (wordUpper[wrdIdx] == wordUpper.Length - 1)
break;
}
}

Read other 1 answers
RELEVANCY SCORE 41.6

Basicaly the title explain it all,can find the driver for on board audio device.
I just buy a second hand MBO.It is MSI Neo 4 H,MS-7125 Ver:3,Bios ver. V5.3 072106
Newly instaled Windovs 7 Ultima 64bits.
Trayed few diferent drivers non of them works,so probably is audio device gone.
Any sugestions?

Read other answers
RELEVANCY SCORE 41.6

I am completely stumped by this problem. I will do my best to explain it and see what you fine folks can do.

I had an older bluetooth dongle, off-brand model, 2010-2011 year, that I installed on my new desktop computer. It worked, but sound quality on my Sony Dr-BT101 headset wasn't great. It worked well with my bluetooth-enabled phones and tablets, so I suspected the dongle. I bought a CSR8510 dongle, which came with a CSR Cambridge Radio Harmony software stack. I installed the software, and turned on the headset, paired it, but no sound came out of the headset. I went to Sound, saw no entries. Went to device managers and saw the parts in yellow. I tried to update the driver but all I got was Code 18 error and this weird message in the picture. I clicked on properties and saw this message.





Quote:
The drivers for this device are not installed. (Code 28)

There is no driver selected for the device information set or element.




I am stumped. I've tried uninstalling, re-installing, installing other Bluetooth drivers, waving a magic wand, none of it has worked. I'm thinking it's a problem with the Registry, but I am not sure how to proceed.

Any ideas?

A:Bizarre Bluetooth driver problem (Code 18 and Code 28 error)

Give this a try. It's free.
https://www.slimwareutilities.com/slimdrivers.php
You do need to resolve those Other devices category issues.

Read other 1 answers
RELEVANCY SCORE 33.2

new to forum code 38 on keyboard properties tried 2 usb think it might be the root virus can some one look at hjt log forme plz thank you for ur time
Logfile of Trend Micro HijackThis v2.0.2
Scan saved at 18:27:18, on 27/08/2010
Platform: Windows Vista SP2 (WinNT 6.00.1906)
MSIE: Internet Explorer v8.00 (8.00.6001.18928)
Boot mode: Normal

Running processes:
C:\Windows\system32\Dwm.exe
C:\Windows\Explorer.EXE
C:\Windows\system32\taskeng.exe
C:\Windows\RtHDVCpl.exe
C:\Program Files\Intel\Intel Matrix Storage Manager\IAAnotif.exe
C:\Program Files\Common Files\Intel\IntelDH\NMS\Support\IntelHCTAgent.exe
C:\Program Files\Intel\IntelDH\CCU\CCU_TrayIcon.exe
C:\Program Files\Common Files\Roxio Shared\9.0\SharedCOM\RoxWatchTray9.exe
C:\Program Files\CyberLink\MagicSports\Kernel\MagicSports\MSPMirage.exe
C:\Program Files\Microsoft Windows OneCare Live\winssnotify.exe
C:\Program Files\Alwil Software\Avast4\ashDisp.exe
C:\Program Files\Common Files\Symantec Shared\ccApp.exe
C:\Program Files\Symantec AntiVirus\VPTray.exe
C:\Program Files\Java\jre6\bin\jusched.exe
C:\Windows\vsnp2std.exe
C:\Program Files\iTunes\iTunesHelper.exe
C:\Program Files\Windows Sidebar\sidebar.exe
C:\Program Files\Packard Bell\SetUpMyPC\SmpSys.exe
C:\Program Files\Windows Live\Messenger\msnmsgr.exe
C:\Windows\ehome\ehtray.exe
C:\Windows\ehome\ehmsas.exe
C:\Program Files\Intel\IntelDH\CCU\CCU_Engine.exe
C:\Program Files\Common Files\Roxio Shared\9.0\SharedCOM\CPSHelpRunner.exe
C:\Windows\system32\wbem\unsecapp.ex... Read more

Read other answers
RELEVANCY SCORE 33.2

I am using Windows Vista Ultimate (Commemorative Edition) x64, which was installed roughly two weeks ago. Everything was working fine and then, one day (9/21/08 at 1:19 p.m. to be precise) I lost the ability to use my speakers (Logitech X530) as well as my printer (HP OfficeJet G85). Under the "Problem Reports & Solutions," I received this message:"Windows was able to successfully install device driver software, but the driver software encountered a problem when it tried to run. The problem code is 39."I received the exact same message for both my audio and my printer. Also, if I go to "Sound" (Playback and Recording tabs) it says, "No audio devices are installed." Everything appears to be connected properly.

Can anyone explain why both my speakers and my printer were working fine one day and then, all of the sudden, they just quit? I cannot think of anything drastic which may have occurred. Has anyone else had anything similar occur?

Any help you can provide will be greatly appreciated! Thank you!

A:Problem Code is 39 -- what does that mean?

There are several causes of Code 39 errors: •A required device driver is missing. •A required binary file is corrupted. •There is a problem with the file I/O process. •A driver that is referencing an entry point in another binary file is unable to load.Recommended resolution

Reinstall the drivers for this device.

Uninstall and reinstall the driver

Uninstall the driver from Device Manager, and then scan for new hardware to install the driver again.

You may be prompted to provide the path of the driver. Windows may have the driver built-in, or may still have the driver files installed from the last time that you set up the device. However, sometimes, it will open the New Hardware Wizard which may ask for the driver. If you are asked for the driver and you do not have it, you can try to download the latest driver from the hardware vendor’s Web site. 1.On the device Properties dialog box, click the Driver tab, and then click Uninstall. Follow the instructions.2.Restart your computer.3.Open Device Manager, click Action, and then click Scan for hardware changes. Follow the instructions.

Read other 3 answers
RELEVANCY SCORE 33.2

Hi there, I'm coding a card game and running into problems. I wrote a function that will check a user's hand for pairs and report back if there are any. Trouble is, it's misreporting most of the time.
Code:

Private Sub CheckPairs()

Dim i As Integer, j As Integer, booPairs As Boolean

booPairs = False

For i = 0 To 11
For j = i + 1 To 11
If (intHand(0, j) Mod 13) = (intHand(0, i) Mod 13) Then booPairs = True
If intHand(0, j) = 99 And intHand(0, i) = 99 Then booPairs = False: Exit For
Next j
Next i

If booPairs = True Then lblMessage.Caption = "You still have pairs!" Else lblMessage.Caption = "Right let's go"

End Sub
 

A:Problem with VB code

To optimize your code I would make the second If an else if (else if is C++).
What is intHand?
 

Read other 3 answers
RELEVANCY SCORE 33.2

Hello i have problem with my USB devise..

I get an error: The software for this device has been blocked from starting because it is known to have problems with Windows. Contact the hardware vendor for a new driver. (Code 48)

Please help me!

Look the image

A:USB problem CODE 48

MS/Windows has noticed an issue with that driver , it COULD be corrupted or it might just be too old , you have tried uninstalling and re-installing? , checking for more upto-date drivers.

Read other 3 answers
RELEVANCY SCORE 33.2

Hello i am having a problem with my code i am trying to run an install file from a text box that i browse with admin rights and i am having tough luck because the password wont be accepted from inside the code and the file wont be executed even if write the code my self
here's the code that i use

Option Explicit On
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oShell
Dim text As String
text = TextBox1.Text
oShell = CreateObject("WScript.Shell")
'Replace the path with the program you wish to run c:\program files...
oShell.Run("RunAs /noprofile /user:%computername%\administrator " & """ & text & """)
'Replace the string --> yourpassword~ with the
'password used on your system. Include the tilde "~"
oShell.Sendkeys("[email protected]~")

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim fdlg As OpenFileDialog = New OpenFileDialog()
' Name of the open dialog Box
fdlg.Title = "C# Corner Open File Dialog"
' The Directory from where it starts searching the file
fdlg.InitialDirectory = "c:\"
' The filter of files that you wish to show
fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*"
fdlg.FilterIndex = 2
fdlg.RestoreDirectory = True
If fdlg.ShowDialog() = DialogResult.O... Read more

Read other answers
RELEVANCY SCORE 33.2

I can't access the internet on my Toshiba Chromebook nor on my lg Android phone on wifi setting. The diagnostics on the Chromebook returned a -137 error.dns
 

A:DNS problem code -137

Can you access the router or wireless access point to which you are connected (or trying to connect to)?
 

Read other 3 answers
RELEVANCY SCORE 33.2

My computer starts with a message "preparing Automatic Repair" This changes to "Diagnosing computer faults" before ending on a blue screen "Automatic Repair." Noe of the further fixes seem to work.  So I then carried out the UEFI tests and got the code below when dong a Network Test: OTWFMV-TJR8K4-X87R7A-8DF4O3 Wgat does this mean and what can I do?

A:What does this code mean and is it the cause of my problem

> got the code when dong a Network Test: OTWFMV-TJR8K4-X87R7A-8DF4O3> What does this mean and what can I do? It could be:* hardware failure of the network adapter;* missing device-driver software for the network adapter;* Ethernet cable not connected into the network adapter;* other end of the Ethernet cable not connected to your router / cable-modem / DSL-modem;  

Read other 1 answers
RELEVANCY SCORE 33.2

Trying to purchase windows 8 upgrade using upgrade assistant, can't get past the sign up section as the microsoft software will not recognize a UK post code, has anyone else had this problem, any ideas for a solution

A:Zip code problem

Try from here:
Microsoft Store United Kingdom Online Store - Buy and download Windows 7 Professional, home file sharing, network connectivity, Home Premium

Read other 3 answers
RELEVANCY SCORE 32.8

In need of help soonest. Something weird happened earlier and I may have caused it. Not sure.

Earlier when writing a letter that damn clippy thing in Word opened. So I disabled it. I think. BUT, I also think I may have done something to cause this because now I can not copy. When I try and do a copy to Word or Wordpad, this is what appears.
How do I correct things and go back to normal? I tried looking with no success.

Please advise and Thank You

JayD
 

Read other answers
RELEVANCY SCORE 32.8

Hello,
I have code 41, my cd/dvd drive is not appearing on my computer or explorer. I enter the device manager and it has an exclamation mark and when I enter it, it says the driver is updated but the device is not connected. I tryed to restore the system but it says that drive G has been deleted or shutdown and it won't take effect on it.
I thought it was disconnected but I can boot from it. When I restart I can boot from the cd but when I enter windows it doesn't recognize it.
Can anybody help me?
 

A:code 41 problem win xp home ed.

Even if the Easy Cd Creator part doesn't apply this solution still should be tried. Back up your registry first.
http://support.microsoft.com/default.aspx?scid=kb;en-us;314060
 

Read other 1 answers
RELEVANCY SCORE 32.8

i have an audio problem..... Code 10 (ads instant hdtv pci) will not start!! How do I fix this? thanks!
 

A:code 10 audio problem-need help

This is a TV Tuner you are having the issue with?

If this is for Windows XP then here are the drivers to reinstall:
http://www.adstech.com/products/PTV-382-EF/downloads/drivers/PTV380.WHQL.Drivers.exe
You may have to uninstall the existing drivers from Add/Remove Programs and/or from Device Manager.

If you have Windows Vista or 7 then do not use these drivers as Vista and 7 has built in support for this card.
 

Read other 1 answers
RELEVANCY SCORE 32.8

I have just (a week ago) installed Windows 10 over a previous Windows 7 OS but retained a copy of Windows 7 as a dual-boot. My Windows 7 OS has no problems, but the Windows 10 is not recognizing two cd/dvd drives. They show in the bios as they should since they work fine in the Windows 7 boot. The Windows 10 Device Manager shows both drives with a message of corrupted or missing device drivers, Code 39. I have tried the usual remedies for this problem (1) uninstall, restart, and scan for new hardware; and (2) looking in the registry for Upper limit and Lower limit entries. The first time I tried this the only entry for {4d36e965-e325-11ce-bfc1-08002be10318} was "default" and "value not set". When I checked a second time, there was a new entry with a little square in front, showing "##?#ACPI#PNP0501#1#{(same key value)". This had a default entry that was not set, but also a DeviceInstance entry that had a value of ACPI\PNP0501\1.

The strange thing is that when the Windows 10 installation first completed, the two drives were recognized and useable. I cannot identify anything in particular that I added to cause the error, as it mostly involved reinstalling a number of programs that were not retained from the initial Windows 7 installation.

Any suggestions?
 

A:Cdrom Problem, Code 39

A few things:

1) the standard checks: https://support.microsoft.com/en-us/kb/314060

2) Ensure you have the correct motherboard drivers installed. Similar issue here: https://forums.techguy.org/threads/dvd-drive-missing-after-win-10-update.1152571/

3) This is a common issue with Win10, but I can't find the MS link at the moment.
 

Read other 1 answers
RELEVANCY SCORE 32.8

Hi. Same problem. Disable code is 57355170. Please help.

A:Same problem. Disable code.

Hi: Enter this unlock password... 48033176

Read other 2 answers
RELEVANCY SCORE 32.8

First off, by keyboards I mean midi keyboards, like m-audio and such.

My mouse and typing keyboard work fine always, but for some reason I am regularly getting a device cannot start error for the midi keyboards.

This error is in 'sound, video and game controllers' tree in the device manager. I can get it working sometimes after several reboots, sometimes I can't.

Very annoying... here's some of my specs:

Board: ASUSTeK Computer INC. P5NSLI 1.XX
BIOS: Phoenix Technologies, LTD ASUS P5NSLI ACPI BIOS Revision 0601 07/13/2006 (think it's the newest driver)

slightly new m-audio keystation with updated drivers, New korg R3 exibits the same behavior.

in regedit: lots of values in hkeylocalmachine/system/currentcontrolset/enum/USB, but don't know if its relevant.

Thanks for the help.

Read other answers
RELEVANCY SCORE 32.8

Recently, I posted to ask about the compatibility of Windows XP with an old Windows 98 laptop a friend gave me. I successfully upgraded the system, and in that time, I have purchased a Wi-Fi card and I can now successfully connect to my router. My question is, when I logon, I get the nag that I have X Days to Activate Windows. Would I like to do so now? I click yes, and it takes me to the activation screen. I choose the online method, skip the registration, and enter my key. It won't accept it. I used a Windows XP Home Edition CD from another laptop to upgrade. This laptop no longer runs that version of Windows, so I figured there would be no problem using the key from the bottom of the laptop. I read elsewhere that if the key is used on more than one system, it will tell you that, but mine just says "An Invalid Key Was Entered." What am I missing? Any help would be appreciated. Thanks
 

A:Activation Code Problem

Read other 9 answers
RELEVANCY SCORE 32.8

Hello Everyone!
I just registered here to get my problem solved.
I installed windows maybe 6 to 7 months ago in my HP Probook 4530s.From that time there is that problem and I have tried every solution given on the different website but it is not solved.I am having so much need of bluetooth please some one help me!
This is a shot regarding that:

A:Bluetooth Problem code 43

Hi Welcome to Seven Forums ... Try the solution in the Link below ...
A Bluetooth device stops working, and you receive error code 43 together with event 17 after you resume a computer that is running Windows 7 from sleep

Read other 3 answers
RELEVANCY SCORE 32.8

Hi all

I am creating standard letters within my db using forms along the lines of:

="Further to my telephone call blah blah blah......"+Chr(13)+Chr(10)+"An appointment has been arranged for you as follows:"+Chr(13)+Chr(10)+Chr(13)+Chr(10)+"Date:- " & [NextApptDate] & Chr(13)+Chr(10)+"Time:- " & [NextApptTime] etc.......

I would like to get the words Time and Date to be in bold and underlined. Does anyone know if this is possible using Chr (ASCII) coding?
 

A:Solved: Chr code problem

Read other 14 answers
RELEVANCY SCORE 32.8

Hi,

I have a problem when I try to write a greek symbol using ASCII code.
Whenever I type ALT+0248 (which on an XP 32 bit would give me a "PHI" symbol), on my Windows 7 pro 64bit all I get is an empty square ...
I tryed changing the language (Romanian to English(US) and vice-versa) and still nothing ...
Other ASCII codes work but some dont .... The "PHI" is the most important one, as I use it in SolidEdge (3D CAD).

If anyone can give a solution to my problem I would be verry happy

A:ASCII code problem

Anyone?!

Read other 9 answers
RELEVANCY SCORE 32.8

Can anyone help with why this error is appearing for the row of code below

Run-time erroe '424': Object required

ws.Cells(iRow, 1).Value = Me.txtJobName.Value

I have posted my whole code below what i am doing is using a userform to add new job name and job number to a separate workbook
Code:

Private Sub cmdAdd_Click()
Dim iRow As Long
Dim wb As Workbook
Set wb = Workbooks("Defined Name Lists.xls")
wb.Activate
Worksheets("JobName").Range("A2").Value = txtJobName.Text
'find first empty row in database

'check for a JobName
If Trim(Me.txtJobName.Value) = "" Then
Me.txtJobName.SetFocus
MsgBox "Please enter a Job Name"
Exit Sub

End If
'check for a JobNo
If Trim(Me.txtJobNo.Value) = "" Then
Me.txtJobNo.SetFocus
MsgBox "Please enter a Job No"
Exit Sub

End If
'copy the data to the database
ws.Cells(iRow, 1).Value = Me.txtJobName.Value
ws.Cells(iRow, 2).Value = Me.txtJobNo.Value


If Me.txtJobNo.Value <> "" Then
Dim wbOutput As Workbook
Set wbOutput = Workbooks.Add
With wbOutput
.Title = "Job Number "
.Subject = "Job Number created " & Date
.Author = "Script generated"
.SaveAs Filename:=mydir & "\" & Me.txtJobNo.Value
End With
End If

'clear the data
Me.txtJobName.Value = ""
Me.txtJobNo.Value = ""
Me.txtJobNo.SetFocus
Exit Sub

End Sub
... Read more

A:Excel Code Problem

You have not Dim or Set the variable ws
 

Read other 3 answers
RELEVANCY SCORE 32.8

via usb 3 root problem
Hi guys, ive spent days on this problem to no avail,hoping somebody could please help me. I have a VIA usb 3 root hub,this device is not working properly because Windows cannot load the drivers required for this device. (Code 31). I have tried uninstalling and rebooting, a couple of microsoft fixes but the problem persists. A new chipset driver has been mentioned on some sites ive visited but i am not very technical and dont know if this would work or even what chipset to get. I have a toshiba sattelite C650D with win 7 64. Really hoping one of you guys could help or point me in the right direction. Thanks

Now I have the same problem as above with a Toshiba Satellite C650D -026 running Windows 7 64bit . WHY DID NO ONE HELP JULIE above and is anyone going to help me now?

Why has'nt Windows sent out an update to fix this common problem with this usb driver? Are they trying to push people to but Windows 8 because i have had enough of windows products and am going to purchase a MacPro but would like to fix this box first. Can anyone direct me to the driver fix for this Via USB problem/?
 

A:VIA 3.0 USB root hub code 31 problem

As far as drivers go, you don't get drivers from Microsoft (unless they are the manufacturer of the device needing the driver), you get the proper drivers from the System manufacturer or the device manufacturer, In this Case from Toshiba.

Microsoft can't make driver for every device that can run in a windows environment. While drivers for 3rd party devices may be included from Windows updates, they are not necessarily the most up to date driver available.
 

Read other 1 answers
RELEVANCY SCORE 32.8

Hello, my computer was fine until last night when i played som Counter Strike. The computer suddently got red vertical lines all over the screen.

The computer also froze up, and i had to restart it. I got into my user again, but 10 mins after, the same problem. another restart, and now i get a Blue Screen right after the windows logo, and a looping restart.

I turned off the restart through Safe Mode, as that is currently working. but there are still lines around the screen, only that they are not red and all over the place, they just seem to be on colored areas.

I have not configurated anythign on BIOS, no drivers have been installed the last months, except the graphic driver from Nvidia. that was 3 weeks ago. I have not done anything that i normally woulden't do.

I can go into Safe mode, but not normal mode. And te Blue Screen code i get is:

PAGE_FAULT_IN_NONPAGED_AREA

STOP: 0x00000050 (0xF7FBF030, 0x00000000, 0x8052B8F8, 0x00000000)

This is a picture of the blue screen if you need more information.
http://i108.photobucket.com/albums/n1/Hellmoon/P5150002.jpg
http://i108.photobucket.com/albums/n1/Hellmoon/P5150003.jpg

If there are any questions, please ask.
 

A:BSOD problem, new code.

Read other 6 answers
RELEVANCY SCORE 32.8

I have been using a mobile phone as a modem to connect to the internet. But, recently, when I connected it to my PC, it says Unknown device. When I troubleshoot the device, it told me that the there is a code 43 driver problem or something as I am not so good at computer's terminology. Then, I uninstalled it and updated my driver, but it again gives me an error of code 43. The mobile is charging though..........Don't know how to solve this problem.

A:USB driver problem code 43

Did you tried :
Go to Device Manager - Start Menu > Control Panel > Device Manager
Browse for any device warning errors under Universal Serial Bus Controllers with a yellow exclamation point.
Right click on any device with the error and select "uninstall"
Right click and select "Scan for Hardware Changes"
Ensure all USB Root Hubs are clear of any warnings/errors
Shut down Windows
Turn off laptop and unplug AC power
Remove battery and let sit minimum of 10 minutes. Reinsert battery
Plug in AC
***Insert USB device - I did before turning on laptop
Power up - boot Windows and it should straighten out all the USB problems and recognize the USB device immediately

Read other 1 answers
RELEVANCY SCORE 32.8

PLease Help
My computer dosn't seem to see my DVD/CD ROM!
In device manager the properties for the two Drives I have (Pioneer DVD WR DVR -108 &IDE DVD-ROM 16x) has the following message in the device status: "Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)"
I have tried uninstalling reboot then reinstalling, but the problem remains, can you help?
Thanks
 

A:Driver Problem (Code 39)

Have you checked for spyware? One common symptom of spyware is that it can cause your devices to malfunction or become undetectable. I've seen this problem before where the CD/DVD drive can't be detected.

I recommend using the following 3 anti-spyware utilities:


Ad-Aware 2007
Spybot Search & Destroy
AVG Anti-Spyware

All are free and can be downloaded via the Internet.
 

Read other 5 answers
RELEVANCY SCORE 32.8

Motherboard: Foxconn M61PML-K
RAM : Kingston 2 Gig/DDR3 1333
BIOS: AMI

Scenario: PC turn on but no display, but after trying some troubleshooting afterwards its getting Non Stop SHORT BEEP same as when i remove the RAM, Since i already check some beep codes for ami ive never seen beep code like this. i dont have any xtra RAM to try but i will try to find soon, but as of now i need some opinion if do u think its really a ram problem. thanks in advance

A:beep code problem

Make sure your RAM is fully seated, and if you have a graphics card make sure it is fully seated, and the electrical connection is tight(that is, if it has a electrical plug)

Read other 6 answers
RELEVANCY SCORE 32.8

I'm putting the code together for a page. I have been designing web pages for three years and have never tried this before.

I'm attempting to get a minimum of 10 .mid files to play one after the other while the page is open, but keep running into the same problem.

On the "page" they are all linked one following the other like this....

< bgsound src="one.mid" >< bgsound src="two.mid" >< bgsound src="three.mid" >< bgsound src="four.mid" >< bgsound src="five.mid" >< bgsound src="six.mid" >< bgsound src="seven.mid" >< bgsound src="eight.mid" >< bgsound src="nine.mid" >< bgsound src="ten.mid" >
< /head >
(without the spaces before and after ...><)

Is there code that would allow that when the last one finishes, it loops back to the first as in href= whatever?

If there is, I'd sure appreciate learning "what" it is.

Also, no matter how many times I've checked the code for possible errors, (I can't spot one) it will only play three. It always starts with the one I have listed as number one then randomly plays 2 others then quits. (?)

Should "you" have an idea why this happens, I'd also appreciate an answer to that little problem.

Have a great day,
Nat
 

A:slight code problem?

honestly I am suprised you get three to play. I would only think that one would. If you wanted them all why not join them into one sound file and just use the one?
 

Read other 2 answers
RELEVANCY SCORE 32.8

I had 2 partitions, one with 98 one with XP. It was like this for a few months. I was in the XP partition, restarted the pc so i could go to the 98 partition. When i restarted it, it started beeping (beep code beeping), and wouldn't stop. The whole time i was in 98 it was beeping. I restarted and went into XP this time and once the XP loading screen came on it stopped. When ever i was in 98 it would beep but XP didnt.
So i figured that i would just delete the 98 partition using partition magic. Anyways to make a long story short, something went wrong. It never set the Xp partiton to primary like it was supposed to. Now i cant do anything with the HD at all. I tried to set it to primary with fdisk but it wont do it. I tried making it primary with partition magic but it says that the partition is "dismounted improperly" . Their website says to run checkdisk but i cant get it to. I got pissed and figured that i would just delete it. Fdisk wont delete it either.
So i bought a new HD and put only XP on it. It still beeps until it gets to the loading screen. But the main thing i need now is to get into the old HD. i forgot about some of the things on it and i need some of it.

specs:
Soltek SL-75DRV4 awardBios
Asus Geforce4 ti4600 vid card
WD 40gig HDD ( the old one is IBM 60 gig)
Athlon XP 1800+
512 PC2100 ram
 

A:beep code and HDD problem

When you deleted 98, you deleted the boot info for XP, that is why you couldnt get into XP. The 98 partition held the info. You could try loading 98 onto it, then load PartitionMagic & see if you can view the Partitions. If the XP partition was NTFS, fdisk cant set it active. It reads the partition as non-DOS, and can only delete it. It might even take a few attempts to delete it, but it will. It has happened to me on occasion. The beeps indicate a problem, & should have been investigated first, esp if only one OS had them. Could have been an incompatible driver in 98.
 

Read other 3 answers
RELEVANCY SCORE 32.8

Hello

I made a VBA code for my excel to automatically send email and it is giving error when I run it. Please can any one please check what am i doing wrong here.

Following is my VB code

Sub Mail_with_outlook()
Dim OutApp As Object
Dim OutMail As Object
Dim strto As String, strcc As String, strbcc As String
Dim strsub As String, strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
strto = Cells(FormulaCell.Row, "M").Value
strcc = ""
strbcc = ""
strsub = "Your subject"
strbody = "Hi " & Cells(FormulaCell.Row, "L").Value & vbNewLine & vbNewLine & _
"Your total of this week is : " & Cells(FormulaCell.Row, "D").Value & _
vbNewLine & vbNewLine & "Good job"
With OutMail
.To = strto
.CC = strcc
.BCC = strbcc
.Subject = strsub
.Body = strbody
.Display ' or use .Send
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub
Thanks in Advance
 

A:Please help in Excel VBA code problem

Problem coming in this coding is:

strto = Cells(FormulaCell.Row, "M").Value
and I dont know why.

Please can anyone help
 

Read other 2 answers
RELEVANCY SCORE 32.8

I have an open issue in the Business Applications thread involving VB in MS Access, and thought maybe some of you guys/girls in the Developement thread might be able to help. I am trying to retrieve the date only, (not date/time) from an activeX control. for more info, read on here:http://forums.techguy.org/showthread.php?p=1986647#post1986647.

Thank you in advance!
 

A:a problem with my VB code in MS access?

I don't think you can make the DTPicker control return only the date portion but you can truncate the value before you use it. Use Fix( ) to remove the time portion.
 

Read other 3 answers
RELEVANCY SCORE 32.8

Hello Friends ,

Please check this VBA Code for finding the duplicated in a database and once ot finds it , it takes you to that record

Dim SID As String
Dim stLinkCriteria As String
Dim rsc As DAO.Recordset

Set rsc = Me.RecordsetClone
SID = Me.[Email Address].Value
stLinkCriteria = "[Email Address]=" & "'" & SID & "'"

If DCount("[Email Address]", "Table_ContactPerson_Names", _
stLinkCriteria) > 0 Then
'Undo duplicate entry
Me.Undo
'Message box warning of duplication
MsgBox "Warning Email Address " _
& SID & " has already been entered." _
& vbCr & vbCr & "Taking u to the record.", _
vbInformation, "Duplicate Information"

rsc.FindFirst stLinkCriteria
'Me.Bookmark = rsc.Bookmark
End If
Set rsc = Nothing
End Sub
----> Now the problem is that the email address entry is a subform in a main form and
this does not seem to work for me . Any Suggestion .To be Precise , It does find the duplicate and gives me error message but cannot go to the specefied record probably due it being in a subform . Any Suggestions would be appreciated

Sushil Dhar
############################
 

Read other answers
RELEVANCY SCORE 32.8

My brother bought a Gateway FX a few weeks ago, and had a few days of it working properly. Unfortunately, in no time, he was having problems with the internet. Every time that he tried to connect to our wireless internet connection, problem code 39 appeared.

It says "Windows was able to successfully install device driver software, but the driver software encountered a problem when it tried to run. The problem code is 39."

It also says "The network adapter 'Intel(R) Wireless WiFi Link 4965AGN' is experiencing driver or hardware related issues." There seems to be nothing wrong with the wired connection, but it is not recognizing ANY wireless signals, and there are multiple ones in our area.

I should also mention that the computer WAS stuck in a loop of Windows Updates, where it went through the update screens and when it completed the updates, would shut down. Upon restart, it would immediately enter into the update screen. However, I am unsure if this information is relevant. Also, when the computer returned from being fixed, I had to reactivate Microsoft Windows, and confirm its authenticity.

Is there anything I can do to fix the internet? Or is the wireless hardware corrupted and completely unusable?
 

A:Solved: Problem code 39

Read other 8 answers
RELEVANCY SCORE 32.8

i just bought a DP 132 LG dvd player, i have tried pause, 314159 code many times with no disc in it the door open, but it won't do anything but display home screen, please help?
 

A:region code problem

please help i just bought a DP 132 LG dvd player, i have tried no disc, door open, pause, 314159 code, and pause 0000, but it won't do anything but display logo home screen?
 

Read other 1 answers
RELEVANCY SCORE 32.8

I am working on a winform I have created two datagrid control instances on the form to display suppliers and customers I want only one grid visible at a time. I have created menu items to switch between suppliers and customers.
I have it coded but is isn't doing what it should do. I just starting to learn vb.net so I don't know where I made the mistake(s). Here's the code I wrote:

Private Sub mmuViewSupplier_Click....
If dgSupplier.Visible = True Then
dgSupplier.Visible = False
Else
dgSupplier.Visible = True

Private SubmmuVeiwCustomer_Click...
If dgCustomer.Visible = True Then
dgCustomer.Visible = False
Else
dgCustomer.Visible = True
Thanks
 

Read other answers
RELEVANCY SCORE 32.8

Hi,
My CD-Rom driver will not open. The Device Manager says that it will not open because of Code 19.
How do I rectify this?
Please help!
Thankyou in advance,
Amanda
 

A:Problem! - Code 19 for CD-Rom Driver

http://support.microsoft.com/kb/314060
 

Read other 2 answers
RELEVANCY SCORE 32.8

With ActiveDocument.Content.Find
.ClearFormatting
.Replacement.ClearFormatting
.MatchWholeWord = True
.Execute FindText:="Inc aa", _
ReplaceWith:="incorporated", Replace:=wdReplaceAll
End With

if my document contains below line of code
inc aa for the inc aabcde and the inc aa

the above code will replace inc aabcde also

is this a bug in ms word
 

A:Problem with code in Word

Read other 13 answers
RELEVANCY SCORE 32.8

I own a EMS USB 2 converter. I can't get it to work because of this error code 1. It says the device is not configured correctly.
Things I have tried:

- Uninstalling then scanning for hardware changes.
- Reinstalling drivers
- Unplugging then plugging converter back in
- Restarting a lot under slighty different conditions
- All of the above testing every single possible combination of having the converter plugged in with the controller attached, without the controller attached, without the converter attached, and reattaching the converter and controller at various points during my tests.

I want to delete the registry keys for the converter to get a new start, but it won't let me. It says 'Error while deleting key.' (And yes the converter is unplugged and uninstalled).

Any ideas would be greatly appreciated.

Thanks in Advance

A:Problem with Error (Code 1)

have you tried to install this on a diff computer? just to isolate the problem.. also if you have another driver for this device, you can try to use that..

Read other 1 answers
RELEVANCY SCORE 32.8

Recently I reinstalled Windows XP Home, and it's now asking me to activate it. The last few times I installed windows on the computer I had no problems, but that was with my old case. I rebuilt my computer using my old hard drive, but I got rid of my old case with my activation code on it. After a few suggestions I download a few programs that told me what my product key is, but when I try to use it it comes up invalid. Is there anything I can do that doesn't involve me calling up Microsoft?

A:Activation code problem

Unfortunately Khrono you will have to telephone your nearest Microsoft Support Centre.
The procedure is pretty painless, and the Telephone Support Satff are very good, so give it a go.

Kind Regards,

Read other 1 answers
RELEVANCY SCORE 32.8

Hello again,
A friend of mine brought me his Dell Dimension 2350, to fix. The unit had assorted spyware, trojans, a virus, etc. It had XP home on it. I only had a copy of XP pro, so I reinstalled it instead of home. I deleted the old partitions in the process, and created a new one. I installed a firewall and antivirus program. I ran all the MS updates, I defragged the HDD, and after one long day, I had it all dialed in. Until I rebooted that is. Then, I noticed that the unit will not power up unless I depress the power button for about 5 seconds. The unit then gives 2 long and 3 short beeps, and boots to Windows where everything seems to be in order and working fine. The Dell website lists the beeps as " IDE subsystem failure" but I see no visual indications of anything amiss. Any help on this is greatly appreciated. Thank you
 

A:Dell Beep code problem

Did you by chance download and install the Chipset Drivers and all the motherboard drivers from Dell? These will be needed if you did not.
 

Read other 1 answers
RELEVANCY SCORE 32.8

I have an old Gateway p5-200 with an Intel Pentium II (200mhz), an Intel chip set and 128 MB of RAM. Attached to the mother board are two USB slots. There is an Intel 82371sb PCI to USB Universal Hot Controller.

I am trying to use a USB drive, but I cannot get the USB slots to work. In the device manager the device has a yellow exclamation point. When I click on properties I get the following message:

"The NTKERN.VXD device loader(s) for this device could not load the device driver (code 2)"

I have unplugged all USB devices (actually, none were attached). Deleted the device using the device manager, while in safe mode. I then installed new drivers when prompted, including uscd.sys, usbd.sys, usbhub.sys and usbui.dll. Actually, these files were already in the proper directory, but when prompted, I reinstalled them anyway. I made sure that ntkern.vxd was in the C:\windows\system and C:\windows\system\vmm32 directories. A previous post on a similar problem recommended removing two lines from the autoexec.bat file. I checked and these to lines are not there. I also check the IRQ and windows reports no conflicts.

Any ideas on how to fix this problem? Thanks.
 

A:USB problem: ntkern.vxd error code 2

First step, Start, Programs, Accessories, System Tools, System Restore. Create a restore point and name it something like "Before USB Fix". This is to bail you out if something goes wrong during the following process and makes things worse.

Create a file with NOTEPAD containing the following lines and save it as FIX.REG
-------------------------- Use text after this line --------------------------------
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]

"DEVMGR_SHOW_NONPRESENT_DEVICES"="1"
-------------------------- Use text before this line --------------------------------

Double click on FIX.REG and say yes to the Merge Into Registry question.

Unplug ALL USB devices.
Open Device Manager.
View, Show Hidden Devices.
Uninstall all devices under USB Controllers.
Uninstall all devices under Disk Drives that you know are not present.
Uninstall all devices under Storage Volumes. Say no to any reboot prompts until you are finished. Also, if a Storage Volume doesn't uninstall, ignore it and move to the next one.
If you have a yellow ? with unknown devices, uninstall all of the entries there as well.

When this is done, reboot TWICE.

Reconnect the USB devices and see if they're recognized properly.

NOTE: If you have a USB keyboard and/or mouse, you'll have to modify the instructions and leave enough parts for those to function. I don't have one yet, so I haven't had time to modify th... Read more

Read other 3 answers
RELEVANCY SCORE 32.8

Hey guys,

I've been having this problem for like 6 months... and it pisses me off so badly... ! :@



thanks in advance..

A:msn problem error code 80070005

Hello,

Could you translate that message box into English for me? I must confess I don't know what the options are, and can't tell how to fix it.

Thanks,
~JK

Read other 4 answers
RELEVANCY SCORE 32.8

When i'm watching a streamed video in full screen only, the screen will randomly freeze and go to black while still playing the audio which will cut after five seconds. Then it randomly comes back but at the login screen for my user account and once logged back in everything is closed but it says there was a code 34 error with my display adaptor when i check device manager.

I've tried uninstalling and reinstalling my drivers
Reinstalling google chrome
A full scan with nothing coming up
updating to the latest driver didn't help either

This only happens when i'm in full screen while watching a video it never happens while doing anything else and i can't at all find anyone else with a similar problem. It started happening a few days ago and it doesn't happen straight away while i'm watching a video full screen, i can be watching for hours and then it just happens out of no where.

I'm incredibly stumped and have no idea whats causing this problem as it happens out of no where and i was unsure if it is a problem with the card itself considering it only happens when i'm full screen in a video and not in a game.

The card is a NVIDIA GeForce GT 640 and if anyone can offer some help i'd be incredibly grateful, thank you.
 

A:Display adaptor Code 34 problem

Read other 16 answers
RELEVANCY SCORE 32.8

Hello,
I have a problem with my graphics card(Nvidia GeForce 210) it puts me as an error message:
Windows has stopped this device because it has reported problems . (Code 43)
Reinstalling drivers doesn't work. I tried to look for other solutions on the internet but nothing worked for me.
HELP ME PLEASE !!!

OS Version: Microsoft Windows 7 Professionnel, 64 bit
Processor: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, Intel64 Family 6 Model 23 Stepping 10
Processor Count: 2
RAM: 2046 Mb
Graphics Card: NVIDIA GeForce 210, 6 Mb
Hard Drives: C: Total - 149495 MB, Free - 44988 MB; D: Total - 155237 MB, Free - 155127 MB;
Motherboard: Dell Inc., 07N90W
Antivirus: None
 

A:Problem with my graphics card: code 43

Read other 16 answers
RELEVANCY SCORE 32.8

I have a Acer Aspire E14  E5-411-C3K3 Windows 8.1 Single Language ( 64 bit).I tried to play some cd's through the cdrom player,but nothing.I have tried various methods ( Regidt,Command Promp),but nothing.It is also coming uo with Error Code 45 ( whatever that is).The cdrom is HL-DT-ST-DVDRAM GUCOM.Please can anyone help ?

Read other answers