|
Hi,
You are 100% correct. The problem was service's OnStart was simply quiting without doing anything. So i created a new thread in Onstart and it does solved the problem. The service is running without any trouble. Also since it is running i can locate it in running process list to attach to debug.
Your suggestion solved both of my problems. Thank you so much for you both Mike and Josh. Thanks a lot for your timely help.
Renu
|
|
|
|
|
Does .NET support DDE? Can we build DDE Clients and Servers in .NET? If yes, can an unmanaged application written in VC++6 or VB 6 communicate with a managed application using DDE?
---
Hakuna-Matada
It means no worries for the rest of your days...
It's our problem free, Philosophy
|
|
|
|
|
This topic[^] suggests that it's not possible.
That said, you can probably use the API directly. In fact, this blog post[^] links to a project on GotDotNet.com called NDde[^] which wraps the DDEML library.
|
|
|
|
|
Hi,
Does anyone can help me?
I'm writing a c++ managed service in visual studio 2005 CLR template. I only created one thread with simple code in order to achieve a lightweight service as possible, but I noticed that the running service has about 7 or 8 Mbytes of memory.
What´s happening with the service that despite the user code, the skeleton of Visual Studio template allocates at least 7 Mbytes of memory!
How do I write a service with less than 3 Mbytes like "Windows Installer", in order to spend fewer memory resources?
thanks
|
|
|
|
|
Since your writing in Managed C++, you have the weight of the .NET CLR in there as well. That's about as small as your going to get.
If you want a smaller memory footprint, you'll have to use unmanaged C++.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave,
Thank you so much for your help.
Luis Coito
|
|
|
|
|
Hi can u tell me
i have a comm.dll file, and i want to use it in c#.net ;;;
when i add this dll through reference i get an error means i cannot add the dll,
please tell me how to use this comm.dill file,,,
its comm dll file
thanks in advance
hello
|
|
|
|
|
You can only set a reference to a COM-based .DLL. If it's a libary .DLL, all you have to do is P/Invoke the functions you want to use.
Platform Invoke Tutorial[^] on MSDN.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks i have got that and now i can access the function from this dll, and can open, close and get values from the comm but only using the functions in this dll..
but now the problem is i cannot fire datareceived event on the com port which i assign
to open method of this dll,,
int hc = OpenCommPort("COM1", 9600);///method from dll which open the com1
int rtt = ReadValue(hc);///mehtod from dll
now i do the following
sp = new SerialPort("COM1",9600);
sp.DataReceived += new SerialDataReceivedEventHandler(method);
if (sp.isopen);
{
show ("Open");//but here it shows that com port is closed ,, so i cannot manage
data received event handler for this com port ,,
}
please tell me in the scenario what shud i do ?
void method()
{
// this method shud be called when the ( int rtt = ReadValue(hc);)
is called...but it does not , even i get an error when i try to open
sp using sp.open();
aftehr when i have called the dll function
int hc = OpenCommPort("COM1", 9600)
so please tell me how to create a handler for the situation ,, means the port which
i assign to the dll method opencommport there shud be a handler for that
thakns in advance
}
hello
|
|
|
|
|
|
What is Ajax. Can i get a sample program demonstrating Ajax?
Maddy
|
|
|
|
|
|
Hi can u tell me
How cam we play flash files (swf) in c#.net
thaks in advance
hello
|
|
|
|
|
Add a shockwave flash control to the form, pass the path to the swf file to it.
|
|
|
|
|
thanks
but it says that active x component is not registered properly,, and i cant register it via svr 32 command
wat to do ?
again thanks in advance
hello
|
|
|
|
|
Reinstall the Flash/Shockwave player. I think their both in one application now. Download[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
thanks you very much
i have installed it and i can drag and drop it on my window form ,,
but can i attatch a flash file with it to play ,,,
coz i did not find any property like that in this active x control
thanks in advance
hello
|
|
|
|
|
That I don't know. You'll have to get that kind of help from Adobe. I've never put a flash component on any form so I don't know what it's object model looks like.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I simply cannot get the form designer to save my property value in the .designer.cs file:
<br />
<br />
public partial class MyClass: UserControl<br />
{<br />
[Browsable(true)]<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]<br />
public string Text<br />
{<br />
get<br />
{<br />
return _text;<br />
}<br />
set<br />
{<br />
_text = value;<br />
Invalidate();<br />
}<br />
}<br />
}<br />
Nothing is saved. Any ideas? VS 2005, .NET 2.0
|
|
|
|
|
Seems it's the name's fault. Anything other than "Text" works just fine. Will investigate further.
|
|
|
|
|
Found an explanation:
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/msg/e3089235cb94cfe5?hl=en
Really bothersome, since that is probably one of the most often used property names.
|
|
|
|
|
Hi All,
i am very new to .NET. Can anyone explain me the entire process of a source code getting executed. How CLR works? Wat is metadata? And other basic things about .NET Framework and its components.
If not, can anyone suggest me a good article about .NET framework that covers basic things abt it?
|
|
|
|
|
Madhuri Shekar wrote: Can anyone explain me the entire process of a source code getting executed. How CLR works? Wat is metadata? And other basic things about .NET Framework and its components.
That is a lot to explain in one post but I will try to sum it up for you. When you compile your source code, whether it be C#, Visual Basic, F#, JScript.net, or COBOL.NET, it gets compiled down to IL (intermediate language). IL is like the assembly language of your CPU but IL is much more high level. A lot of people say that when you compile your source code that the IL will be the same as if you compiled the same style source code in a different language. This is NOT true. C#, VB.NET, and especially C++/CLI produce slightly different IL. C++/CLI has the ability to aggressively optimize the IL and also do some neat things such as deterministic object deletion. You can imagine a .NET compiler as the front end compilation process of a native C/C++ compiler. The CLR (which contains the Just-In-Time compiler or JIT) as the back end. The CLR will compile the IL into the native code that your processor executes. It will optimize it for YOUR execution environment (CPU, CASH SIZE, OS ...) The JIT of the CLR can produce highly optimized code that can even compete with C++ in some cases.
Metadata is a table that describes each and every type in your assembly (your .exe, .dll, or .netmodual). It desribes the name of all your classes, methods, properties, events ect... Metadata allows for a powerful feature called reflection which allows you to discover and execute an unknown type at run time. You can even construct an entire assembly in memory and execute it at runtime!
There is a lot of information about the .NET framework and CLR. It is an amazing platform and do not allow the doom and gloomers of managed code get you down. Stay loyal to .NET and its compatible siblings (Mono). You do not want to lag behind of this technology because it is the future and it is a bright future.
I highly recommend you get a couple books. CLR via C# is an excellent book and it will broaden your understanding of the inner workings of the .NET framework and the CLR. Although I would not recommend you get it until you get some basic knowledge of .NET and a language compatible with .NET
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
Wat is the difference between interpreted code and compiled code?
Maddy
|
|
|
|
|
Madhuri Shekar wrote: Wat is the difference between interpreted code and compiled code?
Interpreted code is code that is executed by a program. Java script is a good example. Your web browser reads Java script code from a server. That code commands the interpreter to do things. Those things make up the logic of your program, (in this case your web page).
Compiled code is translated into the native code of your processor. It is extremely fast and effeciant compared to interpreted code. Imagine writing a program that will read Java script and follow the orders that the script tells it to do. That would be an interpreter. It is more complicated than that but that is the basic principle.
In .NET your programs are NOT interpreted. They are compiled down to IL. That IL is then compiled to the native code of your processor. It is optimized for your execution environment. .NET code is a little slower than native code but in some cases it can be faster for many reasons. The JIT(explained in another reply to you) can optimize for your CPU and it may contain some multimedia technology that your program can take advantage of. With native C++ you cannot assume that all your customers will be using that processor so you must compile it for an older processor. I have just scratched the surface of the deferences. I recommend you to some research on it.
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|