Hello :).
I am creating run time classes using System.Reflection.Emit:
AssemblyBuilder ab = AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName("DataBuilder.exe"), AssemblyBuilderAccess.Save, AppDomain.CurrentDomain.Evidence);
ModuleBuilder mb = ab.DefineDynamicModule(ab.FullName...
Hello everyone.
I'm having a problem regarding XML Serialization.
I have a class that implements an interface xpto. When I try to serialize that class, this error is raised:
"Cannot serialize interface xpto"
Is that really impossible to serialize to XML a class that implements an interface...
ERROR [IM004] [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV
When I am trying to connect to DB2 using ODBC .NET, the previous error is raised. Any ideas?
Dear Ca8msm,
you are saying that I should try to parse the number argument inside the HelloWorld method? Unfortunately I cannot do that because the exception is raised before. Writing a string or a number > 255 raises an exception before entering the HelloWorld method.
And that’s way I am...
I have a simple "helloWorld" webService:
using System;
using System.Web;
using System.Web.Services;
namespace WebServiceTest
{
public class WebServiceTest : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld(byte number)
{
return "Hello World" + number;
}
}
}...
I want to open an ODBCConnection to a DB2 database. I develop a simple code in a Windows Console application:
Class1.odbcConn = new OdbcConnection("DSN=*;UID=*;PWD=*");
try
{
odbcConn.Open();
}
catch(OdbcException e)
{
Console.WriteLine(e.StackTrace);
}
The connection opens without...
I want to open a ODBCConnection to a DB2 database. I develop a simple code in a Windows Console application:
Class1.odbcConn = new OdbcConnection("DSN=*;UID=*;PWD=*");
try
{
odbcConn.Open();
}
catch(OdbcException e)
{
Console.WriteLine(e.StackTrace);
}
The connection opens without problems...
Hello Ralph,
thanks for your tip but is precisely what I did yesterday. But I was wondering if it could be a way to stop the service without using SC or Net Stop. Is there any method we can call?
Hello again :).
I have another problem regarding Windows Services. I want that the Windows Service can stop it self after doing some work. How is this possible? I tried to call the OnStop method, but it does not work as I aspected...
Regards,
Ricardo
Problem solved. The problem is that running a process from a windows service, it will not launch an user interface. All the processes run in backround.
For me there is no problem because the real process I want to start do not have a user interface.
Hello :).
I want to start a process from a Windows Service. To do that I have the following code:
private System.Timers.Timer timer;
private Process process;
private bool isProcessRunning = false;
protected override void OnStart(string[] args)
{
timer = new System.Timers.Timer()...
Hello :).
I need to launch a *.exe file from a python script. I don't want the script to continue until that aplication stops.
1- Is there a method in python that already waits for an aplication to stop?
2- Should that aplication send an output messege like "done", and the python script waits...
Hello :).
I am facing a problem related to templates. I have a piece of code that uses templates in VC6. I'm compiling the code using .NET VC++7.
typedef void (*HandlerFunction)();
typedef HandlerFunction (*HandlerFunctionSetter)(HandlerFunction);
template<HandlerFunctionSetter...
Hello everyone. I have a huge project develop in c++ 6.0. Now I need to compile all the project using the the 7.0 .NET version.
Has someone got good references that helps this kind of migration?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.