Hi all, I have to share some data among processes. how to create shared memory among processes. How can we implement inter process communication techniques using win32/mfc. thanks and regards, rahul.
chito
Posts
-
How to create shared memory among processes -
How to send and receive ARP packetsYes, I want to use raw sockets with out using MFC. Thanks, Chito
-
How to send and receive ARP packetsHi All, How to send and receive ARP packets using windows raw sockets. I want to send ARP packets without using MSDN functions. Thanks and regards, Chito
-
Deleting objectsHello, I Have one dialog application. I am creating some objects dynamically in OnInitDialog() method which are used life time of the application. I want to know best method to delete these objects on closing the application. Thanks, Chito
-
File Read/WriteHello, I have a text file with the following layout. COMMAND1 ITEM1 Value1 Value2 Value3 Valu4 ITEM2 Value1 Value2 Value3 Valu4 ITEM3 Value1 Value2 Value3 Valu4 ITEM4 Value1 Value2 Value3 Valu4 ... ITEM_N COMMAND2 ITEM1 Value1 Value2 Value3 Valu4 ITEM2 Value1 Value2 Value3 Valu4 ITEM3 Value1 Value2 Value3 Valu4 ITEM4 Value1 Value2 Value3 Valu4 ... ITEM_N COMMAND3 ITEM1 Value1 Value2 Value3 Valu4 ITEM2 Value1 Value2 Value3 Valu4 ITEM3 Value1 Value2 Value3 Valu4 ITEM4 Value1 Value2 Value3 Valu4 ... ITEM_N .... COMMAND_N In this file, I have to insert new items, or change values of items or delete existing items. For suppose if I want to insert new item under "COMMAND1", what I am doing is, seeking the pointer to the end of "COMMAND1", writing remainig text into a temporary file, inserting my new text, then appending the text which is stored in temporary file. But I guess, it is not a best method. It takes much time every time I insert/edit text. Is there any other alternative to do this. Can anybody tell what is the best method to do this. Thanks & regards, Chito
-
How to change size of a control dynamicallyHello, How to change size of a activexcontrol (which is in a dialog) dynamically. How to enable autoscroll of a dialog if size of activexcontrol is bigger than size of dialog. Thanks, Chito.
-
StreamHey, I want to create streamreader object by using xml like this StreamReader sr = new StreamReader(xmlNode.InnerXml); But it is showing the following error - Illegal characters in path. Can anybody tell how to do this, Thanks, Chito
-
Listview item click eventsSet Activation property of ListView to 'Standard' and in 'ItemActivate Event' of ListView use the following code to get listview item info - ListViewItem itms = listView.SelectedItems[0];
-
Directory Dialog Box??By using FolderNameEditor class and FolderBrowser class u can make Directory Dialog Box. public class DirBrowser : FolderNameEditor { FolderBrowser fb = new FolderBrowser(); public string DirectoryPath { get { return strDirectoryPath; } } public DirBrowser() { } public DialogResult ShowDialog() { fb.Description = "Choose Directory"; fb.StartLocation = FolderBrowserFolder.MyComputer; fb.Style = FolderBrowserStyles.RestrictToFilesystem; DialogResult dlgResult = fb.ShowDialog(); if (dlgResult == DialogResult.OK) strDirectoryPath = fb.DirectoryPath; else strDirectoryPath = ""; return dlgResult; } private string strDirectoryPath = ""; } Instaniate DirBrowser class, call ShowDialog function and use DirectoryPath property to get the directory path :- DirBrowser obDirBrowser = new DirBrowser(); obDirBrowser.ShowDialog (); txtLogFilePath.Text = obDirBrowser.DirectoryPath ; Chito.
-
Defining SchemaHello, I have one element named LoadConfig. It has one attribute named 'Type'. The attribute 'Type' can have two values('PreDefined' or 'UserDefined'). If attribute value is 'PreDefined', LoadConfig element can have 3 child elements. If attribute value is 'UserDefined' LoadConfig element can have any type xml nodes as its childnodes. Can anybody explain how to make schema for this. Thanks, Chito
-
Validating a xml fileHello, How to validate a xml document against a dtd when no dtd reference is actually in the xml document. Thanks, Chito
-
Validating a xml fileHello, How to dynamically validate a xml document against a dtd when no dtd reference is actually in the xml document. Thanks, Chito
-
sharing dataHello, How do I share data in my DLL with with other DLLs? Chito
-
Few QuestionsHello, I have few questions, 1. How to know whether scrollbars appeared in a list control at run time or not. 2. How to restrict user changing listview columns widths. 3. How to know whether a user has changed list view columns or not. How to keep track of changed list view columns. 4. How to know the names of all tcp and serial ports in a computer. Chito
-
how to add combo boc control to a list viewHello, How to add a combo box control to a list view control. thanks in advance, chito
-
Border style of combo boxHello, I want my combo box border look like System.Windows.Forms.BorderStyle.FixedSingle. How to do this. Thanks in advance, chito
-
Selecting a directory nameHow to Select a existing directory name by showing a dialog. ( like in .net environment : file->newproject->location )
-
Adding a formHello, Is it possible to add a windows form as a control in another form. If possible how? (With out using MDI relation ship). Chito
-
Exception creating a controlHello, I am using one third party control. When I am going to place that control on my form it is showing following error. An exception occurred while trying to creating an instance of "XPMenus.Menus.MenuControl". The Exception was "the type of intializer for "XPMenus.Menus.MenuControl" threw an exception. chito.
-
How to load .resx fileHai I have One .resx file. I have embedded this file into my project. Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("samp.Form1")); ResourceManager rmListImages = new ResourceManager("Images1", thisAssembly); imageList = new ImageList(); imageList.ImageSize = new Size(16, 16); Bitmap icons = (Bitmap)rmListImages.GetObject("Image"); When I am running the above code it is showing the following error. An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Images.resources" was correctly embedded or linked into assembly "samp". baseName: Images locationInfo: resource file name: Images.resources assembly: samp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Can any body suggest how to solve this. Chito.