|
|
Hi,
Can Anyone Give me an article or maybe a tutorial guide about "Custom Tab Control", "Binding Tab Control" or something related to that
Thank You,
Kind Regard,
TCim
|
|
|
|
|
|
I have one server implemented in WIN32 C++. I want to build another server to communicate (Winsock) with this WIN32 server in C#/.NET using Winsock
However I am worried about incompatibility - haven't done Winsock before not sure if things like wiring a custom class over Winsock can be a problem because two ends are implemented in two languages (C++ and C#) and two framework (WIN32 and .NET)
Any suggestion?
|
|
|
|
|
Why not just use the sockets stuff in .Net?
You don't have to use the same network libaries at each end, tcp/ip has the same protocols no magtter what
|
|
|
|
|
originSH wrote: Why not just use the sockets stuff in .Net?
That'd work huh? I never try this, can I wire a C++ class from WIN32 server, then on receiving end (our C# server) read off the socket...? I have a feeling probably intrinsic types would do just fine but ...
Thanks
|
|
|
|
|
There are several layers to network communications. Everything up to network protocol (i.e. tcp/ip most of the time) is standard.
You then have the communications protocol on top of this which can be standard if implimenting an existing one (i.e. the hidious IRC RFC 1459[^]) or custom if your making it yourself.
How you send the data over the communication protocol is what your dealing with here and will govern if (or rather how easily) different frameworks and languages can talk to each other. To send a class over you would have to serialize it at the one end and deserialize it at the other. If you have a serializer in C++ and a deserializer in C# that will work together then it'll be all good
How are you serializing the class at the c++ end?
|
|
|
|
|
yes planning on wiring down a vanilla C++ class
I think my C# server will have to linked+interop with a WIN32 C++ dll (perhaps wrapped by C++ managed/.net dll) ... hope this will work
|
|
|
|
|
I'de definatly go the route of C++/Cli if you have VS2k5 ... it's great for this sorta stuff
|
|
|
|
|
I used to work on a system that relied upon a .Net application communicating via Tcp/IP with a Win32 C++ server. It works and I found no problems with it.
Ok, as for the design, well you'll have to designate one of the applications as the server and one as the client. That way they can communicate. Otherwise you will have to implement both a client and a server in each application.
Look for the C# Chat application article on this web site. That should help.
Phil
|
|
|
|
|
.NET server hasn't been implemented --- to be on the safe side I probably would do it in managed C++ rather than C# so chances of problem in deserialization of the wired C++ class from WIN32 server would be minimize.
thanks
devy
|
|
|
|
|
I am writing an application in which vehicles are moving on their pre-assigned route. The user is capable of choosing a particular vehicleName from a dropdown list and the chosen vehicle attributes get listed on the PropertyGrid. Since, these vehicle objects are dynamically moving, their attribute - 'fuel_remaining' continuously reduces. But, on the PropertyGrid, the value of the GridItem related to 'fuel_remaining' updates only at the instant when I choose the vehilceName from the dropdown list. If I have to see the updated value again, I have to choose the vehicleName again from the list. Is there anyway where I can program it to show the continuously changing value for that attribute field from just one selection of the particular vehicleName from the list?
Thanks for the help, if anyone can provide.
|
|
|
|
|
I'm trying to compile test code with VS 2005 so that it generates xml documentation, however, only part of the tags are being generated. Why?
Math.cs:
// Math.csnamespace Wrox.ProCSharp.Basics{////// Wrox.ProCSharp.Basics.Math class./// Provides a method to add two integers.///public class Math{////// The Add method allows us to add two integers//////<returns>Result of the addition (int)///<param name="”x”" />First number to add///<param name="”y”" />Second number to addpublic int Add(int x, int y){return x + y;}}}
Command prompt:
C:\temp>csc /t:library /doc:Math.xml Math.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
C:\temp>dir
Math.xml
- <doc>
- <assembly>
<name>Math
<members>
Also, IE prompts me that it has blocked ActiveX controls when it loads this file. Why?
Jon
|
|
|
|
|
Please modify your post and check that "Ignore HTML tags in this message"
jon_80 wrote:
Also, IE prompts me that it has blocked ActiveX controls when it loads this file. Why?
I believe it enables the thingy that allows you to expand/collapse xml nodes when viewed in IE.
[My Blog]
"Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Use the "Ignore HTML" option when you are posting markup code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi,
the structured comments that optionally get collected into an XML documentation file
need some special keywords, such as summary, returns, remarks.
Furthermore at least one of the Visual Studio versions has a bug, resulting in the
omission of all comments on properties.
|
|
|
|
|
|
Hi.
I saved a wav file in a resource file in VS in binary.
Now how can I play it with media player object (ax)?
media player only give url to play.
Best wishes
|
|
|
|
|
I don't think you can, without making a local copy.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi.
When adding eventhandlers to events, what's the difference between:
foo.SomeEvent += Bar.OnSomeEvent;
...and...
foo.SomeEvent += new EventHandler ( Bar.OnSomeEvent );
?
Thanks.
|
|
|
|
|
In the first case the compiler type checks that Bar.OnSomeEvent has the same delegate type as SomeEvent and inserts the Delegate.Combine call with the inferred delegate type.
In the second, you're doing part of the compilers work yourself by explicitly telling it the delegate type.
The msil code for both will be identical.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
OK, thanks. So why are most of the samples I see written the second way? The first way is leaner. Is this some sort of leftover from older coding practices or something? Maybe .NET 1.x?
Thanks again.
Mike
|
|
|
|
|
It's a left over from 1.0 or 1.1, can't remember when they changed it.
I'm largely language agnostic
After a while they all bug me
|
|
|
|
|
It is only C# 2.0 (hence .NET versions >= 2.0) that support the shorthand notation.
|
|
|
|
|
How do applications get permission to create keys hkey_classes_root?
Using Registry.ClassesRoot.CreateSubKey(...) I am able to add registry keys, however I wasn't able to until I messed around with the permissions in the registry. But I've installed other applications from the very same account before without changing permissions and those applications were able to add their owns keys to classes_root.
So the question is how do they do that? What code do I need to add to be able to let my program write to classes_root without the user who installs the program having full access?
|
|
|
|