2008-01-23

Debugging VB.NET code from VB6

Hi !. This is my first programming related post on my blog. I will keep posting more programming posts based on my experience and knowledge.

In project based companies new technologies are easily adopted but this is not the case with Product based companies. Once the product is developed they have to stick with the language for years with which they developed it. Converting a product into a different programming language involves lots of development costs and this is not feasible every time.

Microsoft has done a good job by introducing Interop Toolkit. We can now develop new modules in .NET and use them in VB6. In this way we can use many good features provided by .NET. Here we use two languages .NET and VB6. So the debugging becomes little tricky, but it's not a big deal.

Debugging VB.NET code from VB6 is no different than debugging any other Visual Basic 6.0 project. Press F5 to run, attach VB6 process in VB.NET IDE, set breakpoints, and debug as you normally would.

Follow these steps to debug your .NET code:
  1. Load your .NET project in Visual Studio 2005.
  2. Build the .NET project if it has not already been built.
  3. Load your Visual Basic 6.0 code in the Visual Basic 6.0 IDE.
  4. Run your application by pressing F5 in the Visual Basic 6.0 IDE (Note: You must do this once before attaching the .NET debugger to properly load the .NET code).
  5. In Visual Studio .NET 2005, select Attach to Process... from the Tools menu.
  6. In the dialog that appears, select the VB6.exe process (Note: because the Visual Basic 6.0 code runs within the Visual Basic 6.0 IDE, you must select this process to debug).
You only need to repeat the steps above after rebuilding .NET code. The Visual Basic 6.0 IDE must be closed when rebuilding. After completing these steps, press F5 in the Visual Basic 6.0 IDE to run, set breakpoints, and debug as you normally would.

There is also an another way for debugging. Instead off attaching the vb6.exe process everytime you can configure settings in Project properties to run external program while debugging.

Follow these steps:
  1. Go to the Project properties window and select Debug tb.
  2. In Start Action section select Start external program and type the path of vb6.exe. e.g. C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE.
  3. In Command line arguments type the vb6 project path. e.g. "D:\Test Projects\Project1.VBP".
  4. Save the settings, set the break proints and press F5.

This will open the VB6 project. Press F5 to run and start debugging.

Funny Shayari

Khuda Hi Khuda... Idhar khuda hai, udar khuda hai, Jidar dekho udar khuda hai, idhar-udhar bus khuda hi khuda hai, jidhar nahi khuda hai….udhar kal khudega!

Recent News Headlines : Soft drinks Contain Dangerous Pestcides. Insan to newspaper padh sakte hain par janwaro ka kya hoga kyonki…. Aaj kal CHEETAH BHI PEETA HAI !

Pyaar Ise Kehte Hain, Jawani ko zindage ki nikhaar kehte hain, pathjad ko chaman ka majdhaar kehte hain, Ajeeb chalan hain duniya ka yaaro, Ek Dhoka hain Jise hum sab “PYAAR” kehte hain !

Mohabbat ki Chita Dil tod diya ab chitha bhi jala dena, Kafan na ho to dupatta odha dena, Koi puche rog kya tha toh nazar jukhakar “Mohabbat” bata dena!

Ai mere kadardan, Dost meri Jaan, Tum hamesha rahoge hatte katte nawjawan kyounki…. Khuda meherbaan to Gadha PAHELWAAN…..

NAMSKAR ! yeh hamari FALTOO-SMS sewa hai. is main hum logo ko waqt be waqt DISTURB Karte hai. is sewa ka labh uthane ka dhanya wad. AB APNA KAM KIJEA

1st gadha-yaar mein jis dhobi ke ghar kaam karta hu vo mujhe bahut marta hai. 2nd gadha-tu ghar chod kar bhaag kyo nahi jata. 1st gadha-kya batau yaar dhobi ki ek bahut sunder ladki hai. vo jab bhi shararat karti hai to dhobi kehta hai ki teri shadi kisi gadhe se kar dunga. bas yeh soch kar ruka hua hu

Just want to remind you that
I LOVE YOU Sender: Sania Mirza +919822334455
..
ZYADA SOCH MAT, Usne muje bheja hai.
..
Tu apna kam kar..

Yeh jo hasinao ke baal hote hai, ladko ko fasane ke jaal hote hai, pee jati hai sara khoon ladko ka tabhi to gaal itne laal hote hain…

Yu to hain hum ‘’BHRAMCHARI'’, magar jahan dekhi ‘’NAARI'’ vahan ‘’AANKH-MAARI'’, pat gayi to hamari, varna phir se ‘’BHRAMCHARI’

Harbhajan to his wife: Darling ! kya main tera pehla pyar hoo? Wife: Kardina sardar wali baat. Spinner ko kabhi opening milti hai kya?

Girlfriend Ko I LUV U Bolna Hai? Balance Khatam? Ab Kya Karoge? Kabutar K Gale Mein Bandh Ke CHITTHI Bhejoge? Nahi Na………. Main Batata Hoon... Kya Karna Hai…. Girlfriend Ka Number Mujhe De Doge Main I LUV U Bol deta Hoon!

kabhi hosla bhi azmana chahiye, bure waqt me muskurana bhi chahiye, chahe kitni bhi thand pade hafte meek baar to nahana chahiye

Wo ped kya jise me dali na ho, wo bag kya jise me mali na ho, wo ghar kya jise me ghar wali na ho, aur wo mard kya jis ki bahar wali na ho...

Haath mein takat hai to Tajmahal ko hila kar dekh…Warna..Aa baith ke do peg whiskey maar aur Tajmahal ko hilta hua dekh…

Na wo inkar karti hai na wo ikrar karti hai, kambakt mere hi sapno me aake mere dost se pyqr karti hai

Ek Aadmi ne apni wife ko khat likha Is mahine salary ki bajaye 100 kiss bhej raha hu, Wife ne Jawab diya apke salary ki bheje 100 kiss mile: Hisab bhej rahi hu, Doodh wala 2 kiss me maan gaya, Teacher ko 7 deni padi, Sabjiwala 7 me nahi mana isliye 9 deni padi, Makan malik to roj 6-7 le jata hai. Aap chinta mat karna mere pass abhi bhi 30 - 40 bachi hai, mahina aaram se kat jayega.

College ki galiyo mein ajeeb khel hota hai, Class ke bahane dilo ka male hota hai, Padne ki jagah luvmail hota hai, Isliye to Pappu har saal fail hota hai…..

Andheri sadak, sunsan kabristan, sooni haveli, kala asmaan, rat hogai soja shaitan..

Tum door sahi majboor sahi, par yaad tumhari aati hai, Jab saans wahan par leti ho toh badboo yahaan par aati hai.

teri julf hai ya raat ka andhera, teri julf hai ya raat ka andhera, ho ja GANJI kar de sawera

Ladkiyon ke college me strike thi, Ladke bhi unke saath the.. Ladkiyon ne naara lagaya...HUMARI MAANGE... Pichhe se awaaz aayi SINDHUR SE BHARO….

Durakht ke paymane pe chilman.. E husn ka furkat se sharmana... Durakht ke paymane pe chilman... E husn ka furkat se sharmana…Ye line samajh me aaye to mujhe zaroor batana

Gunghat Mein Tujhe Dekha To Deewanna Hua, Sangeet Ka Taraana Hua, Shamaa Ka Parwana Hua, Masti Ka mastaana Hua, Jaise Hi Gunghat Uthaya Is Duniya Se Ravana Hua

Dil k dard ko zuba par laate nahi, hum apni aankhon se ansu bahate nahi, Zakhm chahe kitne hi gahre kyo na ho, ?? hum DETTOL k siva kuch laagate nahi.

A true love story

A real story happens to a girl in chennai recently.. must read.

Her name was Priya. She was hit by a lorry. She is working in a call centre. She has a boy friend named Shankar. Both of them are true lovers. They always hang on the phone. You can never see her without her handphone. In fact she also changed her phone from Airtel to Hutch, so both of them can be on the same network, and save on the cost. She spends half of the day talking with shankar. Priya’s family knows about their relationship. Shankar is very close with Priya’s family. (just imagine their love) . Before she passed away she always told her friends “If I pass away please burn me with my handphone” she also said the same thing to her parents. After her death, people cant carry her body, I was there. A lot of them tried to do so but still cant , everybody including me, had tried to carry the body, the result is still the same. Eventually, they called a person who know to one of their neighbours, who can speak with the soul of dead person , who is afriend of her father. He took a stick and started speaking to himself slowly.After a few minutes, he said “this girl misses something here”. then her friends told that person about her intentions to burn her with her phone. He then opened the grave box and place her phone and SIM card inside the casket. after that they tried to carry the body. It could be moved and they carried it into the van easily. All of us were shocked. Priya’s parents did not inform Shankar that Priya had passed away. After 2 weeks Shankar called Priya’s mom. Shankar :….”Atte, I’m coming home today. Cook something nice for me.Dont tell Priya that I’m coming home today, i wanna surprise her.” Her mother replied….. “You come home first, I wanna tell you something very important.” after he came, they told him the truth about Priya.Shankar thinks that they were playing a fool. He was laughing and said “dont try to fool me - tell Priya to come out, i have a gift for her Please stop this nonsense”. then they show him the original death certificate to him. They gave him proof to make him believe. (Shankar started to sweat) He said… “Its not true. we spoke yesterday. She still calls me. Shankar was shaking. Suddenly, Shankar’s phone rang. “see this is from Priya, see this…” he showed the phone to priya’s family. all of them told him to answer.he talked using the loudspeaker mode. all of them heard his conversation. Loud and clear, no cross lines, no humming. It is the actual voice of Priya & there is no way others could use her SIM card since it is nailed inside the grave box they were so shocked and asked for the same person’s (who can speak with the soul of deal perosns) help again. He brought his master to solve this matter. He & his master worked for 5 hours. Then they discovered one thing which really shocked them…

Hutch has the best coverage. Whereever you go, our network will follows!!! :)
2008-01-22

Funny One Liners & Quotes

1. My husband and I divorced over religious differences. He thought he was God and I didn’t.
2. I don’t suffer from insanity; I enjoy every minute of it.
3. Some people are alive only because it’s illegal to kill them.
4. I used to have a handle on life, but it broke.
5. Don’t take life too seriously; No one gets out alive.
6. You’re just jealous because the voices only talk to me.
7. Beauty is in the eye of the beer holder.
8. Earth is the insane asylum for the universe.
9. I’m not a complete idiot — Some parts are just missing.
10. Out of my mind. Back in five minutes.
11. NyQuil, the stuffy, sneezy, why-the-heck-is-the-room-spinning medicine.
12. God must love stupid people; He made so many.
13. The gene pool could use a little chlorine.
14. Consciousness: That annoying time between naps.
15. Ever stop to think, and forget to start again?
16. Being “over the hill” is much better than being under it!
17. Wrinkled Was Not One of the Things I Wanted to Be When I Grew up.
18. Procrastinate Now!
19. I Have a Degree in Liberal Arts; Do You Want Fries With That?
20. A hangover is the wrath of grapes.
21. A journey of a thousand miles begins with a cash advance.
22. Stupidity is not a handicap. Park elsewhere!
23. They call it PMS because Mad Cow Disease was already taken.
24. He who dies with the most toys is nonetheless DEAD.
25. A picture is worth a thousand words, but it uses up three thousand times the memory.
26. Ham and eggs. A day’s work for a chicken, a lifetime commitment for a pig.
27. The trouble with life is there’s no background music.
28. The original point and click inter face was a Smith & Wesson.
29. I smile because I don’t know what the hell is going on.