|
You can still use COM+ using System.EnterpriseServices classes in .NET, and there's always Web Services and .NET Remoting, all of which are discussed in many articles here on CodeProject.
.NET Remoting is arguably the best route to go with .NET applications (use Web Services if you want to support legacy clients and clients on other platforms (like Java)). To get an overview of remoting, read the .NET Remoting Overview[^]. A couple of good books to read about .NET Remoting are "Microsoft .NET Remoting" from MS Press[^] and "Advanced .NET Remoting" by Ingo Rammer[^] (the former is probably better if you're new to .NET Remoting).
BTW - this isn't specific to C# but is available to all .NET implementations, and you don't need the path to an assembly (the proxy, in this case) so long as the assembly is resolvable (like in the GAC if it is strongly named, and all assemblies should be). Read How the Runtime Locates Assemblies[^] for more information on assembly resolution.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Thanks Heath,
I'm reading this Remoting overview. But, let me try to explain a few better. I know that maybe you will say to ask it on ASP.NET forum. I have an web application and for security reasons I need to access my components (layers) on another machine... My Web application will talk to a dll on my component server and this dll will talk with my db and return the result to my web application. How to do this with an easy way? At suffering times, with vb, it would be possible by adding a dll on component service and making its msi instalation and adding a refference to that dll on web application. This is made with connection spool, ssl, authentication, etc... Do you know if exists some way to do this with C#.NET dlls?
Wender Oliveira
.NET Programmer
|
|
|
|
|
You implement shared interfaces in separate DLLs with very little implement. Implement those interfaces in your Remoting DLL then consume those interfaces in your client (proxy).
Again, for how the runtime locates assemblies, see the last link I gave you in my previous post. Either one of those books will help explain Remoting better, since it is a very complex subject and the .NET Framework SDK doesn't go indo enough detail to really explain it well.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
When windows performs the shutdown procedure is there a process involved?
If there is what is it called? can it be stoped?
|
|
|
|
|
When Windows is shutting down is sends the WM_QUERYENDSESSION message to all top-level Windows. Fortunately, the .NET BCL has encapsulated this for you in the SystemEvents.SessionEnding event you can read about at http://msdn.microsoft.com/library/en-us/cpref/html/frlrfMicrosoftWin32SystemEventsClassSessionEndingTopic.asp[^]. Set SessionEndingEventArgs.Cancel to true to stop the shutdown.
If you'd like more information, click "Search comments" above and search for WM_QUERYENDESSION since I've covered this in more detail many times in the past.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hello ppl,
I need a message box with the following buttons.
Yes/No/YesToAll/Cancel.
MessageBoxButton class doesnot have option for this.
Currently i could think of one solution being having a form with its Form border style as FixedDialog and having four buttons in it..
Is there anyother way to do this?Any pointers/suggestions would be helpful.
cheers,
jagan
|
|
|
|
|
Defining your own dialog is best way to solve the problem. The alternative is messy, full of P/Invoked functions, managed struct representations, and Windows messaging.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
What you've come up with is the best way to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Greetings!
I am trying to create a form dynamically by instantiating its class. Call this FormContainer. On construction, FormContainer creates a different form, Form2, and makes itself the owner of Form2 by calling AddOwnedForm.
Now, I would like to be able to fix Form2 so that it looks like a panel in FormConatiner, so that it moves and resizes along with FormContainer. Is there any way to do this without manually moving and resizing Form2 every time FormContainer is moved or resized?
LannieK
|
|
|
|
|
If Form2 was a usercontrol then you could just create an instance of Form2 and add it to the panel's component container and then set it to fill. On the original usercontrol you can put panels that also fill and have controls on that panel setup to do the same.
I have done this and it is working pretty well.
Steve Maier, MCSD MCAD
|
|
|
|
|
Hi,
I am writing a PocketPC program that want to use a binary string as encryption key.
Does anybody know where can I put the key securely?
Thx a lot!
|
|
|
|
|
Securely? Nowhere. What are you doing that requires an encryption key and why must you ship the key with the application?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thx RageInTheMachine9532,
Well, the key is not ship with the application. But the encryption key(in binary) is generated from a human signature to encrypt file on PocketPC. Where can I store the key?
|
|
|
|
|
In a CSP where it belongs. How you do that depends on which Windows Mobile OS you're targeting (2002 or 2003).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I looked at converting a windows app I had to run on my iPaq but saw that DESCryptoServiceProvider was not supported. What is available on PocketPC 2003?
|
|
|
|
|
Look at the "Supported Platforms" section at the bottom of the documentation topics.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Hello --
http://www.unicode.org/charts/PDF/U1D100.pdf[^]
Thank you for reading my thread.I have read several books on rendering with Unicode. But in looking at the Unicode Music Fonts chart (See link above) it would seem that in some instances, there are several Unicode numbers that must be combined to create a musical example. If this is true, is not Unicode in this case a kind of GDI+ ?
Please look at the following example below:
http://www.unicodemusic.bravehost.com/[^]
Can someone please provide an example of how the above musical example can be done in Unicode? If so this would be most appreciated. I can't find anyone who understands how this can be done.
Thank you so much and I hope you are having an excellent day!
|
|
|
|
|
Unicode is a way to encode text - nothing more. It comes in 16-bit and 32-bit flavors.
What renders characters to the screen is a different subject, something you don't really need to worry about. What you do need to worry about is finding a font that actually contains the characters for the musical notes. To date I've not seen any (then again, I haven't looked specifically for fonts with these characters defined). Just because glyphs are defined for certain code points doesn't mean a font has to contain them.
To enter Unicode code points in C# (many other managed languages use the same syntax), use \uXXXX where XXXX is the hexadecimal number of the code point.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
hai all ,
i am creating a c# application where i have a panel and on top of that i have an user control. when i click the usercontrol at any position, i need to capture the exact mouse position on the panel.
Sweta
|
|
|
|
|
in your OnMouseUp event of your control, add the following code:
MessageBox.Show("X: " + Cursor.Position.X + ", Y: " + Cursor.Position.Y);
You can use the Cursor.Position property to find the current location of your mouse cursor on the screen.
Jon G
www.Gizmocoder.com
|
|
|
|
|
After retrieval of the mouse position as described by the preceding posting use the PointToClient method of your Panel to convert the mouse position from screen coordinates into client coordinates of your Panel.
www.troschuetz.de
|
|
|
|
|
Hi~
using CEMAPI
The function
HRESULT IMAPIable::QueryRows(LONG lRowCount, ULong ulFlags, LPSRowSet *lppRows);
The maximum number of return of row is 10 and cannot get the retral rows.
How to get the next 10 rows?
Thanks
|
|
|
|
|
Hi guys i got the question keep asking but haven't got the right answer yet.
The question is how can make the progress bar working with long run process using threading. I have 1 form, a long run process method e.g
public void LongRunProcess(), and a progress bar. i would like to make the progress bar run based on the time of the LongRunProcess(), ie. when the process the progress bar show 100% complete and the UI won't freeze. Anyone help me to do so. Thank you
Popoxinhxan
|
|
|
|
|
You have haven't said what the problem is, other that a general "UI freezes", all we can do if refer you to examples of other Progress Bar controls. Check out Building a Progress Bar that Doesn't Progress[^] for a threaded Progress Bar. The code is in VB.NET, but can easily be translated to C#.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You wrote :
Hi guys i got the question keep asking but haven't got the right answer yet.
This is simply a trick.If are getting good suggection i recommand you to go ahead with that.
I can suggest you one thing. Create a custom event which will increase the value of the progress bar. I mean you need to fill the progress bar without any user interaction or something. Call this event in different stages of your thread execution.
For eg: You have a thred which will execute 100 lines of code. You can call your custom event in alternate 10 lines. You can step the status bar value by 10 in your event handler.
Sreejith Nair
[ My Articles ]
|
|
|
|