|
No, there is no good way to do this and definately not a free one. There are tools out there that will include just the required parts of the .NET Framework in your app, eliminating the need to install the .NET Framework, but you need to shell out some serious $$$$ to get them.
|
|
|
|
|
Not unless you're willing to spend upwards of $1000 for the privilege. There're at least 2 companies selling software to do that if you are.
The latest nation. Procrastination.
|
|
|
|
|
saberimanesh wrote: I was really confused because the programe I've developed, is very simple and I've used some simple components like textbox and combobox. but when I want to create setup package, I have to include a package of .Net framework that is about 300mb!
Yes, but if you wrote that program in C++, it would have been a lot more work. And if your program was a lot more complex, your installer would still be 300MB. There's no way around that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
tanx Christian.
so we should be sorry for microsoft because my exe file is about 50mb and the client who use this pachage, are not familiar to computer as enough as I need...
|
|
|
|
|
saberimanesh wrote: so we should be sorry for microsoft because my exe file is about 50mb and the client who use this pachage, are not familiar to computer as enough as I need...
I'm sorry, I can't make head or tails of this. However, while the framework is pretty bloated, I can see how Microsoft wouldn't bother with the work to break it into sections. Otherwise, when another .NET app tries to run on this computer, instead of checking if 3.5 is installed, it would need to work out if it had all the parts needed. And from the point of view of Microsoft, they just want the whole framework to be out there, anyhow.
Your installer, including the framework, will fit on a CD. Most people have internet bandwidth to download it if they don't have it, you can write an installer that downloads it if needed, so not everyone has to download it. It's not complicated, and it's pretty self evident if you think about it. Microsoft has nothing to gain in complicating the process by breaking up the framework for your convenience.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
thanks alot.
my problem was actually about the size of the package because I'm going to sell it online.
However, would u please give a suggestion about the kind of program that I can solve my problem. I have to convert it to any other languages. I can program with Java-C++-Delphi-.Net-VB and my project is graphical and is about catalog for any occupation.
thanks for ur replies...
|
|
|
|
|
saberimanesh wrote: my problem was actually about the size of the package because I'm going to sell it online.
Well, I'd just do an installer that doesn't include .NET, but downloads it if needed.
saberimanesh wrote: I have to convert it to any other languages. I can program with Java-C++-Delphi-.Net-VB and my project is graphical and is about catalog for any occupation.
Well, if you are scared of the runtime, then you can use C++, and either use MFC and distribute that ( a lot smaller ), or just use the win32 API if you want REALLY small.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Most likely any one who would want to use your software already has .net; so don't worry about it.
On the download page (or whatever) simply state that the app requires .net x.y and let the potential user act as he chooses.
|
|
|
|
|
thanks for ur answer.
the main reason for my question was the size of .Net fw 3.5 package and I was looking for a way not to install that completely and I didn't get any appropriate way.
tanx again.
|
|
|
|
|
i programmatically send and read mail and save the mail into my database.
but i want delete a mail which will delete from my database and also from my mail server.how can i delete mail from mail server???
please help me.
advance thanks
Md Shafikul Islam
|
|
|
|
|
Which mail server are you talking about??
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
linux server using pop3 and smtp
|
|
|
|
|
If you are talking about Exchange server there is a web service of Exchange 2007 sp2,
if you are talking about pop3 mail server you can try connecting to server by simulating telnet from your application and delete mail.
|
|
|
|
|
many many thanks
i am using pop3 mail server i programmatically connect the server and the mail ID but it do not delete the mail would u see the code and answer me the fault.
public MAIL_ERROR Connect(string host, int port, string username, string password)
{
try
{
_conn.Host = host;
_conn.Port = port;
_conn.Connect();
System.Threading.Thread.Sleep(_TimeOut);
return Login(username, password);
}
catch (Exception e)
{
System.Diagnostics.Trace.Write(e.ToString());
return MAIL_ERROR.ERROR_CANTCONNECT;
}
}
public MAIL_ERROR DeleteMessage(int id)
{
if (this._state != POP3_STATE.POP3_LOGGEDIN)
{
throw new MailException("You are not logged into the mail server");
}
string ret = "";
SendCommandSynchronous(string.Format("DELE {0}\r\n", id), out ret, false);
if (ret.Contains("OK") == false)
{
throw new MailException(ret);
}
else
{
return MAIL_ERROR.ERROR_NONE;
}
}
|
|
|
|
|
Everything seems ok.
Could you pls send the SendCommandSynchronous method
|
|
|
|
|
thanks again for reply..
here is the method:
private MAIL_ERROR SendCommandSynchronous(string cmd, out string response, bool bMultiLineResponse)
{
// Remove any data that was left over on the buffer
string deadData = _conn.Receive();
_conn.Send(cmd);
response = WaitForResponse(bMultiLineResponse);
return MAIL_ERROR.ERROR_NONE;
}
private string WaitForResponse(bool bMultiLine)
{
int timeout = 5000; // wait 10 seconds for response
int waitedTime = 0;
string strRet = "";
while (waitedTime < timeout)
{
System.Threading.Thread.Sleep(_TimeOut);
strRet += _conn.Receive();
if (CommandComplete(strRet, bMultiLine) == true)
{
return strRet;
}
waitedTime += _TimeOut;
}
return strRet;
}
|
|
|
|
|
Could you try
private string GetResponse()
{
string strPrev = null;
string strCurrent = null;
string strMessage = null;
NetworkStream ns = default(NetworkStream);
ns = client.GetStream;
while (true)
{
byte[] buffer = new byte[1];
ns.Read(buffer, 0, buffer.Length);
strCurrent = System.Text.Encoding.GetEncoding(1254).GetString(buffer);
strMessage = strMessage + strCurrent;
if (strCurrent == @"\r" && strPrev == @"\n")
{
break;
}
strPrev = strCurrent;
}
return strMessage;
}
private void SendMessage(string str)
{
str = str + "\r\n";
byte[] buffer = System.Text.Encoding.GetEncoding(1254).GetBytes(str);
NetworkStream ns = client.GetStream;
ns.Write(buffer, 0, buffer.Length);
}
|
|
|
|
|
here id i send mail receive number when read the mail i got that number.
i pass that receive number for mail delete
|
|
|
|
|
Hi everybody
I have a panel in my form, I used backgraound image for my panel.
In the Panel OnPaint event body, I draw ellipse with various position and dimension on each times.
So I use a timer, On the OnTimer event I Refresh panel for clearing previous ellipse and draw new ellipse with new parameters.
when form refreshed a bit jumping occurred in my background image, since I use mentioned operation every second, these jumping annoy the user.
I want to know how can disappear these jumping, Maybe for clearing prior ellipse use another method instead refresh or invalidate.
Best Regards,
Reza Shojaee
|
|
|
|
|
You can turn on double buffering.
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.DoubleBuffer,true);
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Please I would like your help in the following questions,(Please supply code example.)
:
1. How can I make a program’s able to link with its database independent of location?
There is a program I am trying to create. It works fine only if the database is placed in a particular location. I would like the program to be such that a user can install the program in any location and my program can look for and locate the database.
In a multi-tier network application, let us assume the following conditions exist:
• The front –end is in VB.NET/ C# .NET. (I am at home with any of them so you can write the code in any of these languages) The back-end is an oracle database.
2. How can I link the two? The front-end is not in the same computer as the database.
3. How can I make my apps able to read/ write real-time data?
Thank you .
ihe
|
|
|
|
|
ihe wrote: 1. How can I make a program’s able to link with its database independent of location?
Depends on the DB type. If it's a file, like an MDB, you need to let the user browse to it, and build a connection string to that file.
ihe wrote: 2. How can I link the two? The front-end is not in the same computer as the database.
Well, it depends. Are they on the same network ? Then you just need a network path. If not, then it will need to be on the internet, which means it will be visible on the same URL to everyone. So, you need to let the user specify a network path, and build a connection string from it, I expect.
ihe wrote: 3. How can I make my apps able to read/ write real-time data?
I'm not sure what you mean. If your DB is over a network, that will slow down the DB. Your best bet is to cache data and have another thread periodically storing it to the DB. Minimising the number of DB calls will make it faster.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
ihe wrote: 1. How can I make a program’s able to link with its database independent of location?
You need to specify the server location in your connection string, so, in practical terms searching for your database is not feasible - you would need to connect to every instance of every server and see if your database was on that server. There would eb all sorts of security issues, and if the database existed on multiple servers which would you use.
ihe wrote: 2. How can I link the two? The front-end is not in the same computer as the database.
See answer 1, using the conneciton string. A good source of info is www.connectionstrings.com[^]
ihe wrote: 3. How can I make my apps able to read/ write real-time data?
Not sure what you mean. You write to and read from a database in real time.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Thanks. www.connectionstrings.com is very good.
Real time:
Let us assume that there is an on-going continuous process. I want to be able to monitor it, without being present. I want to design a program that would write the start time / end time to a database without a user clicking a button. The program would monitor and detect when the process is ongoing.
If there is any variable associated with this process, the program would write these values in the database as well.
The program should write the values as the process is occurring. It should not involve any human interference as this would cause a loss in time (lag time) for the human to click the control (for saving).
The program should monitor, detect and write the event as fast as the process occurs. A type of survellience.
Please explain how I would go ahead in this program
ihe
|
|
|
|
|
ihe wrote:
Please explain how I would go ahead in this program
Its your coursework, not ours Have a try and come bac with specific problems, but if you have no idea where to start ask your tutor.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|