Nishant S wrote: Anyone here knows how to have a remote object that has a method that returns a MFC object? How do you make an MFC object that is remotable? Or is this impossible?
I have tried something like this on a control. But every thing that crosses the boundries needs to Serializable or derive from MarshalByRefObject. Unfortunately, many eventargs is not serializable and those events cant be used. This was via a custom "proxy" i did. I could send you what I have.
O btw this was for my Plugin Manager article. Wanted to attempt to use it on a control. But never uploaded it, as it was rather limited. Writing your own classes seems to be better when going for remoting.
I'm in the design stage for an app I'm going to work on, and I need some guidance.
The architecture is this:
Web UI connected to an Access database on the server. There will be multiple users using the gui concurrently, and I want the all of the current UI's to automatically update themselves whenever a user makes a change that affects the database.
an example of what I need to learn how to do:
Bob is in Toronto, Gina is in Atlanta. They're both logged into the application and they're viewing the same UI, which displays a list of items from the database. Bob selects an item from the list and hits the "order" button. The item is removed from the "available items" list and placed into Bob's "order list". Meanwhile, Gina's UI updates automatically, indicating that Bob has just ordered the item, and it is removed from Gina's "available item" list.
What I need to know is what resources can I use in .NET to make this work? How do I make an event in one UI session update the UI of another session? I want to avoid the appearance of a constantly reloading page. Is this possible????
Ok, based on the advice I'd received, it apears I need to do the following. I need you guys to let me know if it can be done, and if so, what C# api's/technologies/resources are best to use for it:
1) create an ActiveX component that contains all the UI elements I need and has "listening" capability for databse events.
2) set up 2-way messaging for UI events and data updates between the component and a "contoller process" running on the server that can manipulate the database and spam out updates to the listening ActiveX controls.
The UI design and the database manipulation do not intimidate me. What does is the messaging between the server and the client-side control. This is where I need the most help.
I'm trying to make a combo box where the mouse wheel does not work and/or bubbles the event up to the parent.
Creating a new ComboBox class where OnMouseWheel is overridden does not work, nor does adding an event handler for the MouseWheel event. In both cases I get the event, but the combo box has already scrolled, defeating the purpose. Even when I put in a breakpoint I can see the new item in the combo box before my breakpoint is hit.
Basically, in this app changing a combo box means reading in a whole set of new data, so I want to force the MouseWheel to be only for the scrollable area of the display.
MouseWheel events are often a pain, as they are not part of the original Win32 API, and diverted to extra DLLs like those in IntelliPoint or Logitech mouse software. Standard window behaviour is to bubble the event to a parent window, and wheel scrolls are automatically handled.
From your description, it sounds like wheel events are processed before OnMouseWheel() is called to signal the event, so presumably it just acts as a post-event notification. I have struggled with this before in both MFC and .Net.
You might want to intercept WM_MOUSEWHEEL earlier on, by overriding PreProcessMessage(). Controls intercept all, and pre-handle several messages, at that stage, before passing the messages (and some never propogate further) to the defined event handlers. By not passing WM_MOUSEWHEEL to base.PreProcessMessage(), you should be able to keep the parent from handling it.
We are devloping a C# .NET Application and are thinking about creating a skinning function for it.
Would like to be able to create a XML document that could be loaded in and the application look and feel would change. I have looked at the stardock.com OCX control - but do not think it will work in .NET and also quite expensive.
There must be some other way of doing it - other than by hand ?
I am trying to find some code examples or source code that would show me how to create a pure tone in C# and assign it to a DirectSound buffer so that I can play it.
I have searched on Google for tone generators and sine wave generation etc but there is nothing that shows me how to create the tone from scratch. DirectSound allows me to read, create, and play a wav or other media formated file by creating a DirectSound device and playing it in a buffer, but I can't find anything on creating a tone from scratch.
I need to be able to create a tone from scratch at a certian frequency.. play it for a specific time be able to control the panning from right to left and control the volume. I am pretty sure I know how to do all of the the manipulation once I have the tone playing. I just need help with the actual generation.
im looking to add a spell checker type system to my program. I have found a few user made ones before but i they all basicly like a script (enter the word at a website and then downloading the results) it worked fine..but i want it to work offline as well. So my question is...does anyone know where i can find a complete dictionary....in text or strings (atlest maybe then i can make some kind of interface)....this might possibly the only un-awnserable question on CodeProject.
P.S: Why create my own? so then i can say i did it of course...
I have four 'basic' structures, and I have one 'collection' structure, which contains my 'basic' structures. This works fine until I make a structure array into my 'collection' structure. So, now I'm asking help, how should I define this structure array inside another structure?
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.
Last Visit: 31-Dec-99 19:00 Last Update: 30-Nov-23 23:07