<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7676622658180685458</id><updated>2011-11-27T17:02:19.221-08:00</updated><category term='revenue model'/><category term='Win32 API'/><category term='Assembly'/><category term='internet earning'/><category term='MASM'/><title type='text'>Rohit (The Coder)</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kaundal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://kaundal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Rohit</name><uri>http://www.blogger.com/profile/04535233357792380399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='25' src='http://bp0.blogger.com/_cZUwh7Vahq4/RxOm5mE59QI/AAAAAAAAAA0/X2eMuPzoeKY/s320/rohit.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7676622658180685458.post-4007200768050610928</id><published>2009-11-28T05:39:00.000-08:00</published><updated>2009-11-28T05:41:02.545-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='internet earning'/><category scheme='http://www.blogger.com/atom/ns#' term='revenue model'/><title type='text'>Types of internet revenue model taking example of youtube</title><content type='html'>&lt;p&gt;There are six basic Internet revenue models. Let’s explore how YouTube could leverage any or all of them…&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Advertising:&lt;/strong&gt; This is the most obvious and widely-accepted model. Nevertheless, within this category, there are several sub-categories, including text ads and video ads. Up until now, YouTube has only opted for text ads. But pre-roll, post-roll, or interstitial video ads may be right around the corner. Many video sites already display these ads, so it’s nothing new or extraordinary. YouTube may be hesitant as they don’t want to ruin the user experience that they’ve come to be known for. Moreover, YouTube could implement an e-mail ad campaign, whereby sponsored/ad-supported e-mails are mailed out to users on a daily, weekly, or monthly basis.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Subscription:&lt;/strong&gt; The video giant could force users to pay a small monthly fee to access certain parts of the site, or perhaps high-quality content. The subscription would eliminate ads and provide better streaming quality. It is not my belief that the entire site should be subjected to a subscription-based model, as this would cause a user back-lash. But by providing premium features at a small cost, this may prove to be a lucrative revenue stream.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Affiliate:&lt;/strong&gt; This category is somewhat similar to advertising, but focused more on CPA (cost-per-action). In other words, YouTube only benefits when a user buys or pays for the given service displayed on the side of the page. Pay-outs are much better than CPMs or CPCs, but less frequent. If YouTube can quantify and justify a case for an affiliate program, then it may be something to explore. My only concern is that the affiliate products closely reflect the content of the video being viewed. That way, the user experience remains optimal and the targeted affiliate link may be more likely to incite a user click-through.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Content:&lt;/strong&gt; YouTube could undertake an endeavour similar to the Google Video strategy. In order words, users upload their videos and smack a price on them. If people download them and they sell, the user gets paid out and YouTube receives a commission on the sale. Think of iTunes for user-generated video content.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Product Sales:&lt;/strong&gt; The idea of tangible product sales may seem hard to fathom at first. In any case, YouTube could make a big push to sell ‘everything YouTube’. They could sell branded T-shirts, mugs, hats, pens, or just about anything. Although this may not be the most sexy angle to choose, it’s a very low-risk, low-cost approach to business. As is the case with many of these Internet revenue models, many could be chosen and incorporated if executed properly.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Directory Services:&lt;/strong&gt; The start-up could charge video directors/producers, singers, models, actors, etc… a small fee per video to appear in a coveted video directory. This designated area could be access by Hollywood directors, business executives, and talent scouts to identify possible talent and/or ‘The Next Big Thing’.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7676622658180685458-4007200768050610928?l=kaundal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaundal.blogspot.com/feeds/4007200768050610928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7676622658180685458&amp;postID=4007200768050610928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/4007200768050610928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/4007200768050610928'/><link rel='alternate' type='text/html' href='http://kaundal.blogspot.com/2009/11/types-of-internet-revenue-model-taking.html' title='Types of internet revenue model taking example of youtube'/><author><name>Rohit</name><uri>http://www.blogger.com/profile/04535233357792380399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='25' src='http://bp0.blogger.com/_cZUwh7Vahq4/RxOm5mE59QI/AAAAAAAAAA0/X2eMuPzoeKY/s320/rohit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7676622658180685458.post-1903595725633952288</id><published>2009-11-03T20:27:00.000-08:00</published><updated>2009-11-03T20:33:19.966-08:00</updated><title type='text'>How to start a company ?</title><content type='html'>&lt;p&gt;If you pick up any book on being an entrepreneur, the first chapter will be about, “Do you have what it takes to start a company?”&lt;/p&gt;  &lt;p&gt;The point all these books are trying to make is, “It is not easy to start a company! It is positively difficult to be an entrepreneur.”&lt;/p&gt;  &lt;p&gt;Most people don’t want to take the risk to start a new company because they are afraid of things like:&lt;br /&gt; &lt;/p&gt;  &lt;ul&gt;&lt;li&gt;What if I fail? &lt;/li&gt;&lt;li&gt;What if it does not work? &lt;/li&gt;&lt;li&gt;What if I go bankrupt? etc. etc.&lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;People, who work past these initial fears and decide to go ahead and start a company, have to be prepared to really work for it. It is difficult to start a company and most people quit on the way. There will be many things that de-motivate you when you go about starting your company.&lt;/p&gt;  &lt;p&gt;If you seriously want to start a company be ready to work very very hard for it! &lt;/p&gt;  Next we have explained how you can pick the best possible "business idea" for your new company.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Most people who are reading this already have a great business idea and now they want to start a company and enforce their idea.&lt;/p&gt;  &lt;p&gt;Everyone has “brilliant” business ideas. To keep business ideas in check, in all big companies there is some sort of idea screening process. Most of the time the problem with ideas is that the ideas are brilliant but not very feasible in the real world.&lt;/p&gt;  &lt;p&gt;The first way to screen your ideas is to answer the following questions. These questions are designed to give you a better understanding of your own idea. If you find that you cannot answer these questions, you might need to research about your idea some more. &lt;/p&gt;  &lt;ul&gt;&lt;li&gt;Is there a genuine need for your product/service? &lt;/li&gt;&lt;li&gt;Is the need substantial enough to support a profitable business? &lt;/li&gt;&lt;li&gt;Do competitors currently offer similar products/services? If “yes”, do your ideas offer distinctive advantages and customer benefits that competitors don’t? &lt;/li&gt;&lt;li&gt;Is the product/service feasible to produce? &lt;/li&gt;&lt;li&gt;Is the product/service legal? &lt;/li&gt;&lt;li&gt;Is it safe? &lt;/li&gt;&lt;li&gt;If the product/service is a durable good, can it be easily serviced? (Who will service it?) &lt;/li&gt;&lt;li&gt;Are the investment costs required to develop, produce, and market the product reasonably, within your financial realities? &lt;/li&gt;&lt;li&gt;Is the “pay-back period” fast enough to allow you to stay in business? &lt;/li&gt;&lt;li&gt;Can the product be expanded into a line of similar or compatible items later, if the original product was successful? &lt;/li&gt;&lt;li&gt;Can you protect the product with a patent or copyright? &lt;/li&gt;&lt;li&gt;Does the product infringe upon anyone else’s patents or copyrights? &lt;/li&gt;&lt;li&gt;Are all the needed raw materials and supplies readily available? &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;In many cases, once you answer these questions you realize that your idea is not that great. You might have to brainstorm and come up with another idea. But, sometimes, what happens is that people are so convinced about their idea they disregard all the information that clearly points out that their idea is not profitable. This always results in failure. What ever you do, make sure you do not fall for this mistake!&lt;/p&gt;  &lt;p&gt;&lt;br /&gt; &lt;/p&gt;  &lt;p&gt;If your idea has passed the initial questionnaire you should screen your idea further. To further screen your idea, do the following:&lt;/p&gt;  &lt;h2&gt;Conduct “Experience Surveys”&lt;/h2&gt;  &lt;p&gt;What we mean by “Experience Surveys” is that you will have to find and then ask professionals about your idea. Query the following people to get a better idea about your idea:&lt;/p&gt;  &lt;p&gt;Engineers: Ask them whether the product/service can be designed and built in a feasible way? What will go into the designing and building of the product?&lt;/p&gt;  &lt;p&gt;Suppliers: Ask the suppliers whether the raw materials or whatever may be required to make the product/service available at a reasonable rate?&lt;/p&gt;  &lt;p&gt;Middlemen: Ask the middlemen whether there is a market for your product/service? Would the middlemen be interested in carrying your product/service?&lt;/p&gt;  &lt;p&gt;Government officials/lawyers: Ask them whether there is any licensing, safety or environmental requirements of which you should be aware. Will warning labels or disclaimers be required?&lt;/p&gt;  &lt;p&gt;However “original” you think your idea is, there is a good possibility that someone out there has already done it. Make sure to use the Internet to look up your competitors product. Learn as much as you can about your competitors product.&lt;/p&gt;  &lt;p&gt;Read up all the news items about your competitors and their product. Read up about their pricing, profits, distribution, marketing etc.&lt;/p&gt;  &lt;p&gt;At the end of all this, you will have a pretty good idea about your product/service. You your self will know whether it is a profitable idea or not.&lt;/p&gt;  &lt;p&gt;Be sure to let the idea go if it not a profitable one. As I said earlier, many people can’t let go of their idea even though they “know” it will not work. This always leads to failure. Do not do this.&lt;/p&gt;  If you realize that your idea is not that great let it go. Brainstorm and find a new idea. But for now, let us assume that you have found a good idea! The next step is to make a business plan.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The process of planning makes you think. This makes you understand what decisions and steps need to be taken.&lt;/p&gt;  &lt;p&gt;A comprehensive business plan gives you a better understanding of the details than would be possible if the business were just run on a day to day basis.&lt;/p&gt;  &lt;p&gt;A well-written business plan will be very effective if you try to communicate with partners, employees, investors or venture capitalists ideas about your business.&lt;/p&gt;  &lt;p&gt;A well thought out business plan will convince investors that you are serious. This greatly increases your credibility.&lt;/p&gt;  &lt;p&gt;A written document is a reference to how much a business has achieved and how much it plans to achieve in the future.&lt;/p&gt;  &lt;p&gt;In conclusion: I you are a serious entrepreneur, you have to have a business plan. If you don’t, your business will not be going in any direction in particular. You shall waste a lot of time making haphazard decisions instead of progressing.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The process of planning makes you think. This makes you understand what decisions and steps need to be taken.&lt;/p&gt;  &lt;p&gt;A comprehensive business plan gives you a better understanding of the details than would be possible if the business were just run on a day to day basis.&lt;/p&gt;  &lt;p&gt;A well-written business plan will be very effective if you try to communicate with partners, employees, investors or venture capitalists ideas about your business.&lt;/p&gt;  &lt;p&gt;A well thought out business plan will convince investors that you are serious. This greatly increases your credibility.&lt;/p&gt;  &lt;p&gt;A written document is a reference to how much a business has achieved and how much it plans to achieve in the future.&lt;/p&gt;  &lt;p&gt;In conclusion: I you are a serious entrepreneur, you have to have a business plan. If you don’t, your business will not be going in any direction in particular. You shall waste a lot of time making haphazard decisions instead of progressing.&lt;/p&gt;&lt;p&gt;Situation analysis is basically done to analyze your:&lt;br /&gt;    1. ‘Customer’ and ‘customer relation to product’&lt;br /&gt;    2. Location where you could set up your business&lt;br /&gt;    3. Competition&lt;br /&gt;   &lt;/p&gt;     &lt;p&gt;Situation analysis gives you a much better understanding about these three things. It is used to understand what kind of environment your company will be in, what are the factors that may affect its possibility to succeed, and what might make your business fail.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;To understand your consumer and his/her relation to your product/service, answer the following: &lt;/p&gt;    &lt;ul&gt;&lt;li&gt;Who is the likely consumer?   &lt;/li&gt;&lt;li&gt;Where does he/she live?   &lt;/li&gt;&lt;li&gt;What is his/her age? &lt;/li&gt;&lt;li&gt;What is his/her income?   &lt;/li&gt;&lt;li&gt;What is his/her level of education? &lt;/li&gt;&lt;li&gt;How many potential customers are there?   &lt;/li&gt;&lt;li&gt;Are customers likely to perceive a purchase risk? &lt;/li&gt;&lt;li&gt;What needs does the product/service satisfy? &lt;/li&gt;&lt;li&gt;How is the product going to be used? &lt;/li&gt;&lt;li&gt;What are the other uses of the product?   &lt;/li&gt;&lt;li&gt;How many units is the customer likely to buy?   &lt;/li&gt;&lt;li&gt;If it is a service, will the customer have to be present when the service is provided? &lt;/li&gt;&lt;li&gt;Where would the customer learn about the product/service (e.g. friends, newspaper)? &lt;/li&gt;&lt;li&gt;Who actually would buy the product (e.g. Mom, Purchasing agent)? &lt;/li&gt;&lt;li&gt;Who influences the buying decision? (e.g. kids, engineers etc.) &lt;/li&gt;&lt;li&gt;How much would the customer be willing to pay for the product? &lt;/li&gt;&lt;li&gt;How much would price change affect your customer? &lt;/li&gt;&lt;/ul&gt;     &lt;p&gt;Not all these questions pertain to every type of business. If they do pertain to your business, find out the answers. After finding the answers you will have a very good understanding of your customers and your product/service.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you want to start a food stall or a restaurant or plan to go into the retail business, it is very important that you choose a good location for your business. It is also important to choose a good location when you are about to start a production or manufacturing house.&lt;/p&gt;     &lt;p&gt;To evaluate the location that you have chosen, answer the following questions:&lt;/p&gt;    &lt;ul&gt;&lt;li&gt;What is the total cost of renting or acquiring the property? &lt;/li&gt;&lt;li&gt;What is the estimated cost of any necessary repairs, remodeling etc.? &lt;/li&gt;&lt;li&gt;Does the site provide as much space as you need? &lt;/li&gt;&lt;li&gt;If customers visit your place of business-         &lt;br /&gt; -Is adequate, convenient and safe parking available?&lt;br /&gt; -Is public transportation available?               &lt;/li&gt;&lt;li&gt;Is the location likely to develop "drop in" or "impulse" consumer traffic? &lt;/li&gt;&lt;li&gt;Is the site located at a popular area (E.g. Near a movie theater or a shopping complex)? &lt;/li&gt;&lt;li&gt;If not, you will have to spend a lot of money marketing your product/service and it will eat into your profits! &lt;/li&gt;&lt;li&gt;What other types of businesses are located around your site? Are they going to compete with your business? &lt;/li&gt;&lt;li&gt;Is fire protection close by? &lt;/li&gt;&lt;li&gt;Are basic utilities available (E.g. water, electricity, sewer, gas etc.) at a reasonable cost? &lt;/li&gt;&lt;li&gt;Are you going to be transporting products from one part of India to the other? If so, are the expressways located close to your location? &lt;/li&gt;&lt;li&gt;What is the history of the site? What types of businesses were previously run at the site? Why are these businesses no longer there?&lt;/li&gt;&lt;/ul&gt;      &lt;p&gt;After seeking answers to these question you will be able to get a good judgment of how good the location you have selected is.&lt;/p&gt;     &lt;p&gt;In some businesses some questions are more important than other questions. For E.g. If you are in the manufacturing business, you will not have too many customers coming to your site. So you do not have to bother about customer parking. If you are in the retail business, customer paring is an important factor.&lt;/p&gt;     &lt;p&gt;If you are an entrepreneur you will generally find it most convenient to start of your business right at home. This removes a lot of overhead costs of rent, electricity bill etc.&lt;/p&gt;     &lt;p&gt;Only if your business is so large that accommodating it at home will be difficult, think about choosing another location. In some cases, it is required that you set up at some other location, (E.g. when you are starting a restaurant) in that case, you have no choice but to choose the location wisely. Let the location questionnaire above guide you in your decision.&lt;/p&gt;&lt;p&gt;The following is the list of questions that will help you analyze your competition. Answer these questions and you shall know much more about your competitors and how they are going to affect your business.&lt;/p&gt;     &lt;p&gt;(Make sure that you do not define your competition too narrowly. For E.g. when you are staring a movie theater, your competition is not only other movie theaters, but also VCD rent places etc.)&lt;/p&gt;    &lt;ul&gt;&lt;li&gt;Who are your potential competitors? &lt;/li&gt;&lt;li&gt;What are their strengths and what are their weaknesses? &lt;/li&gt;&lt;li&gt;Who are the customers of each competitor? &lt;/li&gt;&lt;li&gt;Why might a customer buy from them instead of you? &lt;/li&gt;&lt;li&gt;What is the approximate sales volume of each competitor? Are there significant trends in sales? &lt;/li&gt;&lt;li&gt;What is market share of each competitor? &lt;/li&gt;&lt;li&gt;What is the pricing structure of each competitor? &lt;/li&gt;&lt;li&gt;Do your competitors enjoy the support of a strong franchise or parent company? &lt;/li&gt;&lt;li&gt;How is each competitor positioned? This means what is the mental image that comes in your consumers mind when he/she thinks about your competitor? &lt;/li&gt;&lt;li&gt;How do your competitors promote their products and services? &lt;/li&gt;&lt;li&gt;What are the distribution arrangements of the competitors? &lt;/li&gt;&lt;li&gt;Who are the suppliers of each competitor? &lt;/li&gt;&lt;li&gt;Are there any new competitors that are going to come up in the industry? &lt;/li&gt;&lt;li&gt;What are the management strengths and weaknesses of each major competitor? &lt;/li&gt;&lt;li&gt;Are the competitors well financed? &lt;/li&gt;&lt;li&gt;How committed is each competitor? Will they fight hard for market share? &lt;/li&gt;&lt;li&gt;Will the future technological developments affect your competitor? Are they better equipped to handle the change than you? &lt;/li&gt;&lt;li&gt;How do the competing products rate in terms of quality, size, appearance etc.? &lt;/li&gt;&lt;li&gt;What are the credit terms of the major competitors? &lt;/li&gt;&lt;li&gt;How much warrantee do the competitors give for their products? &lt;/li&gt;&lt;li&gt;Do the competitors own any exclusive distribution rights that would affect your market entry? &lt;/li&gt;&lt;li&gt;What are their hours of operation? &lt;/li&gt;&lt;li&gt;How saturated is the competition? Is there room for a new business?&lt;/li&gt;&lt;/ul&gt;      &lt;p&gt;Before you go ahead, you must try to find out the answers to all the questions on this page. This will give you a good understanding of your own business. During the process of finding the answers you may realize that there are certain flaws in your thinking and your business idea. Go back and correct these flaws.&lt;/p&gt;     &lt;p&gt;All this information will have to be documented into the business plan. Having information about your customers, competitors etc. tells you how you should run and set up your business so that you can cater to the needs of the market. Having all this is essential if you intend to approach a bank, financial institution or a venture capitalist with your idea.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7676622658180685458-1903595725633952288?l=kaundal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaundal.blogspot.com/feeds/1903595725633952288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7676622658180685458&amp;postID=1903595725633952288' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/1903595725633952288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/1903595725633952288'/><link rel='alternate' type='text/html' href='http://kaundal.blogspot.com/2009/11/how-to-start-company.html' title='How to start a company ?'/><author><name>Rohit</name><uri>http://www.blogger.com/profile/04535233357792380399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='25' src='http://bp0.blogger.com/_cZUwh7Vahq4/RxOm5mE59QI/AAAAAAAAAA0/X2eMuPzoeKY/s320/rohit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7676622658180685458.post-5770265188029434476</id><published>2008-06-11T21:50:00.002-07:00</published><updated>2008-06-11T21:51:43.109-07:00</updated><title type='text'>A Simple Hello World Program in MASM</title><content type='html'>1. Code File (.ASM):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.386&lt;br /&gt;.model flat,stdcall&lt;br /&gt;option casemap:none&lt;br /&gt;&lt;br /&gt;include windows.inc&lt;br /&gt;include kernel32.inc&lt;br /&gt;include user32.inc&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;includelib kernel32.lib&lt;br /&gt;includelib user32.lib&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DlgProc proto :DWORD,:DWORD,:DWORD,:DWORD&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.data&lt;br /&gt;&lt;br /&gt;appname db " My First Applicaton",0 ; you can use db for BYTE also&lt;br /&gt;msgerror db "Error !",0&lt;br /&gt;msgnotext db " No Text Entered",0&lt;br /&gt;strformat db "%s %s",0&lt;br /&gt;hello db "Hello",0&lt;br /&gt;&lt;br /&gt;.data?&lt;br /&gt;&lt;br /&gt;yourname db 30 dup(?) ; buffer to store name equal to C equivalent name[30];&lt;br /&gt;hinstance dd ? ;a DWORD varibale to store the instance of Application&lt;br /&gt;greetingmessage db 100 dup(?)&lt;br /&gt;&lt;br /&gt;.const&lt;br /&gt;&lt;br /&gt;IDD_DLGMAIN equ 1001&lt;br /&gt;IDC_NAME equ 1003&lt;br /&gt;IDC_LBLNAME equ 1002&lt;br /&gt;IDC_CMDOK equ 1004&lt;br /&gt;&lt;br /&gt;.code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;start:&lt;br /&gt; invoke GetModuleHandle,0; invoke is used to call a fucntion&lt;br /&gt; mov hinstance,eax ;the finction returns value in Accumulater Register which is EAX in x86 machines...ofcourse its Asemlbly you need to know ;)&lt;br /&gt; invoke DialogBoxParam,hinstance,IDD_DLGMAIN,0,addr DlgProc,0 ; addr DlgProc is C equivalent to &amp;DlgProc &lt;br /&gt; invoke ExitProcess,eax&lt;br /&gt; &lt;br /&gt;DlgProc proc hwnd:DWORD,umsg:DWORD,wparam:DWORD,lparam:DWORD&lt;br /&gt; .if umsg==WM_COMMAND&lt;br /&gt;  .if wparam==IDC_CMDOK&lt;br /&gt;   invoke GetDlgItemText,hwnd,IDC_NAME,addr yourname,sizeof yourname ;Fetch up the text from Textbox IDC_NAME and store it in the bufer&lt;br /&gt;   .if eax&gt;0 ;If the textbox contains data because the function will return the lenght of string it fetched&lt;br /&gt;    invoke wsprintf,addr greetingmessage,addr strformat,addr yourname,addr hello&lt;br /&gt;    invoke MessageBox,hwnd,addr greetingmessage,addr yourname,MB_ICONINFORMATION&lt;br /&gt;   .else&lt;br /&gt;    invoke MessageBox,hwnd,addr msgnotext,addr msgerror,MB_ICONASTERISK&lt;br /&gt;   .endif&lt;br /&gt;  .endif&lt;br /&gt; .elseif umsg==WM_CLOSE&lt;br /&gt;  invoke EndDialog,hwnd,0&lt;br /&gt;  invoke PostQuitMessage,0&lt;br /&gt; .endif&lt;br /&gt; xor eax,eax&lt;br /&gt; Ret&lt;br /&gt;DlgProc EndP&lt;br /&gt; &lt;br /&gt;end start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Resource File (.RC) :&lt;br /&gt;&lt;br /&gt;;This Resource Script was generated by WinAsm Studio.&lt;br /&gt;&lt;br /&gt;#define IDD_DLGMAIN 1001&lt;br /&gt;#define IDC_NAME 1003&lt;br /&gt;#define IDC_LBLNAME 1002&lt;br /&gt;#define IDC_CMDOK 1004&lt;br /&gt;&lt;br /&gt;IDD_DLGMAIN DIALOGEX 0,0,250,94&lt;br /&gt;CAPTION "A Hello World Application"&lt;br /&gt;FONT 8,"MS Sans Serif"&lt;br /&gt;STYLE 0x10cc0000&lt;br /&gt;EXSTYLE 0x00000000&lt;br /&gt;BEGIN&lt;br /&gt; CONTROL "Enter your name :",IDC_LBLNAME,"Static",0x50000000,11,24,55,13,0x00000000&lt;br /&gt; CONTROL "",IDC_NAME,"Edit",0x50010080,75,24,171,12,0x00000200&lt;br /&gt; CONTROL "&amp;OK",IDC_CMDOK,"Button",0x50010000,71,55,99,20,0x00000000&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7676622658180685458-5770265188029434476?l=kaundal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaundal.blogspot.com/feeds/5770265188029434476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7676622658180685458&amp;postID=5770265188029434476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/5770265188029434476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/5770265188029434476'/><link rel='alternate' type='text/html' href='http://kaundal.blogspot.com/2008/06/simple-hello-world-program-in-masm.html' title='A Simple Hello World Program in MASM'/><author><name>Rohit</name><uri>http://www.blogger.com/profile/04535233357792380399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='25' src='http://bp0.blogger.com/_cZUwh7Vahq4/RxOm5mE59QI/AAAAAAAAAA0/X2eMuPzoeKY/s320/rohit.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7676622658180685458.post-5517697483714163900</id><published>2008-06-10T23:27:00.001-07:00</published><updated>2008-06-11T21:47:08.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MASM'/><category scheme='http://www.blogger.com/atom/ns#' term='Assembly'/><category scheme='http://www.blogger.com/atom/ns#' term='Win32 API'/><title type='text'>Microsoft Macro Assembler Tutorial (MASM)</title><content type='html'>Microsoft Macro Assembler Tutorial (MASM)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Perquisites:&lt;br /&gt;&lt;br /&gt;• Basic Programming knowledge of Any Language&lt;br /&gt;• Must know what a compiler, interpreter, assembler and linker are.&lt;br /&gt;&lt;br /&gt;    Introduction:&lt;br /&gt;&lt;br /&gt;MASM is Assembler developed by Microsoft for assembly language programmers to be able to create Windows Applications using WINDOWS API’s.&lt;br /&gt;It Contains set of include files and libraries which contains declarations of various windows API’s. In this tutorial I’ll be telling you basic features of MASM and how to code a simple Hello Application using MASM. For writing MASM apps I will use a free IDE (Integrated Development Environment) WinASM. WinASM is free and have good features like intellisence which is need of programmers in this fast coding world.&lt;br /&gt;&lt;br /&gt;Basic Building Blocks:&lt;br /&gt;&lt;br /&gt;A programming language consists of Data types, Expressions or Statements, Conditionals and Looping. Masm comprises of “Basically” 3 types of Data. I insist on the Word Basically because the Windows Data types declared in the header files like ‘HWND’, ‘LPCTR’ are none other then Aliases used for WORD and DWORD data type in MASM.&lt;br /&gt;&lt;br /&gt;So there are basically three Data types in MASM:&lt;br /&gt;1. BYTE: This is the smallest data type and uses 8 bit for its storage. its alias is 'db'.&lt;br /&gt;2. WORD: This data type uses 16 bits and is generally referred to int/integer data type in other languages. its alias is 'dw'.&lt;br /&gt;3. DWORD: This is called ‘Double Word’ and takes 32 bits for its storage and is referred to as long/unsigned long data type in other Languages. its alias is 'dw'.&lt;br /&gt;&lt;br /&gt;So you write a program using these three basic data types.&lt;br /&gt;Here I would like to give a general reference to you guys how and when to use these data types.&lt;br /&gt;For storing an integer number you should use WORD data type,&lt;br /&gt;For storing a Long Integer number you should use the DWORD data type and for storing a single character use BYTE Data type.&lt;br /&gt;Strings are handled in different ways,(They are rather Array of bytes). &lt;br /&gt;Now comes the general instructions used in MASM. You all are thinking that Assembly Programming must be tough but guys it isn’t masm contains macros which enables you to use English like statements such as if…else statement, while…end while statement. Now importantly comments are used by ‘;’ sign. All the coders must know how comments are crucial in Big Software Development&lt;br /&gt;&lt;br /&gt;e.g. if you want to compare two variables , if they are equal or not, an assembly instruction should be as&lt;br /&gt;&lt;br /&gt;CMP EAX, BYTE PTR [szName]&lt;br /&gt;But in MASM you can use Conditions Macro .IF as&lt;br /&gt;&lt;br /&gt;.IF EAX==BYTE PTR [szName]&lt;br /&gt;&lt;br /&gt;.END IF&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;General Structure of a MASM Program:&lt;br /&gt;&lt;br /&gt;Here I will write a general structure of a MASM program and I will explain it. I will be writing a simple program that will show a message box on the screen&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.386&lt;br /&gt;.model stdcall,flat&lt;br /&gt;&lt;br /&gt;Include windows.inc&lt;br /&gt;Include kernel32.inc&lt;br /&gt;&lt;br /&gt;Includelib kernel32.lib&lt;br /&gt;Includelib user32.lib&lt;br /&gt;&lt;br /&gt;.data&lt;br /&gt;&lt;br /&gt;szMessage db “Hello !”,0&lt;br /&gt;szTitle db “First MASM Program”,0&lt;br /&gt;&lt;br /&gt;.code&lt;br /&gt;&lt;br /&gt;Start:&lt;br /&gt; Invoke MessageBoxA, 0, addr szMessage,  addr szTitle&lt;br /&gt; Invoke ExitProcess, 0&lt;br /&gt;End Start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now the first line is ‘.386’ this tell the Assembler that the code will be compatible on Intel 80386 Processor and above. However processor below it will not be able to execute the program 100% accurate and may even crash.&lt;br /&gt;&lt;br /&gt;The second line ‘.model stdcall,flat’ tells the Assembler that the code model to be used is for Protected mode and the parameters to the functions will be passed from right to left .&lt;br /&gt;&lt;br /&gt;Now in the third line we are using include statement which is similar to C ‘s #include statement, that is this is including a header file ‘Windows.inc’ containing prototypes of WINDOWS API’s and Constants. Note: Header Files in ASM end with .inc extension. Then you will notice another preprocessor ‘Inclidelib’ this is a flexible preprocessor which tells which libraries to be linked while generating the EXE.&lt;br /&gt;&lt;br /&gt;Now most importantly All the variables in MASM are declared in ‘.data’ section and all code is written in ‘.code’ section so I have declared 2 string variables in data section which are holding strings to be used in messagebox API.&lt;br /&gt;&lt;br /&gt;Then I am writing the code in ‘.code’ section. The code section starts with an Entry point Label which you can name anything you wish. I named it Start. Note: The label should end with semi colon. All the code is written with in this label blocks. The label is then at the ended with the ‘end’ statement as end label.&lt;br /&gt;&lt;br /&gt;Now I have Called the MessageBox function using Invoke macro. And this is the general basic tutorial of MASM. I hope I have given a brief intro of MASM to the existing programmers. &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Rohit&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7676622658180685458-5517697483714163900?l=kaundal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kaundal.blogspot.com/feeds/5517697483714163900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7676622658180685458&amp;postID=5517697483714163900' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/5517697483714163900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7676622658180685458/posts/default/5517697483714163900'/><link rel='alternate' type='text/html' href='http://kaundal.blogspot.com/2008/06/microsoft-macro-assembler-tutorial-masm_10.html' title='Microsoft Macro Assembler Tutorial (MASM)'/><author><name>Rohit</name><uri>http://www.blogger.com/profile/04535233357792380399</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='25' src='http://bp0.blogger.com/_cZUwh7Vahq4/RxOm5mE59QI/AAAAAAAAAA0/X2eMuPzoeKY/s320/rohit.jpg'/></author><thr:total>0</thr:total></entry></feed>
