Evan Mulawski's Q&A profile
.NET Development Insert(..) procedur error....!
I am trying to insert into a table (I can add new columns to the table) new row with this procedur: Public Sub Insert(ByVal nova1 As String, ByVal BrojIks As Double, ByVal Prezime As String, ByVal Ime As String, ByVal BrojInd As String, ByVal zadnji As System.Nullable(Of Integer)) Dim i As Integer Dim nova As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter Dim InsertCom As OleDb.OleDbCommand = New OleDb.OleDbCommand Dim tableMapping As System.Data.Common.DataTableMapping = New System.Data.Common.DataTableMapping("Table", nova1) veza.Open() For i = 0 To Form2.Studenti1Data.Tables.Item(Index(nova1)).Columns.Count - 1 tableMapping.ColumnMappings.Add(Form2.Stud ...Show All
Visual C# Grammar class for C# 2.0?
I'm contemplating writing a micro-language that does rewriting C# 2.0 code. The immediate challenge: what kind of parser to use to parse C# 2.0 code. One of the things I found particularly troubling in the C# 2.0 standard was the section about resolution of the following code: G(A<3,4>2) (Is that a template or a pair of arguments The C# 2.0 standard says this it's a template name). I've hunted for off-the-shelf grammars for C#2.0 in commonly used parser tools with no luck (lots of partially implented C# 1.0 grammars, so far, but, no 2.0 grammars). If anyone could answer the following question, I'd be grateful. Can C#2.0 be parsed with LALR(1) parser tools LL(k) The example above really looks like it needs LL(*), o ...Show All
.NET Development Maximum size of collection
What is the maximum number of items that can be stored in a collection What will happen if I exceed this Many thanks, Michael Most collection objects wrap one or more arrays, and the maximum array size in Microsoft's .NET implementation is 2,147,483,647, even with a 64-bit environment. Consequently, most collections have that as a limit. I'm not sure what happens if you hit this. With a 32-bit environment, you'll run out of address space before you hit this limit, and encounter OutOfMemoryExceptions. -Ryan / Kardax ...Show All
SQL Server Delete record from table over 5000 count.
Hi, I want to delete from table when the record count is over 5000. That is, the table's record cannot over 5000 count. How row_number() seem to be used... If I should make index for this table, the DATETIME type column will be a member of the index. This table is for saving the event messages which may occur in same time. As a result, this column data may be not unique. Any other column of this table is not unique also... ...Show All
Windows Forms Automating Outlook .msg form works but does not send immediately
The automation code only loads and makes visible an untitled.msg form (separate from my project), the main form of Outlook is not loaded. In the .msg form I can load the contents of the Clipboard, change it, add text, etc. Clicking the Send Key from the Outlook .msg toolbar works except the message queues until the next time I’m in Outlook’s main form and I hit the “SEND/RECEIVE” key. Is there an option in Outlook that sends a .msg when the send key is clicked from the .msg form Why do it this way … you might ask. For a couple of reasons: I do not have to re-invent the wheel “so to speak” make available all of the necessary fields, options, addressee and address lists etc. inside my project. I do no ...Show All
SQL Server Moving PathAnnotations
Does anyone know how to manually move or place PathAnnotations The auto-placement seems to have no rhyme or reason... Kirun ...Show All
Visual Basic Save
The menustrip has a button to save...How do you make it work save the form the UI form I don't think you can do this, but only save contents of the controls to a textfile, such as text in a textbox for example: Dim theWriter as new System.IO.StreamWriter( yourFile.ext ) theWriter.Write( Me .theTextBox.Text) theWriter.Close() or: My.Computer.FileSystem.WriteAllText("MyFile.ext", Me.theTextBox.Text, true) would append to the file specified, the text from the textbox both results in the same response ...Show All
Visual FoxPro Cursoradapter Browse - Enter Key Doesn't Work
Hi, In VFP8, I have a cursoradapter and do a browse. Users noticed that sometime when the edit a field it doesn't get saved. We narrowed down to discover that if you change a field value and press Enter and then Ctrl-W, the change is NOT saved. If, however, instead of pressing Enter, you mouse click on another row or cursor up/down to another row, then the change DOES get saved. Why doen't Enter (or Tab also has same behavior) followed by Ctrl-W work for saving changes Thanks, Rob Just to add to what Cetin said. There are only two ways to save buffered data. [1] Use an explicit TableUpdate() call. (works in all scenarios) [2] Move off the current row (applicable only when ROW buffered). Neither Enter, CTRL+W or ...Show All
Visual Studio Express Editions C++ Question
hey i got a question with this visual studio C++ 2005 express program. i have been trying to create 3d images using c++ code but i keep getting an error. i want to know if this is a problem with the progam i wrote or if this visual program is unable to identifie the code need for 3d images. if it is a problem with my code could some one give me an example code of a simple 3d image. thanks. You should post all of your C++ oriented question to http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=8&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) What is most efficient way to create the list of image thumbnails?
Hi! I have a "little" question... ;) I would need to have (kind of) photo-album functionality in my application - it should display thumbnails of images from certain folder (and entering a folder with 2000 images should not bring the system to its knees!), and user should be able to move in that thumbnail view (using keyboard!) and perform some actions. Problem is, that there are so many options in all respects (what should be the container, how to get thumbnail of the images, how to do it asynchronous - so that folder with 2000 images would not block whole machine, etc.), that it is difficult to choose something In your opinion, what would be the most efficient way to do this Thank you very muc ...Show All
Visual Basic Split Question
I need splitting a file for get any info I wrote this Code: Dim number As Integer = 0 Dim ParamSeparator() As Char = { "G" , "I" , "F" , "8" , "9" , "a" } Dim gif As String = File.ReadAllText(OpenFileDialog1.FileName) Dim i As Integer = 0 For Each files As String In gif.Split(ParamSeparator) If files.Length > 0 Then ListBox1.Items.Add(i & " " & files.Length + 6 & " 0" ) i = i + files.Length + 6 number = number + 1 End If Next TextBox1.Text = number And it work but i have a problem with " ParamSeparator". My problem is that if i have a file with this Text: GIF89a11 G GIF89a32 The G doesn't go counted be ...Show All
Visual Studio Express Editions Adding Favourites
Does anyone have a code i can use to add to my internet browsing application that will enable the users to add favourites to a list. And if posible a snippet which will hide the users IP, so it's anoymous browsing. Also does anyone know of a site which supplies graphics, buttons etc. that can be used in created applications. Thanks to anyone who replies Cheyenne, It won't be today because I have a full itenerary. This is a textfile with fields, some fixed and some user supplied. The developer's job is to figure out what all of the fields are and to respond appropriately. There aren't any large mysteries here. There is a hextime... I'm wondering if that ...Show All
Audio and Video Development Mixing rate sink and rateless sink on a tee node
I modified the WavSinkSample and inserted a tee node so I could also add an Audio Renderer output node. When I do this, the topology starts playing just fine. But it ends as soon as the WavSink finishes writing the wave file. Is this the intended behavior I would have expected the topology to stop when all output nodes are done processing samples. I tried a bunch of workarounds: - Changing the order in which I connect the nodes. - Set MF_TOPONODE_RATELESS to 0 on the WavSink output node. - Set MF_TOPONODE_PRIMARYOUTPUT to 0 (index of the audio renderer) on the tee node. - Set MF_TOPONODE_DISCARDABLE on the tee node for all secondary node. But none of these worked. Is there any ways to accomplish when I want or is this a bug Also, I tri ...Show All
Visual Studio 2008 (Pre-release) 3dmax to sparkle
I draw a plane in 3dmax, all the points of the plane was located at y axis and x asix, then i export it to obj file.After that, i use sparkle to translate it to xaml file. I found a problem: the points of "Point3DCollection" didn't looks like "-5,2.5, 0 -5,5,0 -2.5,2.5,0," but "-5,0,2.5 -5,0,5 -2.5,0,2.5 " i means the z axis and the y axis changed each other ....... I want to know to how to get the correct coordinate when you export obj file Any suggestion would be appreciated... you likely should post sparkle (or EID) issues on their forum: EID Forum | Blog Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com ...Show All
Internet Explorer Development IE 7 opening to Run Once page with error on it.
I downloaded updates last week. I have been using IE7 for a while with no problem. I dwnloaded the updates. Now when I open my browser the page tries to go to http://runonce.msn.com/runonce2.aspx . There is an error reported for this page and it will not open up I get a blue screen. How do I eliminate this I have my home page set in the tools section but when opening it won't go to my home page until I hit the home button on the tool bar. I tried running IE7 with out add-ons. The run once page did not come up to open at all. The browser did not go to anything except a page that said that the add-ons were disabled. ...Show All
