>>You can't, not really. Help me to some extent. >>Every car has some stains on the seats, are you going to bother to map those ? Yes, anything with some volume should be able to interact with the seat. There some physics rules should come handy. and so on >> Chips in the paint ? Yes, again some interaction with the environment. How environment can effect the car? >> Oil on the engine ? Yes, of course. Help me outhere as well. >> No. You choose the bits that are important to what you want to write, and you map those to classes. Getting it exactly the way it is in the real world is not the point, mapping the bits you want to interact with so they work smoothly in your program, is. 'm want to simulate the max possible.
sinanju
Posts
-
Mapping a real world object to OOP -
Mapping a real world object to OOPhow to map an object of the so called real life to programming world. Say there is a car. How can we take this to programming world. Car with wheel, engine, etc. Car can move without even doors, it's movement will be effected if one wheel is with low air pressure. etc. Here car should be an object, wheel also an object. Car has wheels, doors etc., but wheel has different impact than doors as far as motion is concerned. Can someone help me visualize this object to OOP?
-
Window service and desktop application communication?How can some message be passed between window service and desktop application? 1. from service to desktop application. (am interested here most) 2. from desktop to service
-
Outlook with Window service?Thanx for the reply but these solutions don't seem to work. The actual line of error is
Outlook.MAPIFolder objFolder; Outlook.NameSpace objNamespace; objFolder = objNamespace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);//HERE
here objFolder.Items.Count = 0. While in case of console application im getting the actual no of mails. -
Outlook with Window service?I am working with the office outlook, it is working fine with console version, but when i use it with window service, it does not work. I am getting the following log entry Event Type: Error Event Source: Microsoft Office 11 Event Category: None Event ID: 2001 Date: 8/16/2006 Time: 6:38:46 PM User: N/A Computer: XYZ Description: The description for Event ID ( 2001 ) in Source ( Microsoft Office 11 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Microsoft Office Outlook, . Any idea???
-
How to make sure that the outlook has done the send/receive process?Office.CommandBarControl oSendReceiveAll = (Office.CommandBarControl)oBarCrls["Send/Receive All"]; oSendReceiveAll.Execute();
Here how can i make sure that the send/receive process is over? -
How to disable Outlook security alerts?And how do they do it? any clue...
-
How to disable Outlook security alerts?How to disable outlook security setings and avoid security warnings, dialogs, messages, alerts etc? So that my service keep on working without users' interactions.
-
animation on win form like that of MSN messenger?I've searched a link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=530668&SiteID=1 It seems to me relevant, I'll try it later.
-
animation on win form like that of MSN messenger?Thank you leppie, for you reply. Here how can i manage to display it, some threading will do the trick, so that i can move the form around while the animation is on?
-
animation on win form like that of MSN messenger?thank you :josh: for the reply. The messenger animation may be like what you've said. But, I have a single animated gif file, whose animation is on its own. Do u have any solution for this scenerio?
-
animation on win form like that of MSN messenger?How can I display the animation on the win form like that of MSN messenger, which is displayed when we click the login button? By simply placing an animated gif file on the win form, it starts animating, even in design mode. But, I want to display it for some button's click event, like exactly that of MSN messenger. Any idea?
-
How to add a context menu to notifyicon for window service?with vs.net studio, it is simple to create a window service, and adding a notifyicon to bring it to system tray. But now how to add the context menu to this system trayed window service.
-
How to avoid extra slashes and quotes???This doesn't seem to help, im afraid. istead the following seems to be a step to the solution char[] strArr = ds.Tables[1].Rows[1][1].ToString().ToCharArray(); here strArr doesn't have the extra slashes or quotes, but now how to use this char array instead of string in my code. As casting it back to string will get me the string with extra slashes as before.
-
How to avoid extra slashes and quotes???>>How do you reckon that value looks like that? Are you singe stepping through the code and looking at the watch windows? As i didn't get the desired result, so i stepped through the code looking at the watch window, and encounter these extra stuff. >>That's the way you would write that string as a string constant, so that's how it's displayed. sorry, i couldn't understand this.
-
How to avoid extra slashes and quotes???this is the entry in db <span id="Label1" style="font-family:Arial Narrow;font-size:XX-Large;font-weight:bold;font-style:italic;text-decoration: overline;"> Now when i retrieve in source code string str = ds.Tables[0].Rows[1][1].ToString(); my str value contains the following value, where i found extra slashes with each quote, plus two extra quotes at the each end of the string "<span id=\"Label1\" style=\"font-family:Arial Narrow;font-size:XX-Large;font-weight:bold;font-style:italic;text-decoration: overline;\">" how to get rid of these quotes and slashes?
-
how to remove multiple rows from datatable in dataset, populated not from database?I am Binding a parent/child table to a datagrid, where the child rows are attached to a repeater, Now i want to delete the selected child rows from in memory storage, DataSet. __________________________________________ Parent1 child1 child2 child3 * Parent2 child1 child2 * child3 Parent3 child1 * child2 child3 _______________________________________ For a button outside the grid, how to navigate the *(checked) entries and delete them.
-
update datagrid(master/detail) changes to dataset?I am binding a datagrid with repeater(for child table) to a dataset(parent/child tables), and there is checkbox in child table). Is this possible that i can know all the checked options in the child table, and update back to dataset.
-
How to redirect to separate window with Button click? -
How to update only one row in database?I think, I have made the question mix up. My question should be for SQL forum. Just forget about datagrid, and let me know, what might be the sql query for updating the top row in table sorted by date descending. Thanks for the reply.