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

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

JohnPatchin

Member List

Kline Chen China
Meltdown61
Fiddel
kuria
Torsten_Katthoefer
CaRNaGe_46038
Keith Newton
akin_l
Wasim
WinFormsUser13232
Cyber Junkie
glooey
Peter Cwik
Eric Cann
ray1979
Eudi
vb2005
Sreekk
Rahul Garg
Priti Phadke
Only Title

JohnPatchin's Q&A profile

  • Microsoft ISV Community Center Forums Passing Function As Argument

    I dunno if it's possible, but I'd like to pass a function name as an argument to a function. The idea is to use the result of the function to do some calculations, no matter what the function is. It would be like this: Function Find_Zeros( Function_Name As Function, Value_X As Double, etc) Thanks in advance. I'm okay with passing strings, as long as it works This function is to find the root of the function, if there's only one root, and if the values of the function in left and right are of different signals. It's a rude way to find roots, but it's the only method that I know that always find a solution (tangent and newton-raphson sometimes don't find any). It explodes, yes, but the v ...Show All

  • .NET Development Hash code of floats

    I have recently been implementing a custom hash table which takes vertex positions as input (3 floats). To begin with I used a highly customized hash function, but surprisingly the good old method of using float1.GetHashCode() ^ float2.GetHashCode() ^ float3.GetHashCode() turned out to be just as efficient as the customized hash function. So now I'm curious as to how the GetHashCode() function of the Single/float struct generates a hash code. Does anyone happen to know this Thx for the Reflector tip. Hadn't thought about that myself :-) The GetHashCode method is indeed very simple. It just makes a simple bitwise conversion from the binary float representation to the integer representation like this : *((in ...Show All

  • Software Development for Windows Vista My events stop working when I add a service.

    I am trying to test the pesistence engine. I modified the out of the box 'SimpleSequentialWorkflow' demo application. I added the following line and the OnWorkflowCompleted event never fires.: SqlWorkflowPersistenceService StateService = new SqlWorkflowPersistenceService ( "Data Source=local;Initial Catalog=WFState;Integrated Security=true" , true , new TimeSpan (0,0,10), new TimeSpan (0,0,3)); It does work when I add the following line: SharedConnectionWorkflowCommitWorkBatchService BatchService = new SharedConnectionWorkflowCommitWorkBatchService ( "Data Source=local;Initial Catalog=WFState;Integrated Security=true" ); I am using a SQL2000 database I also added the tracking service a ...Show All

  • Smart Device Development is it possible to copy an already installed certificate?

    Hello, I was wondering if it's possible to copy a certificate in one of the store of the device. If so, how Regards Well is there any other means to extract the certificate from the privileged or spc store without code or anything. Can people just go to a special directory and copy the certificate or something like like ...Show All

  • Visual Studio Express Editions c++ dll serial com help needed

    I'm trying to make a plugin for a program I'm already using. I can make a plugin fine, and call functions from it, but the problem I am having is that the plugin DLL is being written in C++. I need to be able to choose a com port and get the data in numerical byte form to my program. There is a wonderful example on the devX site ( http://www.devx.com/dotnet/Article/31001/0/page/1 ) but it's written in VB and I only get 2 numbers per byte. I am new at serial communication at this level and need some help / sample in c++. I'm hoping I can also connect automatically to my bluetooth device without going through the external software and hitting connect. Any advice / samples would help. Thanks t ...Show All

  • SQL Server how can deploy report with asp.net application for remotely access

    hi, how can i publish my RS2005 reports with asp.net(2005) application.I am trying by creating virtual directory ,the aspx page runs but it is unable to access reports from report server Is there any article on how can i deploy report with asp.net so that i can access report using aspx page remotely pls suggest me Hi Amitkatyar, You may find this page helpfull. http://www.windowsitlibrary.com/Content/2084/01/1.html ...Show All

  • Windows Forms getting rid of textbox "flicker"

    I have a textbox that I constantly update. And to do so i use: textConsole.Text = message; //message is the string i want to set it to textConsole.Select(textConsole.Text.Length, 0); textConsole.ScrollToCaret(); But it updates too often that it flickers when it is updated. I know about the AppendText() method but for what I am doing I havent yet found a way to use it properly (im still trying). So if anyone knows if it is possible to reduce the flicker let me know Thanks nahguam wrote: It may help to call SuspendLayout() before you do your updates to the textbox then call ResumeLayout() afterwards. Just for my understanding, what does that do Quilnux ...Show All

  • Visual Studio Team System Release date?

    Any news yet on when VSTE DBPro will be officially released and out of CTP Just wondering when the product will go RTM (or has it already gone - I don't see it in my MSDN downloads area) I thought it was at the end of November Thanks, Baris ...Show All

  • Visual FoxPro Working with field General!

    Hi, all! Help me to update field type General: append object, edit, open,... in VFP from program control with bottom command. (use line command MODIFY GENERAL <field gen> don't open object) Thank! There is a simple solution to deal with General fields in VFP: Don't use them . General fields have lots of problems, mainly they grow in size to the point where they can easily go over the 2Gb file limit. They are unwieldy and should be avoided. Instead: - Use BLOB fields (VFP9) or - Use a text field to keep the path+filename and keep the original file on disk You'll be glad you did.   PS: Did I say: don't use General Fields ...Show All

  • SQL Server Relative Path FlatFile

    Hi, Since I can do to call the FLATFILE of a relative path I have a user's variable, in which this the path to the FLATFILE EJ: C:\FlatFile.txt In the code c # I call cargo the dtsx pkg. Variables ["MyVariable"] .value = new value the path(D:\FlatFile.txt) This me does not work does not change the value of the user's variable helps please ...Show All

  • Visual Studio Express Editions Chart Control

    I have upgraded a VB 6 application that has a chart.  The upgrade was successful but when I run the application I get the following error: System.InvalidOperationException was unhandled   Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Unable to get the window handle for the 'AxMSChart' control. Windowless ActiveX controls are not supported."   Source="WindowsApplication1"   StackTrace:        at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180        at WindowsApplication1.My.MyProject.MyForms.get_Form1()   &nb ...Show All

  • Visual Basic WebBrowser Refreshing Problem

    I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All

  • Visual C++ Help with c++ program as CLR....!...

    Hello. I'm just messing around with c++ making my own program just on my own just to learn...It's a Visual C++ CLR ..Windows Form App .......It seems to work just fine but at one part it's not..here's the code... #pragma once namespace question { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// t ...Show All

  • SQL Server SQL Server Compact Edition Merge Replication Error

    Hi I am trying to complete sql server compact edition book online walkthrough " Creating a Mobile Application with SQL Server Compact Edition". I am successful to complete it as guided using all default settings (e.g. anonymous access, windows authenticaion etc.) and the sample run on both emulator and my pocket pc svc5000. I have following configuration.. Windows 2000 professional sp4 Sql server 2005 standard edition sp1 VS 2005 profesional edition (sp1 not installed) Sql server compact edition Sql server compact edition server tools But the problem is that in production environment i will not be able to connect to the sql server using named instance (e.g machine_name\instance_name). i have to use ...Show All

  • SQL Server Cannot start SQL Server Browser

    Hello, I use SQL Server 2005 for multi-user access. In the Surface Area Configuration, I changed the protocol from TCP/IP to Named Pipes and restarted the service. Then I went to SQL Server Browser, stopped it and clicked on Start to restart. I am getting a message "An error occurred while performing this operation". I am not able to get the Browser started. Any help would be greatly appreciated. check whether firewall is enabled on this machine.. check  UDP port 1434 is excempted.... Refer http://msdn2.microsoft.com/en-us/library/ms165724.aspx   Madhu ...Show All

©2008 Software Development Network