Software Development Network Logo
  • Visual Basic
  • Smart Devicet
  • SQL Server
  • Visual C++
  • .NET Development
  • VS Team System
  • Visual Studio
  • Windows Forms
  • Microsoft ISV
  • IE Development
  • SharePoint Products
  • Audio and Video
  • Visual C#
  • Windows Vista
  • Game Technologies

Software Development Network >> Petknep's Q&A profile

Petknep

Member List

Kiwi Ranger
Ogulcank
Harry_Leboeuf
Saltynuts
RichardR
DrJim
ferlinco
AnneF
JoseRF
TICarson
Sekar1979
Marcus Rodrigues
espionage
Joey Bradshaw
Evan Mulawski
Richard R
glasssd
toniSQL
netleon
tri4pro
Only Title

Petknep's Q&A profile

  • .NET Development Ultra-fast deserialization/serialization

    Hi, I'm wondering if there is a way to speed this up: I have objects that implement the following methods: public void Serialize(System.IO.BinaryWriter writer) { writer.Write(this.price); writer.Write(this.size); writer.Write(this.dateTime.Ticks); } public MyObject Deserialize(System.IO.BinaryReader reader) { return new MyObject(reader.ReadDouble(), reader.ReadInt32(), new DateTime(reader.ReadInt64())); } That's what I use for serialization & deserialization. Currently I manage to write 10,000,000 objects in 5.5 seconds, however my Raid 0 drives can write up to 140MB/s, so I think there should be some upside left (10mio objects result in 195MB file). I guess the problem is that the .Write ...Show All

  • .NET Development FileSystemWatcher event not raised when mailserver moves file

    Hi folks, i just build a service application which is used to observe the mailroot\queue-folder on a W2K3-Server. A FileSystemWatcher is set on this folder & the application will check the mails popping up there. As it works with normal drag'n'drop/move of files, no event will be raised if the mail server places a file in the queue folder. Some settings: FileSystemWatcher.Filter is set to "*.*", no NotifyFilter defined, Created-, Changed- and Renamed-events are used. Any help available Thanx alberich Thank you for your fast response. The application is running on the server, no network path involved. Also there is no change of the file directly after a notification (regarding to the KB245214). There is no notification. ...Show All

  • Microsoft ISV Community Center Forums Trying to create a global variable

    I am trying to create a global variable in a user form within Microsoft Excel. I know the variable must be in the General area. So I type: bt = Sheets(10).Range("G25").value then I click play(run), but that highlights "G25" and says : Compile Error: Invalid outside procedure I tried just typing: bt="hello" And then I hit play(run), and it highlighted "hello" and gave me the same error. What am I doing wrong Hey Derek, I figured that part out last night, but I did not need a variable that would work outside of a userform, just outside the "private sub". So in the module i created a line: public const bt as string = Sheets(1).Range("g25").value But I dont think ...Show All

  • SQL Server General issues concerning Data Mining with SQL server 2005

    Hi I am just starting to learn how to use data mining with SQL server 2005. I have some general questions which I hope someone out there can help me with. Each month I have approx. 100.000 customers who buy a product. I want to contact 10.000 of these with a letter for cross-selling some additional products. Currently I choose these 10.000 randomly from the 100.000 customers. I now want to use SQL server 2005 data mining to choose these 10.000 better, to receive a better response rate. How do I transfer this knowledge to the 100.000 (potential cross-selling customers) I understand that it could be set up in SQL server like the following: case table: customer_id, gender, age, city, etc. nested table: customer_id, produc ...Show All

  • .NET Development Visual C# and ManagementClass

    All, I am trying to return an instance of a class that is returned from WMI and need a little. Here is an example of my code. private ManagementBaseObject inParameters; private ManagementBaseObject outParameters; private InvokeMethodOptions methodOptions = new InvokeMethodOptions ( null , System. TimeSpan .MaxValue); private ManagementClass WMIClass = new ManagementClass ( \\\\.\\ROOT\\wmi ); Now when I use outParameters = WMIClass.InvokeMethods("MethodName", inParameters, methodOptions); it executes fine and using the outParameters.GetText(TextFormat.Mof) everything is returned correctly. However, the returned value is in the form of a class. How can I make this into my class. Basic ...Show All

  • Visual Studio 2008 (Pre-release) Possible Bug.... WPF throws excpetion when opening new window....

    The situtaion is as follows: I have two windows defined, window1 and window2. Window1 is the startup of the application... In some cases I need to open window2 before window1 is even shown. In the case where window2 doesn't need to be shown before window1 everythig is fine. In the other case where window2 DOES need to be shown before window1 the following exeption is thrown (after that window closes using this.close() method): An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: Cannot create instance of 'Window1' defined in assembly 'MeiRouInterface, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target ...Show All

  • Visual Basic problem in transferring files to Unix box[Resolved]

    When i transfer a .txt file to a unix box using the microsoft internet transfer control , i am getting "CONTROL + M " on each line . This means that the transfer was not proper . This is my code . Code: Dim b() As String Dim strURL As String Inet1.URL = "ftp://ip address" Inet1.Protocol = icFTP Inet1.AccessType = icDefault Inet1.UserName = "root" Inet1.Password = "Compaq" Inet1.RemotePort = 21 Inet1.RequestTimeout = 100 Inet1.Execute , "PUT C:\hosts.txt /in/tmp/hosts" Is there anyway to transfer the file in binary sars got the solution ... i was using vbcrlf for carriage return .. unix doesnt support that ..it supports vbLf .... so i changed it and i ...Show All

  • Smart Device Development How to continue using an application whilst waiting for a function to execute repetitively on a fixed interval

    Hi i am ruuning the following extract of coding from visual basic 2005: __________________________________________ Dim start, finish As Double Do While DateTime.Now.Hour < 17 start = Microsoft.VisualBasic.DateAndTime.Timer ' Set end time for 30-second duration. finish = start + 30.0 Do While Microsoft.VisualBasic.DateAndTime.Timer < finish ' Wait a while before doing next action Loop call_a_function() ' Go off and do something then come back Loop ______________________________________________________ While the program falls into the "wait state" (2nd do while loop) the program stops me accessing anything else on the active form, like using a drop dow ...Show All

  • Software Development for Windows Vista Duration change not reflected in WMP (EC_LENGTH_CHANGED)

    hi, i have build a source filter, when the source file length changes I send a EC_LENGTH_CHANGED, CComQIPtr<IMediaEventSink>(m_pGraph)->Notify(EC_LENGTH_CHANGED, 0, 0); this works perfect in all directshow players, but not in windows media player. i get asked for the new stop position, but nothing changes. the duration  keeps always the same. can somebody help me please. thanks.       I'm afraid I haven't done much with WMP. You might try one of the forums over at http://msdn.microsoft.com/newsgroups/topic.aspx url=/msdn-files/028/201/070/topic.xml ...Show All

  • Visual Basic Is it non sense?

    Greetings..... I found this code in the previous projects of our office. And it seems to be non sense... Or I, either just don't understand what this set of code for.... Dim pc As Process = Process.GetCurrentProcess() Dim setMax As IntPtr = New IntPtr(1000000) pc.MaxWorkingSet = setMax These was handled by timer.tick... Can someone explain to me what are these for... as a whole and per instruction.... PLEASE......... no idea why you would create that many Pointer/handles/whatever. line 1: gets the current application process and stores it into the "pc" variable line 2: declares a variable called "setMax" as a type of IntPtr (Pointer) with a specified initialized value of 1000000 line 3: sets th ...Show All

  • SQL Server Calling Stored Procedure from SSIS

    Hi I am trying to call a stored procedure which akes 1 input param from SSIS. I am using Execute SQL Task->Expressions->"exec s_Staging '"+ @[User::tblName] +"'" @[User::tblName] is the variable with Data Type:String ,Value:My_table SQLStatement->Stored Procedure Name But It throws an error [Execute SQL Task] Error: Executing the query "exec s_Staging 'My_Table' " failed with the following error: "Incorrect syntax near 'My_Table' ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. Hi, Try this out : "exec s_ ...Show All

  • Visual Basic working with dll's as plugins

    Hi, I'd like to create application that can update and improve functions by dll files as plugins. i wrote my own dll and check a folder (eg: Plugins) for the files with .dll extension and for each dll files in that folder i want to add all of the file's functions into my main application. how can i do this here's a short and simple example: dll: Public Class MSGDll Public Sub SendMsg(byval Msg as string) msgbox(msg) end sub End class Main app: Public Class Form1 Private Sub form_load(...) for each path as string in my.computer.filesystem.getfiles("Plugins") me.listbox1.items.add(path) >>> and here i would write a code that imports the SendMsg(path as string) function of the found ...Show All

  • Visual Studio 2008 (Pre-release) Problem binding to Applicaiton Setting to combobox

    I have an user application setting of type integer. I bind the setting to the combobox's selectedvalueproperty. The Default value of the setting is 8, but when I start up my app the combobox's selecteditem is not 8. //Bind Number of visible days setting to combobox. ComboBoxItem cbi; ComboBox cb = (( ComboBox )( this .FindName( "NumOfVisibleDays" ))); for ( int i = 1; i <= 60; i++) { cbi = new ComboBoxItem (); cbi.Content = i; cb.Items.Add(cbi); } //Bind Number of visible days setting to combobox. bd = new Binding ( "NumberOfVisibleDays" ); bd.Source = Properties. Settings .Default; BindingOperations .SetBinding((( DependencyObject )( this .NumOfVisibleDays)), ...Show All

  • Software Development for Windows Vista Digital Identity Applet window cannot be opened

    i have just installed the .net 3.0 June CTP.I used to have a ball with .net run time components with beta 2 esp with CardSpace now with June CTP i am getting the following error when Event Type: Error Event Source: Microsoft.InfoCards.Diagnostics 3.0.0.0 Event Category: System Event Event ID: 102 Date: 13/07/2006 Time: 04:55:29 User: NT AUTHORITY\SYSTEM Computer: xxxxxxxxx Description: Invoked FailFast Message: The InfoCard Service cannot be started on this file system. Stack Trace: at System.ServiceModel.Diagnostics.ExceptionUtility.TraceFailFast(String message, EventLogger logger) at System.ServiceModel.Diagnostics.ExceptionUtility.TraceFailFast(String message) at Microsoft.InfoCards.Diagnostics.DiagnosticUtility.FailF ...Show All

  • .NET Development Installing .Net framework 2.0

    After a recent reinstall of windows XP, i have found the the .Net Framework 2.0 will not install, it get a certain amount through and the i get this error Error 25015. Failed to install assembly 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.OracleClient.dll' Because of system error: The system cannot find the path specified Because if this i cannot install the package, and run some programs i would like to, Thanks in advance for any help if you are running anti virus software, I would suggest to disable it before hand as some can effect installations. Secondly, where are you downloading the .NET Framework from Have you tried downloading the redistributable package and installing it from th ...Show All

©2008 Software Development Network