|
Hai Everybody,
Have a good day and great month
I have created an sample application in that, I kept a remotable object, I am having listener and client which are all windows services.
I have included the remotable object's reference in both clien and host application.
When i tried to build it has been done successfully.
but when i tried to compile the Server_Service class it is showing warnings like are you missing the assembly for all the namespaces that i have included in the service class even though for the System namespace also it is showing this error.
Can anyone give me a solution to solve this, Please....
You will give me the solution so
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: i tried to compile the Server_Service class it is showing warnings like are you missing the assembly for all the namespaces that i have included in the service class even though for the System namespace also it is showing this error.
Did you check the Namespace is available in the Assembly.
Regards,
Satips.
|
|
|
|
|
 I have all the references in the project. And all the three projects( Remotable object, Server_Service and Client_Service) are all in the same solution.
Sorry Only for the ComponentModel, Data, ServiceProcess Channels only it is showing errors not for other namespeces.
This is the error I am getting when i try to compile
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.
d:\Chitra\Sample\Remoting_NET\Server_Service\Server_Service.cs(3,14): error CS0234: The type or namespace name 'ComponentModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
d:\Chitra\Sample\Remoting_NET\Server_Service\Server_Service.cs(4,14): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
d:\Chitra\Sample\Remoting_NET\Server_Service\Server_Service.cs(6,14): error CS0234: The type or namespace name 'ServiceProcess' does not exist in the namespace 'System' (are you missing an assembly reference?)
d:\Chitra\Sample\Remoting_NET\Server_Service\Server_Service.cs(10,40): error CS0234: The type or namespace name 'Tcp' does not exist in the namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?)
d:\Chitra\Sample\Remoting_NET\Server_Service\Server_Service.cs(15,43): error CS0246: The type or namespace name 'ServiceBase' could not be found (are you missing a using directive or an assembly reference?)
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: error CS0234:
It says it is a Compiler Error.
The type or namespace name 'name' does not exist in the class or namespace 'scope' (are you missing an assembly reference?)
For More Detials:
MSDN[^]
Regards,
Satips.
|
|
|
|
|
is there anyway to do a memory allocation on a string type?
like
String Mine = allocate(65535); ????
Thanks
|
|
|
|
|
mercenary01 wrote: is there anyway to do a memory allocation on a string type?
Are you trying to reserve space for a string, a la C/C++? You don't need to do that in C# as the string is a first class citizen in .NET. Just say string s = null; and then you can assign any value you want, like s = "I love Bob";
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
I would have expected an "I love Vikram" example!

|
|
|
|
|
No there is not, but if you need to do complex work on a long string, you
should allocate a StringBuilder object with sufficient Capacity, work on it,
and when its done convert it to a string with ToString().
|
|
|
|
|
Hi,
I am writting shell extension in C#. For me it is becomming difficult to debug the Shell Extensions.
I am following the below step which I gathered from different groups / websites.
In "Project Properties" page
Debugging : Debug Mode -> Program
Start Application -> c:\WINDOWS\Explorer.exe
command line Arguments -> C:\
and I kept some break point in the source and pressed F5.
When press F5 It is Creating new Instance of "Windows Explorer", but it is not stopping at Break point.
I tried of attaching to the Windows Explorer using "Attach Process".
Still I am unable to debug the project.
Please, give me the step to Debug the Shell extesions.
Thanks
Ramesh
|
|
|
|
|
Hey all,
Can anyone tell me the best way to add keys to the registry?
At the moment i've exported the key's to my working directory, and am using the System.Diagnostics.Process.Start("Keyname") to update it.
It works, but it prompts the user with a message box to confirm if they want to do the update.
Can I stop the messagebox's popping up so my install goes smoothly, or do I have to do it some other way?
Thanks in advance,
Mark.
|
|
|
|
|
Do a google search for "C# registry"
|
|
|
|
|
Read some fine CodeProject articles, maybe this one[^].
|
|
|
|
|
Aha,
Cheers Luc, thats what I was looking for.
MArk.
|
|
|
|
|
You're welcome.
Please keep in mind CodeProject has a lot of good articles, and a search facility...
|
|
|
|
|
Hello everybody!
I write my app VS2005. I want to download Microsoft Windows Mobile 2003 to setup on device but i don't know which link.
Help me
Thanks everybody
|
|
|
|
|
|
How do I define a 2d array in C#? tried the following but didnt work
public Int16[][] buffer = new Int16[300][3];
|
|
|
|
|
You are creating a jagged array there. C#'s multi-dimensional array syntax is different from that of C++'s. Use this instead:
int[,] buffer = new int[5, 4];
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
There is No Two Dimensional Array in C# instead we can go with Multi Dimensional Array.
mercenary01 wrote: public Int16[][] buffer = new Int16[300][3];
it is Jagged Array.
Arrays[^]
Regards,
Satips.
|
|
|
|
|
If I design a program in C#, iit will still run on a computer without the .NET Framework, right? I don't see why it wouldn't, but I thought I should ask. Thanks in advance!
-----
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
|
|
|
|
|
max29297 wrote: If I design a program in C#, iit will still run on a computer without the .NET Framework, right?
No.
Unless you have Mono, but I don't think you were thinking of that.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Hi Max,
the answer is no: the CLR compilers (C#, C++/CLI and VB.NET) emit MSIL code, not native code,
so you need the .NET Framework to JIT and execute that;
and your app also needs the DLLs (such as mscorlib.dll) that contain the system classes
(#using System.Text and the like) and come with the .NET Framework.
And before you ask, you cannot automate a FrameWork installation, not from within an app,
not even from within an installer.
So you need the Framework and you have to install it manually, separate from any app.
I think there are CD/DVDs that contain the Framework, I dont think you need Internet
to do it.
BTW modern PCs, if they have Windows, also have (a couple of versions of) the .NET
Framework pre-installed.
|
|
|
|
|
hello there guys... i want to dial a phone number and play a sound message using the fax modem and C# 2005... i have been searching information but i haven't found anything yet... if you have any idea, or some code i'll appreciate it... i'm working on my thesis and it's a very important part of the software!.... thanks a lot!...
// Gonzalo
|
|
|
|
|
Hi Everyone,
I'm writing an application that implements an on-screen keyboard (because the Windows on-screen keyboard is extremely small and hard to use) and I'm having problems setting focus to the desired window in which the user wishes to type.
I'm using a few User32 API calls to get the active window handle number and then set the active window once I know what the handle is. This seems to be working OK. However, the window which has focus (the one receiving the typing) flickers as the user clicks on a key.
This is because as the user touches a key to type, it gives the keyboard focus and then immediately sends focus back to the window in which the user is typing, hence the flickering. So...
Question #1:
How can I eliminate the change of focus and always give focus to the desired window so that there is no flickering back and forth between my keyboard application and the window receiving the typing?
Question #2:
This is not just a standalone keyboard, but is a small part of a larger piece of software. Consequently, there are occasions when the user must use this on-screen keyboard to type into a window within it's parent application or into different forms within the app. One form contains a browser control to a company website. When they keyboard is used to type into any text field on a webpage displayed in the browser control, only every other word is sent to that text box. Two key strokes are required to output one letter. What could be a possible cause of this and how might I go about fixing it?
ANY suggestions or help is much appreciated. Code examples in VB.NET, VB 2005, and C# are fine. C++ OK too but only if it's immediately applicable and can be converted easily to VB.NET.
Thanks in advance to anyone who contributes!!!!
Patrick
|
|
|
|
|
I know this was a while ago for you but I am facing exect same issue, did you manage to solve this?
Also I would like to hide the keyboard when receving field losses focus (other than to keyboard), did you implement this part too?
Thanks in advance,
Savita
Savita
|
|
|
|