|
That's just what I want.Thank you very much!
|
|
|
|
|
Hi,
I want to configure the DHCP server programmatically tjrough C#,
I am able to create the subnet , get the lease infomation from DHCP server etc.
Now I need to set the Options for DHCP server programatically.
I tried to but not getting how can I add DNS server option on subnet through code.
Regards
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
Hi All,
I am implementing CD burning in my application. I am able to burn CD but for showing progress % i m using Back Ground Worker.
2 events of back ground worker Do work and Runworkercompleted is getting called but
backgroundBurnWorker_ProgressChanged is not getting called.
Thanks and Regards,
Amit Patel
|
|
|
|
|
I think without some code its hard to say where your problem lies.
Greetings
Covean
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:25am.
|
|
|
|
|
inside Do i m doing this following thing
MsftDiscRecorder2 discRecorder = new MsftDiscRecorder2();
BurnData burnData = (BurnData)e.Argument;
discRecorder.InitializeDiscRecorder(burnData.uniqueRecorderId);
discRecorder.AcquireExclusiveAccess(true, m_clientName);
MsftDiscFormat2Data discFormatData = new MsftDiscFormat2Data();
discFormatData.Recorder = discRecorder;
discFormatData.ClientName = m_clientName;
discFormatData.ForceMediaToBeClosed = checkBoxCloseMedia.Checked;
object[] multisessionInterfaces = null;
if (!discFormatData.MediaHeuristicallyBlank)
{
multisessionInterfaces = discFormatData.MultisessionInterfaces;
}
IStream fileSystem = null;
if (!CreateMediaFileSystem(discRecorder, multisessionInterfaces, out fileSystem))
{
e.Result = -1;
return;
}
discFormatData.Update += new DiscFormat2Data_EventHandler(discFormatData_Update);
try
{
discFormatData.Write(fileSystem);
e.Result = 0;
}
catch (COMException ex)
{
e.Result = ex.ErrorCode;
MessageBox.Show(ex.Message, "IDiscFormat2Data.Write failed",
MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
discFormatData.Update -= new DiscFormat2Data_EventHandler(discFormatData_Update);
if (this.checkBoxEject.Checked)
{
discRecorder.EjectMedia();
}
inside discFormatData.Write(fileSystem);
this call the follwing m_UpdateDelegate(sender, args);
this calles the
void discFormatData_Update([In, MarshalAs(UnmanagedType.IDispatch)] object sender, [In, MarshalAs(UnmanagedType.IDispatch)] object progress)
{
if (backgroundBurnWorker.CancellationPending)
{
IDiscFormat2Data format2Data = (IDiscFormat2Data)sender;
format2Data.CancelWrite();
return;
}
IDiscFormat2DataEventArgs eventArgs = (IDiscFormat2DataEventArgs)progress;
m_burnData.task = BURN_MEDIA_TASK.BURN_MEDIA_TASK_WRITING;
m_burnData.elapsedTime = eventArgs.ElapsedTime;
m_burnData.remainingTime = eventArgs.RemainingTime;
m_burnData.totalTime = eventArgs.TotalTime;
m_burnData.currentAction = eventArgs.CurrentAction;
m_burnData.startLba = eventArgs.StartLba;
m_burnData.sectorCount = eventArgs.SectorCount;
m_burnData.lastReadLba = eventArgs.LastReadLba;
m_burnData.lastWrittenLba = eventArgs.LastWrittenLba;
m_burnData.totalSystemBuffer = eventArgs.TotalSystemBuffer;
m_burnData.usedSystemBuffer = eventArgs.UsedSystemBuffer;
m_burnData.freeSystemBuffer = eventArgs.FreeSystemBuffer;
backgroundBurnWorker.ReportProgress(0, m_burnData);
}
|
|
|
|
|
BackgroundWorker has a WorkerReportsProgress property. Have you set it to true ?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi All,
I set worker report progress to true.
Thanks and regards,
Amit Patel
|
|
|
|
|
four cards from deck r upturned
below each upturned card is an arrow pointing upward or downward
depending upon the direction of the arrow,the players need to place apprpriate on the upturned cards..if the arrow points upwards,a player needs to place a card numbered one more then that on the upturned card. if the arrow points downwards,a player needs to place a card numbered one less than that on the upturned card..
when a player places his or her card on one of the upturned cards,the vacant slot is occupied by a card from his deck....at any point a player should be able to see four of his cards unless his deck does not have that many cards..
any player can place apprpriate card in any of the upturned cards,,,therefore he needs to act n think fast..
if none of the players is able to make a move ,the flip card is displayed ..if the player clicks flip card,the upturned cards in the center are changed,,
the players need to keep placing their cards on the upturned cards, a player who first places 20 of his cards on the upturned cards,wins the game..
|
|
|
|
|
|
J4amieC wrote: Quantum nano-tubesLiquid Nitrogen.
FTFY!
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
I would say, start VS 2005 / 2008 (or an other program of your choice), start programming and if it looks like you discribed above, then you should have your answer.
Please have a look at the pinned entries in this forum.
Greetings
Covean
|
|
|
|
|
Homework?
What have you got so far, and what exactly is it that you want help with? If you're looking for an example on drawing the cards, then take a look at this[^] article; it shows how to use the cards.dll that's used for FreeCell and the likes.
I are Troll
|
|
|
|
|
i have started it off with..making cards with paint..no matter what the card is ...but the focus is on number ...just chk dis out ...i have used random class which generates sequence of numbers on its cards..the user has to click on his deck of his cards ...he has to click on a card if its greater and click on a card whose number is lower than the other card...i am placing the code which i got..
public void Flip()
{
int j;
Random r;
int temp;
int[] arr = new int[7];
r = new Random();
for (j = 0; j < 6; j++)
{
int found = 0;
while (true)
{
temp = r.Next(1,7);
found = 0;
for (int i = 0; i <= j; i++)
{
if (temp == arr[i])
{
found = 1;
}
}
if (found == 0)
{
arr[j] = temp;
break;
}
}
pictureBox1.Image = imageList1.Images[arr[0]];
pictureBox2.Image = imageList1.Images[arr[1]];
}
for (j = 0; j < 7; j++)
{
this.Text += arr[j].ToString();
}
}
|
|
|
|
|
here i have used flip method if the player is not able to make a move he has to click on a button so that the cards get interchanged..
|
|
|
|
|
the game begins lik dis..
ther r two players in the game..
each player is given a set of vards..evey card has a number ranginh 1 to 13
a player can see only four of his cards..
there is another pile of cards displayed in between the players ..on the top of this pile a card called flip..
|
|
|
|
|
if u want me to send the windows form which i have created ..just post u r email..
|
|
|
|
|
harish, can you send this windown form's project to me , i'll grateful you so much, your help very useful to me. thanks for read this letters
my email : mavietnam1@gmail.com
modified on Saturday, June 5, 2010 1:53 PM
|
|
|
|
|
I am reading data of a socket. I recently learned that the data I received is actually meant to be easily displayed in a vt100 terminal. So I was wondering if I can get the transformed output as a string itself...are there any libraries that does specifically this...?
If the above transformation is too complicated I am prepared to accept a transformation which removes all the escape sequences...
|
|
|
|
|
Don't know if Terminal Control Project (C# VT100 SSH Telnet)[^] might help?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Removing all the escape sequences is a fairly simple regex (and would make the output probably useless), but implementing them for a VT100 is not a massive task in it's own right - there aren't a lot! VT100[^]
I remember implementing a full VT220 in a weekend in assembler many years ago, so VT100 as a console app would be pretty simple to do.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
They're not all the same length so you would have to parse them.
Do you have any examples you can show?
|
|
|
|
|
Hi all,
I am working on a windows application. I am renaming the application short cut in start menu and desktop folders. it is working in XP, but when I run this application in Vista, it gives an error of file/folder not find. The file/folder path for start menu and desktop folder are different in XP and Vista. Can anyone help to find it out, so that it can work in all the windows like XP,Vista,Windows-7. First priority is VISTA...
Thanx in advance...
|
|
|
|
|
Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
[edit]
Environment.SpecialFolder.Desktop for Desktop.
[/edit]
Greetings
Covean
|
|
|
|
|
Hello Covean.
Thanx for the reply.
I am using exact code and it works in XP. But not in Vista.
Thanx again...
|
|
|
|