|
From your previous posts, you don't have to skill level to pull this off.
You've got about 3, 1000+ page books to read just to understand device driver developement and the ins-n-outs of NTFS.
For a comparison of whats involved, you're a student walking in to his first metal shop class, wanting to build a brand new car. You are a couple of years away from aquiring the programming skill to do this.
|
|
|
|
|
I'm trying to find out how I can open and read an Outlook .pst file. I need to be able to read/edit all of the email headers. If the attachments have any header type information that tie them to a particular mail server, I need to be able to read/edit that info too.
Can someone point me in the right direction. I'm using VS2005. Are there any code samples anywhere or articles that tell how to do this type of thing? What is the best way to perform these tasks?
Thanks.
|
|
|
|
|
You'll have to use automation to get Outlook to read the PST file for you. The file format is protected by Microsoft and there is just about no documentation on the web on it.
|
|
|
|
|
hi,
Have u got any idea on reading the pst file path of current user.i tried through registry.But its not working.
If u have any idea nor samples,pls share with me
Thanks
|
|
|
|
|
That depends on how the object was written and what it does with that FileNum. Most likely, no, you can't redirect it.
You'd have to let the object save it's files, then transfer the file to the client and have it load the file when done.
|
|
|
|
|
Wow - really terrible database design. Is your class assignment saying it has to look like that ? How do you think you could do it ? I mean, do you have any ideas ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
If I didn't know better, I'd say you were talking to yourself.
|
|
|
|
|
I'm new to programming, I want to build application that play dvd movies, please help me to do this. i will be highly gratefull.
|
|
|
|
|
Drag the Windows Media Player control onto a form. You're done. Of course, the MPEG2 codecs need to be installed on the machine, but that's another story.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
The easiest way to do it would be to launch the installer for the codecs from your app and let the installer do it's job for you.
Since you don't own the codecs, you probably would not get away with shipping the codec with your application.
|
|
|
|
|
Does anybody know how to create an efficient Undo/Redo Class? What are the general things I need to implement?
may your code be error free
|
|
|
|
|
Undo/Redo functionality is really based on what your application does.
If it's a text editor, you'd want to store which text was inserted/deleted/moved where. If it's a graphics program, you might want to store that drawing tool X was used at location Y. If it's a game, you'd want to store that the player moved from A to B, and what each enemy did in response.
In general terms, an Undo/Redo class is going to act like a list or array of state objects. The state object would need to:
1) Store data representing the action performed
2) Know how to "apply" that data to the application (Enter text, make a move, draw something)
3) Know how to reverse that process (Remove the text, back up a move, erase something)
I can't help you with the implementation of that state object, but the general functionality of the Undo/Redo would be:
(Storing an integer representing the location in the undo list)
Undo:
1) "Reverse" the state object at the current index
2) Add one to the index
3) If the index is greater than the size of your state array, disable undo
Redo (Enabled when index > 0):
1) Subtract one from the index
2) "Apply" the state object at the current index
User performs an action:
1) Remove any state objects less than the current index (So the current undo item is in position zero)
2) Insert a state object at the zero position that describes what the user just did
3) Set the index to zero (First item)
Sounds easy, of course figuring out that state object could be really difficult, depending on your app.
|
|
|
|
|
Thanks for your response! I need Undo/Redo functionality for multiple objects. My application allows the user to
- move
- resize
- change font type
- change background image
etc..
The research I've done so far only supports undo/redo operations for one class. In other words, you would have to have a reference to the object then use the undo interface attached to it. Any ideas on how to implement undo's for multiple objects?
|
|
|
|
|
Create a class heirarchy for undo/redo actions, so that you can keep a collection of the base object, and the derived objects represent the different types of action to undo.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How about looking at the source code for Paint.NET? It has Undo/Redo functionality that seems to match the scenario you describe.
Paint.NET[^]
Kevin
|
|
|
|
|
Hello, is there any way to get a NumericUpDown control to update and validate itself as you type?
My problem is: The NUD control updates it's Value property when you use the up-down arrows, but it doesn't update itself as you type until it has lost focus.
What I am trying to do is have a "FINISHED" button stay Enabled=False until the value entered into the NUD control is greater than a certain amount, then, I want it to Enabled=True.
I don't want the user to have to click off the NUD control or have to "Tab" off if it just to throw a LostFocus event just for the "finished" button to light up.
Can this be done? Are there any already written user controls or chunks of code out there that already do this?
Thanks.
|
|
|
|
|
It is ALOT of events but look at using the KeyPress/KeyUp/KeyDown (whichever works best) events for that control.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Well, I gave it a few days of hard effort, but there's just too much going on to trap. Essentially, I had to try to, based on key-presses within the control, figure out it's value at all times. I got it about 80% of the way there with using overrides and such but things like "using the mouse to highlight the box and hitting delete" as opposed to "highlighting a digit or two and hitting delete" made me aware this is way over my head.
Once again, I toss this out to the forums:
Need a numeric text entry control. Control has to at all times, know it's value, including while entering. Basically, if it's on the screen; it has to know it's value. Does such a beast exist for the .NET framework?
Thank you.
|
|
|
|
|
Is this for a Windows Form? If so .NET 2.0 brought back the masked text box which can only allow numerics if you set that property but you can also just validate the text after the fact.
A better way to do this on your own would be to use the textbox's KeyPress event or something along those lines and look at the following.
If e.KeyChar = Chr(CharCode for 0-9) Then
e.Handled = True
Else
e.Handled = False
End If I think that is all you really need to do.
-- modified at 12:10 Tuesday 29th May, 2007
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
how to work with datagrid using
1)delete command( permanently to remove all selected rows or selected single rows)
in sql database through datagrid during run time in vb.net windows application
and
2)update and save the changed values permanently in sql database through datagrid during run time in vb.net windows application?
|
|
|
|
|
If you bind this to a dataset object and provide the delete/update/insert commands then it is all taken care of for you. All you have to do is at some point call the tableAdapterName.Update(dataSetName.dataTableName) .
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TblUserTableAdapter.Fill(Me.DatabaseDataSet.TblUser)
End Sub
Private Sub TblUserBindingNavigatorSaveItem_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblUserBindingNavigatorSaveItem.Click
Me.Validate()
Me.TblUserBindingSource.EndEdit()
Me.TblUserTableAdapter.Update(Me.DatabaseDataSet.TblUser)
End Sub
It doesn't save information into my database. Help!
|
|
|
|
|
how to work with datagrid using
1)delete command( permanently to remove all selected rows or selected single rows)
in sql database through datagrid during run time in vb.net windows application
and
2)update and save the changed values permanently in sql database through datagrid during run time in vb.net windows application?
|
|
|
|
|
Hello all, I creating a Temp DataSet and Adapter, populating it and then doing an Insert to move data from this table back into the orginial table I copied it from but with a new DATE. I have it all working fine so far but when I get to trying to list the value of one of my columns (the most inportant one) I can't seem to grab the value. Below is what I have as of now. The line that I am having a problem with is OrderName = ADS.Orders.Select.ToString but I wanted to show you exactly what I am doing. Does anyone have any suggestions? Thank you for any help that you can provide...
Dim NewVisitDate As String
Dim PriorVisitDate As String
Dim SQL As String = String.Empty
'set Variables
NewVisitDate = txtVisitDate.Text
PriorVisitDate = Me.cbobxPriorDates.Text.ToString
MR = frmQuestionnaire.txtMRNo.Text
'create SQL to filter out data
SQL = "SELECT OrderMR, OrderDate,Order FROM (Orders) WHERE (OrderMR='" & MR & "') and (OrderDate= #" & PriorVisitDate & "#)"
'create new DataSet and new DataAdapter
Dim dr As OleDbDataReader
Dim ADS As New AnesDataSet
Dim CopyOrders As New OleDbDataAdapter(SQL, Connection)
CopyOrders.Fill(ADS, "Orders")
'CopyOrders.Fill(ADS.Orders)
Try
Connection.Open()
Dim Command As New OleDbCommand(SQL, Connection)
dr = Command.ExecuteReader()
Catch ex As Exception
End Try
'run a ForEach statement to modify all of the records in the ADS.Orders table
Dim Row As DataRow
Dim OrderName As String
Dim SQLInsert As String = String.Empty
For Each Row In ADS.Orders.Rows
OrderName = ADS.Orders.Select.ToString
'setup an SQL to change the Date and Insert new records
SQLInsert = "INSERT INTO Orders (OrderMR, OrderDate, [Order]) VALUES (@MR, @NewVisitDate,@OrderName)"
Dim Command_Insert As New OleDbCommand(SQLInsert, Connection)
Command_Insert.Parameters.AddWithValue("@orderMR", MR)
Command_Insert.Parameters.AddWithValue("@OrderDate", NewVisitDate)
Command_Insert.Parameters.AddWithValue("@Order", OrderName)
Command_Insert.ExecuteNonQuery()
'Console.Write(Command_Insert)
|
|
|
|