|
Break it down into sections. What you want to expose, what you need to expose. Then sub group them into objects and collections. Then you pretty much have your DOM you just have to supply the methods, properties, and abilities you want them to do and have them interact with your application.
Cheers,
-Erik
|
|
|
|
|
This is what I'vd got so far.
<br />
public sub main()<br />
dim app as new App<br />
<br />
app.run<br />
end sub<br />
<br />
public class App<br />
private frm as new system.windows.forms.form<br />
private mDocs as new DocumentCollection 'Documents Collection<br />
<br />
public sub Run()<br />
application.run(frm)<br />
end sub<br />
end class<br />
<br />
public class DocumentCollection<br />
inherits CollectionBase<br />
'Omitted for brevity, Normal CollectionBase implementation<br />
end class<br />
Question is: How do I get the currently running instance of the App Class from another application? I would like to be able to allow other applications to get my App Object through calls like GetObject(,"Excel.Application") returns the currently running instance of an Excel.Application Object. Is there a .NET method similar to VB'6 GetObject? Is there also a .NET Method similar to RegisterActiveObject?
Thanks.
|
|
|
|
|
I don't know of any .NET BCL method that does this, but you can put your main application class into the ROT (Running Object Table) using the COM RegisterActiveObject() method as you mentioned. This is what a BCL registration method would do if there was one.
|
|
|
|
|
Currently I am working on a protocol analyzer project. I have traces of that protocol (say a point-2-point data/control protocol) stored in files. My protocol analyzer should check for the syntactic correctness as well as the semantic correctness (the correct flow/order as specified in the Spec).
Since we decided against hardcoding all the rule-checkings in the main program, the rules are put in a separate file & the inference engine loads these rules and checks for the validity of the data (from the trace files).
I thought of embedding a prolog interpreter and writing all the rules in the predicate format. But, this seems to take a pretty big performance hit. Also, another idea is, developing an interpreter for a small, powerful embedded language like Lua or SMALL -- the problem here is, these lack the flexibility of a logic programming language like Prolog.
I am sort of confused as to which approach I should pursue. Or, is there a better way?
I'd appreciate if any of you can share some ideas regarding this with me or any online references to projects which have the same nature.
Thx a lot.
|
|
|
|
|
There is a project for checking cryptographic protocols:
http://www.cryptyc.org/intro.html
you might want to download it, since it's open source maybe you can modify the sources to fit your needs.
|
|
|
|
|
Hi Dear...
I struck in a problem & I know you can help me..
I've a pro-merchant account in amazon..& I want to upload Inventory to amazon.. but getting problem..File Error..even from site upload...
Can you send me Execl file you used for that uploading...
+ if possible some coding snippet of uploading invenorty. I want to upload through coding.. send me at:
sumit_kapoor1980@hotmail.com
or chat with me at hotmail account or yahoo: sumit_kapoor1980@yahoo.com
I hope you will help me..
Thanks
Have a Nice Life..
Sumit Kapoor.
---Sumit Kapoor---
|
|
|
|
|
Hi Folks !
I had posted this before, and forgive me, if anyone responded, but I havent been back here for a while, way too much going on.
Here's my dilemma/request:
I have my home set up with x-10 gizmos everywhere, I went so far as to buy the
smarthome hal 2000 & recent upgrades that enable a box to have voice recognition,
responses via a voice engine, and create all sorts of macros to turn said x-10 gizmos
on and off. So far it is very cool and works relatively smart.
I also play the quake/RTCW games, and noticed that in RTCW some of the bots
when scripted to speak/play a soundfile they move their "mouth" to give the
illusion of speech.
What I need/want is some method to build a stand alone program, perhaps windows
based, that will imitate the functionality of the RTCW talking bot.
in Short, I'd like a talking head for my home automation speach recognition software.
I don't need it to be perfectly in sync, or have accurate emotions, just some
illusary functionality to perhaps give a personality to the computer house control.
It would be cool if I could custom "skin" it using some image format, but I'd settle
for a he or a she stock right now.
The idea is it sits static until the software "plays" a soundfile, or sound occurs,
then it "mouths" the sound it "hears", then stops.
For what it's worth, I know smarthome has sold a ton of the software, and the addition
of a talking customizable head would have a market albeit untested... we probably won't retire on it but it could be worth our while and
i'd enjoy the collaboration of the project.
I am not a student, and this is NOT an assignment,
I want something like holly on red dwarf, just a head in the box to give onlookers
a WOW !
Challenge...any takers ?
thanks for your time...
-Watchman
|
|
|
|
|
PS. sorry.
I don't C+
I can script unix and some perl and dare I say gwbasic.
I can steal & stitch html & java applets with the best of them.
I'm thinking this is best suited for a c type programmer ?
thoughts?
-Watchman
|
|
|
|
|
Sub : How to use Amazon Web Services..
Hi all...
Please let me know How to start with amazon web services..
I'm not finding any XML or REST Query format to send request to amazon..
I've purchased Seller account but How to use that to upload Items..I don't know...
Please help me getting start..
I hope some one definatly know about this
e-mail if attachment at sumit_kapoor1980@hotmail.com
Thanks...
---Sumit Kapoor---
|
|
|
|
|
|
Hi Dear thanks for reply..
But I'm not searching any matter on amazon but...I want to upload my inventory..
Problem is It s not accepting Seller ID & Password.. it return a HTML file to confirm LOgin & Password...when I post that again then it give error that file is not attached..even data was in HTML file( in ready to Post Condition)
Not getting any help How to proceed next..
Any Hint, Tip, Suggestion, or Link is Welcome...I'm waiting..
OK! Good Bye..Sumit Kapoor
---Sumit Kapoor---
|
|
|
|
|
Hi
I am in process of making an ecommerce website using ASP.NET, VB.NET. I would like to implement the real time online credit card transaction module in it.
Are there any online financial gateways which are offering such transactions for test/trial purposes (with no catches !!!) ?
Please advice. Thanks
Pankaj
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
there are lots of them and reading them is useful but online time (money) consuming
sometning like monthly or yearly compilation
|
|
|
|
|
Hello!
I'm implementing MOLAP as a project. Can anyone of you help me out in this regard, like if anyone here had already done some work on MOLAP implementation.
Bye.
|
|
|
|
|
I submitted an article to submit@codeproject.com on Saturday and was wondering how long it would take (generally) to appear on the site. (It should have required little if any changes) Anybody have any ideas? Just trying to figure out when I should expect it.
Michael
Developer, Author, Chef
|
|
|
|
|
Looks like I have my answer! For any other new author who is interested: submitting an article to submit@codeproject.com took 2 business days to appear. (I assume that is normal)
Michael
Developer, Author, Chef
|
|
|
|
|
Fairly. It can take longer; it all depends on the number of submissions at the time time you submitted, who processes the submission, and then the turn around time based on how much time the person processing the submission has to update CP.
Cheers,
-Erik
|
|
|
|
|
It took about 2 weeks for one of mine to appear. I think it can depend on the complexity and how busy the reviewers are (obviously).
www.CoderForRent.com
GET A PROGRAMMING JOB TODAY! We have the cheapest rates anywhere.
FREELANCE WORK AVAILABLE NOW!
|
|
|
|
|
You just registered today-- where are your articles?
ab
|
|
|
|
|
need article or tutorial or source code .. image processing such as rotate, blur , smooth , sharp .. well for me actually enough only blur smooth and sharp image in pocket pc ...... either use C# CF or embedded visual c++ can anyone help me .... im stuck
thx for any help
|
|
|
|
|
I am looking at Media State Aggregation Service (MSAS) in the media center SDK. But it all in C++ (the example). It deals with COM and sinks. If some one can create a shell or some samples of the interfaces in C# would help. Just a template of the interfaces with the InterfaceTypeAttributes on top. I am lost and the SDK documentation (http://www.asia.microsoft.com/windowsxp/mediacenter/developer/default.asp) since they dont provide any .net examples. If anyone could help it would help me out alot
[Guid(A70D81F2-C9D2-4053-AF0E-CDEA39BDD1AD)]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
interface IMediaStatusSession
{
void MediaStatusChange(
/* [In] */ ref MEDIASTATUSTAGARRAY Tags,
/* [In] */ ref MEDIASTATUSPROPARRAY Properties)
{
}
}
Retrieving Media Status Information
Media Center implements the media state aggregation service as a COM local server. The MSAS receives media status information from the shell software and distributes it to one or more media status sinks. Typically, a sink uses the media status information to update a front panel display.
Media status information is sent to the sink whenever a property changes. For continuously changing properties such as elapsed time, the property is updated at one-second intervals.
A sink is a COM component that supports the IMediaStatusSink interface and is registered as a member of the CATID_MediaStatusSink {FCB0C2A3-9747-4C95-9D02-820AFEDEF13F} component category. When the MSAS starts, it creates every sink in this category and calls the IMediaStatusSink::Initialize method on each of them.
The MSAS creates three types of sessions to manage the reporting of Media Center status: the global session, media sessions, and other sessions. The global session is created when Media Center starts, and is destroyed when Media Center closes. It reports general status information such as the volume level and the user's navigation activity. The MSAS creates a media session for each media activity, such as recording a TV show, playing a CD, starting a slide show, and so on. A media session opens when a media activity starts, and closes when a new media activity is started. Other sessions are created by other Media Center components when they start, such the TV and the tuner.
Whenever a media session begins, the MSAS calls the IMediaStatusSink::CreateSession method for each sink. When CreateSession is called, the sink creates an object that supports the IMediaStatusSession interface and passes this interface back to the MSAS.
When new media status information is available, the MSAS passes it to the sink by calling the sink's IMediaStatusSession::MediaStatusChange method. The parameters to this method are arrays of property tags (defined in the MEDIASTATUSPROPERTYTAG enumeration) and corresponding values.
The current state of a media status source is the sum of the information in the session. The sink examines all changed properties and compares these with the current state to determine what changes are needed in the display. For example, in a session relating to the playback of a CD, the sink might first receive a media status change event indicating the duration of a track, and this event would be followed at regular intervals by events specifying the elapsed time of the track. The sink can use this information to display the time remaining in the track.
When a session is closed (releasing the final COM reference), the sink should assume that all previously announced information has become invalid, and no state from that session should be displayed.
Announcements in one session never depend on information from announcements in any other session.
Many sessions may be opened and closed during the lifetime of a single application. For example, Media Center opens, uses, and then closes a session for each CD, DVD, or playlist that is played, plus one for the application itself. The application session remains active as long as Media Center is running, but the media-related sessions are open only as long as the CD, DVD, or playlist is active.
//////////////////////////////////////////////////////////////////////////////
IMediaStatusSession Interface
The IMediaStatusSession interface is implemented by the sink component on an object representing a media status session. The MSAS uses this interface to pass media status properties to the sink.
In addition to the methods inherited from IDispatch, the IMediaStatusSession interface exposes the following methods.
///////////////////////////////////////////////////////////////////////////////
IMediaStatusSink Interface
The IMediaStatusSink interface is used by the MSAS to initialize the sink and to create a media status session. The sink must implement this interface.
In addition to the methods inherited from IDispatch, the IMediaStatusSink interface exposes the following methods.
|
|
|
|
|
i ppl,
I am in my final year of Computer engineering ! i gotta submit one project this year to the univ. Its pretty hard for me to select a project topic. I got few topics but I don't think they r so good. I am interested in havin a project in Networking or system applications. I'll be really glad if you ppl can suggest me a few topics . If someone has his own project i can extend his idea for him . Eagerly waiting for ur replies. bye !
|
|
|
|
|
cool_guy_jack wrote:
I am in my final year of Computer engineering ! i gotta submit one project this year to the univ
This academic year (2003/4)? A final year project! I don't know what kind of course you are on, but in my final year my project took pretty much 40 hours per week over from between October and May!
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event[^].
|
|
|
|
|
I was just wondering is there any way to change the language of any dll file and control panel ext...IE: I want to convert a french M$ dll file into english without using res hack and copying and pasting this is very time consumming...The reason is that the Icons and Bitmaps have been replaced in the French Version with ones that i like...but I don't read french to well...PLZ help
|
|
|
|
|
Nope. There is no way to do it without hacking the hell out of the .DLL. The problem is that the .DLL wasn't written to support localization, so therefore, can't be expanded to support multiple languages at the same time.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|