|
Hi,
Please mark the helpful answer(s) by clicking "Good Answer". I've done it for you now.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I did do that..
|
|
|
|
|
Hi again..
Is there any another solution for win XP ?
I try this:
<br />
[DllImport("ntdll"), SuppressUnmanagedCodeSecurity]<br />
public static extern int NtGetCurrentProcessorNumber();<br />
and I get this exception:
System.EntryPointNotFoundException was unhandled
Message="Unable to find an entry point named 'NtGetCurrentProcessorNumber' in DLL 'ntdll'."
Source="XP_Multicore_try_0"
TypeName=""
StackTrace:
at XP_Multicore_try_0.Program.NtGetCurrentProcessorNumber()
at XP_Multicore_try_0.Program.loop() in C:\Documents and Settings\evyatarv\Desktop\XP_Multicore_try_0\XP_Multicore_try_0\Program.cs:line 24
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
|
|
|
|
|
hello,sir i have designed a software in c# .net.i have used the my sql databse.its working ok in my machine,becoz i have created it in my machine.packaging is ok.i have generated the sql script.when i am instaling this software instalation becomes successful,and also mysql databse.but when i am going to access the page its showing unhandle exception error.i have not used crystal report in my project.please help how will i instal it in other machine??its urgent.give me step by step procedure.
|
|
|
|
|
Step by Step procedure for what? All you have said is how successfully each part has gone. No, information about your problem except you have an unhandled exception.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You say a lot for someone who really tells us nothing. What is the exception ? Do you have .NET installed on the other machine ?
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.
|
|
|
|
|
I use API following to disable minimize, maximize box in windows. But i can't do that with restore button. I'm quite confused.
SetWindowLong(hwnd, GWL_STYLE,0x16CC0000);
0x16CC0000: remove maximize, minimize box. But i can't find the other code for restore box.
|
|
|
|
|
can't you just change the FormBorderStyle to SizeableToolWindow or FixedToolWindow?
Here we rest... So why not make the best of it?
|
|
|
|
|
<can't you="" just="" change="" the="" formborderstyle="" to="" sizeabletoolwindow="" or="" fixedtoolwindow?="">
I load another application into winform and i want it not to resize. So i must use API to control. I think i can't use FormBorderStyle or FixedToolWindow.
|
|
|
|
|
if you don't want to allow the form to be resized you can set the MaximumSize and MinimumSize properties of the form so it will keep the current size.
if you already set the size of your form you can do this:
yourForm.MaximumSize = yourForm.Size;
yourForm.MinimumSize = yourForm.Size;
then it can't be resized even if the restore button isn't disabled
Here we rest... So why not make the best of it?
|
|
|
|
|
But i'm loading another application (word office, eg.) into that form. So, when i resize the "inside" application, it also resizes the outside form too despite you fixing size of the outside form. I suppose that we must use some API functions to solve but i don't know exactly.
|
|
|
|
|
If you're using C#, then why on earth would you do this ? That's just insane. You can disallow all these buttons in the properties dialog for the form, including the the restore box.
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.
|
|
|
|
|
You can fix size of the outside form, but when i resize inside application (eg. Word Office window) then the outside form is also changed despite it being fixed.
|
|
|
|
|
i really don't know the term to look for. what i would like to accomplish is a way to create an object using new and a string representing the type of the object. i intend to obtain the value of the string from an xml entry.
muchos gracias
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
|
I have this little code I wrote:
(and with the help from some nice persons from this forum.)
using System;
using System.Windows.Forms;
using System.IO.Ports;
namespace serialport
{
public partial class Form1 : Form
{
private SerialPort port = new SerialPort("COM3", 9600, Parity.Odd, 8, StopBits.One);
public Form1()
{
InitializeComponent(); port.Open();
}
private void buttonSS_Click(object sender, EventArgs e)
{
timer1.Enabled = !timer1.Enabled;
}
private void timer1_Tick(object sender, EventArgs e)
{
port.DtrEnable = !port.DtrEnable;
if (port.DtrEnable)
{
timer1.Interval = (int)numericUpDown1.Value;
}
else
{
timer1.Interval = (int)numericUpDown2.Value;
}
}
Now, What I want is a little complicated because I want to store the values from inside timer1_Tick event handrler into some sort of container. I want to make 10 (or more) containers that can hold different values I choose from those timer.intervals(or numUpDown). Then, to be able to play them in order, one container after another. When first container finish its doings, then the second container with his custom values enter and start to run, then the third,etc.
Thanks
~Teodor~
modified on Monday, November 2, 2009 1:34 PM
|
|
|
|
|
Hey Please help me, I got following error while going to make new directory and then upload files in it on FTP.
Error
The remote server returned an error: (550) File unavailable (e.g., file not found, no access)
My code
if (!WebRequestMethods.Ftp.ListDirectoryDetails.Contains("FTPPath" + strdate.ToString()))
{
FtpWebRequest reqObjs = (FtpWebRequest)FtpWebRequest.Create("FTPPath" + strdate.ToString());
reqObjs.Credentials = new NetworkCredential(UName, PWD);
reqObjs.Method = WebRequestMethods.Ftp.MakeDirectory;
}
string CompleteFTPPath = "FTPPath" + strdate.ToString() + "/" + Convert.ToString(ViewState["FileName"]);
string CompleteLocalPath = ConfigurationSettings.AppSettings["OutputPDFFilePath"].ToString() + "\\" + strdate.ToString() + "\\" + Convert.ToString(ViewState["FileName"]);
FtpWebRequest reqObj = (FtpWebRequest)WebRequest.Create(CompleteFTPPath);
reqObj.Method = WebRequestMethods.Ftp.UploadFile;
reqObj.Credentials = new NetworkCredential(UName, PWD);
reqObj.Proxy = null;
Stream requestStream = reqObj.GetRequestStream();
FileStream streamObj = File.OpenRead(CompleteLocalPath);
byte[] buffer = new Byte[streamObj.Length];
streamObj.Read(buffer, 0, buffer.Length);
streamObj.Close();
requestStream.Write(buffer, 0, buffer.Length);
requestStream.Close();
modified on Monday, November 2, 2009 7:58 AM
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:23am.
|
|
|
|
|
CompletePath is "ftp://" + FTPPath + "//" + TodaysDate + "//"
Same local path = ConfigurationSettings.AppSettings["OutputPDFFilePath"].ToString() + "\\" + strdate.ToString() + "\\" + Convert.ToString(ViewState["FileName"]);
|
|
|
|
|
I would say either you filepath is wrong (file not found)
or you don't have permission to write to that file (no access)
do you have the correct access? try a manual upload (with IExplorer or something) see if you can overwrite the same file you are trying to do via code
I believe when you attempt to create a file with WebRequest.Create and the directory does not exists then that will throw an error too.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Where to begin?
- Putting Urgent is not going to help, it isn't to us.
- The source code is not in <pre> tags and is therefore hard to read.
- The error message you give only has a few causes (which can be easily googled, and are given in the error description) ie The file doesn't exist, The Path is not correct or the user which is performing the ftp does not have access rights.
- You have not told us which (if any) of the above errors you have tried to resolve.
Please read the stickies on how to get an answer to your questiong at the top of the message board.
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
take the 2X4 outta ur arse
|
|
|
|
|
i have installed a dotnet apps few months back in my machine. but now it is not running properly. so when i try to uninstall the apps then i am getting a fatal error. so please give me a suggestion how could i forcefully uninstall this apps from my machine.
thanks
tbhattacharjee
|
|
|
|
|
Hi all......
I need helping about...
How can i dump the contents of the DATAGRAME ( IP packet ) including the datagrame header and TCP headre????????????
I think you don't mind help me.........
|
|
|
|
|
Hi All,
I develop a system which work properly on serial ports device but i need to change the serial port cables to a usb. Is there any libraries for usb in .net.
Thanks
Liya.
|
|
|
|