Wednesday, November 23, 2011

vc++ error: midl : command line error MIDL1001 : cannot open input file sapiddk.idl

Error: midl : command line error MIDL1001 : cannot open input file sapiddk.idl

Solution:
This is for information of any person facing this kind of error.

I faced similar error for one of my project giving

command line error MIDL1001: cannot open input file sapi.idl

I solved this issue by just giving Inclue path of sapi.idl in the IDE of Visual Studio 6 in
tools->options->Directory->Include Files

Just search that where does this sapi.idl resides and then put that path in includes here.

Source:http://www.codeguru.com/forum/archive/index.php/t-70344.html

vc++ error: Cannot open include file: 'test_i.c': No such file or directory

Error: Cannot open include file: 'test_i.c': No such file or directory

Ans: compile .idl file first.

http://www.codeproject.com/KB/atl/SimpleATLCom.aspx?fid=124516&df=90&mpp=25&sort=Position&select=2459863&tid=2459863

VC++ 6 error

Error:Can't Cannot open precompiled header file: 'Debug\test4.pch': No such file or dir


Solution: Build stdafx.cpp first
http://www.codeguru.com/forum/showthread.php?threadid=340362

Monday, November 21, 2011

vc++ 6.0 tutorial


http://cplus.about.com/od/learningc/ss/vc6compile.htm

setting environment variable in visual studio c++ 6

Error: 'cl' is not recognized as an internal or external command


If you have not already done so, open a command prompt and set the VC++ environment variables by running the vcvars32.bat usually located in C:Program Files\Microsoft Visual Studio\VC98\bin\vcvars32.bat.

C:\Projects\mapserver&> C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"

Thursday, November 10, 2011

How To Delete Registry Keys in Windows XP

Follow this easy guide to delete a registry key in the Windows XP Registry:
1.

Click on Start and then Run....
2.

In the text box in the Run window, type regedit and click OK. The Registry Editor program will open.
3.

Using the + icon, navigate down through the registry key branches until you reach the subkey (the folder on the left) that you're wanting to delete, or the subkey that contains the value (on the right) you're wanting to delete.
4.

Backup the registry key you're about to delete. As sure as you may be that removing this particular key or value will get you the results you're after, it's always a good idea to create a backup just in case you need to restore the information back to the Windows Registry later.
5.

If you're deleting the registry subkey, make sure it's selected on the left. If you're deleting a specific registry value, make sure it's selected on the right.
6.

With the subkey or value selected, choose Edit and then Delete from the Registry Editor menu.
7.

If you're deleting an entire subkey on the left, you'll be prompted with this Confirm Key Delete message:

Are you sure you want to delete this key and all of its subkeys?

If you're deleting one or more individual values on the right, you'll be prompted with this Confirm Value Delete message:

Are you sure you want to permanently delete this value?
8.

No matter the confirmation message, click on the Yes button to remove the key or value.

Note: Changes in the Windows XP Registry are made immediately. There are no Save or Undo options like you may be used to in other programs.
9.

Close Registry Editor.
10.

Restart your computer. Depending on the keys or values you may have removed, you may need to restart to see the changes take effect in Windows XP or in another program.
11.

If deleting the registry key or value didn't do what you expected it to do, you can always restore the registry key using the backup you created in Step 4.

Source: http://pcsupport.about.com/od/windowsxp/ht/deleteregkeyxp.htm

How To Delete Registry Keys in Windows XP

Follow this easy guide to delete a registry key in the Windows XP Registry:
1.

Click on Start and then Run....
2.

In the text box in the Run window, type regedit and click OK. The Registry Editor program will open.
3.

Using the + icon, navigate down through the registry key branches until you reach the subkey (the folder on the left) that you're wanting to delete, or the subkey that contains the value (on the right) you're wanting to delete.
4.

Backup the registry key you're about to delete. As sure as you may be that removing this particular key or value will get you the results you're after, it's always a good idea to create a backup just in case you need to restore the information back to the Windows Registry later.
5.

If you're deleting the registry subkey, make sure it's selected on the left. If you're deleting a specific registry value, make sure it's selected on the right.
6.

With the subkey or value selected, choose Edit and then Delete from the Registry Editor menu.
7.

If you're deleting an entire subkey on the left, you'll be prompted with this Confirm Key Delete message:

Are you sure you want to delete this key and all of its subkeys?

If you're deleting one or more individual values on the right, you'll be prompted with this Confirm Value Delete message:

Are you sure you want to permanently delete this value?
8.

No matter the confirmation message, click on the Yes button to remove the key or value.

Note: Changes in the Windows XP Registry are made immediately. There are no Save or Undo options like you may be used to in other programs.
9.

Close Registry Editor.
10.

Restart your computer. Depending on the keys or values you may have removed, you may need to restart to see the changes take effect in Windows XP or in another program.
11.

If deleting the registry key or value didn't do what you expected it to do, you can always restore the registry key using the backup you created in Step 4.

Source: http://pcsupport.about.com/od/windowsxp/ht/deleteregkeyxp.htm