error LNK1181: cannot open input file ‘kernel32.lib’ – Fix


When I tried to complie a simple C++ program with VC++ express,  I got this error error:

LNK1181: cannot open input file ‘kernel32.lib’.

Fixing it took me some time so I decideed to share how I fixed it.

 

In my case the problem was : messed up SDK versions

1. First Download and Process monitor, a simple but powerful tool from Sysinternal that was bought my microsoft

2. Next  run it and add the follwing filters.

Process name is VCexpress.exe include

Result is path not found include.

see the picture to check how its supposed to look like.

Process Monitor 3. Now compile your C++ program again. and check the results again. you will see all the paths were VC express looked for and did not find kernel32.lib

I assume that kernel32.lib is already there soewhere in your computer. it is just that VC is looking for it in the wrong place, so do a computer wide search for kernel32.lib.

Once you find it, and it is supposed to inside an SDK folder \ lib. copy the entire lib folder to one of the locations that VC was checking for the file. in my case it was C:\Program Files\Microsoft SDKs\Windows\v6.0A  (the problem was that stupid VC was looking in C:\Program Files(86)\Microsoft SDKs\Windows\v6.0A)

4. Now compile again. It should work.

5. One last thing, hit the +1 button, and say thanks in the comments sections. then you are free to go code your eyeballs out in VC

AlterIW iw_22.iwd file is incorrect – Fix it

[ad#square]
Just a few unlucky guys  (like me)  get this error when trying to start Call Of Duty Modern Warfare II with AlterIW net.

“The main/iw_22.iwd file is incorrect

The problem with this error is that it does not give you any actual hint on how to solve this problem. The file is correct, try reinstalling from scratch but you will only be wasting your time.

Actually the problem is a networking one!!! no not a file mismatch or corruption. Just go here and follow the method the same that I used to play Resident Evil 5 on LAN

I quote this from that page :

On Vista, open the “Network and sharing center”

From the left pane select “manage network connections”

press the “ALT key” on your keyboard. the top menus will appear

Select “advanced settings” from the menu “advanced”

Use the arrows to move your LAN card up in the list then save everything.

Thats That my friend, Enjoy AlterIW and don’t cheat or noob tube.

UPDATE 1 !

If the method above is not working for you, maybe you can try the following methods:

RudeBoy method: I have two cards, one is broken, so I disabled it, that was the problem.

Nixan Method: MAC RESETTING (if you changed it before)

Control Panel\Network and Internet\Network Connections\

Open Local Area Connection Properties

Click Configure

Open Advanced tab

Select Network Address and check Not Present

UPDATE 2

If you have tried everything here and still have a problem, you probably have messed your iw_22.iwd, you can download the copy that is currently working for me here

Please continue to report if any of these worked for you, and if not how did you solve the problem.

Prince of Persia The Forgotten Sands, Stuck behind a closed door?

Prince of Persia The Forgotten Sands along with many other UBISOFT games are now using a new DRM protection, the idea behind it very smart, instead of just protecting the game by DVD checks, hardware codes, and encryptions, each of which became just a pass-time for hardcore crackers like SKIDROW, RELOADED, or ViTALiTY. Now the protection method is to hide some small parts of the game inside a server, which checks the validity of your game before allowing these portions of the game to execute. this is the secret behind the new notice on the games “This game requires a permanent internet connection to play”

In the case of prince of Persia , the aspects of the game that are controlled by this server are :

– Levers logic
– Door timing
– Upgrades
– Abilities
– XP & Levels
– Area codes

so in case your connection to the server fails any of these may become problematic or behave unexpectedly.

So if you are stuck behind a closed door, you may want to check your internet connection, that is of course if you are not using the early cracked version by SKIDROW that has reported this bug and that was fixed in their later released crack fix.

Needless to say, as the gamers are furious against this new type of protection many of them started attacking the game servers with thousand of denial of service attacks, in the goal to make games unplayable even for rightful owners, and by that forcing the companies to refrain from using this protection method ever again.

Are you with or against this new DRM?

iphone not recognized by itunes but as a camera: Solution

I don’t really know the origin of this bug. But for some reason an iphone 2G 8G has stopped getting recognized by itunes for no reason. It only shows on My Computer as a Digital camera.

The solution is rather simple, but it does not clarify why it happened. But it is probably a bug in itunes.

To fix this, go to the device manager in your computer (right click my computer, manage , device manager). Look for the iphone under the USB devices tab. (the iphone should be connected while you do this. Delete the iphone’s driver ( click yes on the wanrning message).

Now hit check for new devices on the top bar in the device manager. The iphone’s driver will install again, and itunes should recognize it now.

If it is of any significance, this bug was noted on the latest version of itunes on windows 7 64bit

Do you have any idea why did this happened? this this work for you? please comment

ATI Catalyst installer crashing when installing driver version 9.8

When I was installing the new Radeon driver v9.8 the installer kept crashing before the installation started on windows vista 64.

The solution is simple, just go here

and install the appropriate update for your system. This crash is related to some problems in the Visual C++ libraries and this fix will allow you to install this new version just fine.

Did you sense any improvements with the new CCC  9.8?

503 Valid RCPT command must precede DATA FIX

Your message did not reach some or all of the intended recipients.

Subject: Insert files as printouts
Sent: 1/1/2009 12:12 PM

The following recipient(s) cannot be reached:

dest@host.com’ on 1/1/2009 12:12 PM
503 Valid RCPT command must precede DATA

Generally, when you get this error when sending a message from microsoft outlook, it is because you did not enable authentication for outgoing emails.

To fix this error open the outlook “tools menu” and select “account settings” , from there select “Change” while selecting the account you want to use from the list. Now click the “More settings” button and select “outgoing server”, click “My outgoing server (SMTP) requires authentication” and keep “Use same settings as for my incoming mail server”

Press Ok , next , finish, close, die

try it now, it should be working.

Fix desktop crashing into 16 color display mode

Problem: When Windows Xp starts, the display reverts to a low resolution 16 color mode.

Cause: Generally this is caused by a malfunctioning display adapter driver, I have seen it on built-in VGAs from intel.

Solution: reinstall the display driver, if you still have the same problem, uninstall the VGA driver and do not install a driver for it again, windows will just use software support to display your desktop correctly. but you still wont be able to play games or correctly view movies until you find a working driver and install it.

Fixing Mirror’s Edge return to main menu bug

There is a bug with version 1 of Mirror’s Edge game that causes the game to to exit to it’s main menu.Mirror's EdgeMirror’s Edge

I experienced this bug in two locations, the first after being chased by the cops after meeting Faith’s sister, the second is after climbing a pipe after running away from the helicopter in the next level.
You can easily correct this by upgrading mirror’s edge to version 1.01 using EA downloader or by downloading the patch from here

Network printing trough a password protected PC

Hello.

Some times you must use a printer connected to a computer that requires entering a password to access the shard documents and printers.

Lets assume that the printer is already shared from the other computer and added as a network printer in your computer. but when you try to print an error is returned.

Continue reading “Network printing trough a password protected PC”

Reading a .Docx file without office 2007

Sometimes you want to open a .docx file in a computer with only office 2003, you can always download the Microsoft compatibility pack from here

But if you are in a hurry, don’t have Internet or just want to check it out do the following:

Continue reading “Reading a .Docx file without office 2007”