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

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

johnb01

Member List

GlenAtMotorola
Ejele012
Mehmet Metin Altuntas
Lucas Pasquali
Yarik
aman anand
Ofir Epstein
Rashar
Tom from cener.co.uk
CiNN
vinuhyd
Khass
shinji_rem
Jehan Badshah
thomasx4
Tryin2Bgood
tdcntt
Whoisit
Lee Brimelow
Nirdesh Dabas
Only Title

johnb01's Q&A profile

  • Visual C++ How to determin my IP using winsock2 ?

    Hey all, I"m building a c++ console app using VS.2005 and I use winsock2.h for network programming. How do i determin my own IP address Thanks in advance :D spree wrote: Which files or libraries do I have to include inorder to use this function Isn't that the sole purpose of MSDN ...Show All

  • .NET Development Reducing memory usage with XslCompiledTransform

    I've currently been using and XslCompiledTransform in my software to apply an XSL stylesheet to a user-provided XML file and then bulkloading the resulting file into a SQL table. This worked great until an XML file larger than 100 MB is thrown into the mix. The RAM usage jumps off the charts and for most users, my program exits will an OutOfMemory Exception. I've looked for ways to get around this and cannot seem to find any solutions. What can I do differently or what other alternatives do I have other than physically parsing through the XML file line by line (or node by node) and performing the operations the XSL file does myself... which is my LAST option considering I am sometimes dealing with 2GB and 3GB XML files. Oh.. and here's ...Show All

  • Windows Live Developer Forums Article - Loading your pushpin popup content on demand

    The next in my series of little articles I look at loading the content inside your pushpin popups on demand: http://www.soulsolutions.com.au/Articles/PopupContentonDemand/tabid/98/Default.aspx Full working code for improvements here at the wiki: http://viavirtualearth.com/Wiki/PopupContentonDemand.ashx John. John, everything coming from your mind sounds very interesting. The article is great, short but 100% useful. I knew nothing of mapping technologies, but i was able to put on production my first mush up thanks to this forum and your articles and code examples. Keep on like this!! Dario ...Show All

  • Audio and Video Development Eventhandler "controller_key_down"

    Hi, i have a problem with the eventhanlder "controller_key_down". I write following function, but when i press the Key "1" nothing happen. I also tryed other keys, but it doesnt work. Can someone help me with this problem function handleEvent(evt) { switch (evt.key) { case VK_1: Player.playlist.titles["robots"].chapters[1].jump("00:00:00:00",false); break; } } application.addEventListener("controller_key_down",handleEvent,true); I'm having a similar issue using your code from the BareBones menu. You mentioned something in the blog post about USB keyboards. Is that really an issue and is it possible this person is having t ...Show All

  • SQL Server Finding a user that has multiple log-ins at the same time

    I have a table that contains the following UserName - Which is unique to each user TimeStart - Which is the time and date that the user logs in TimeEnd - Which is the time and date that the user logs out Using SQL, how do you find who has logged in using the same account within the same time period. In other words, Two people are using the same username and are logged in at the same time. Try this query.... Select MainQ.* From UserLog MainQ Join ( Select Main.UserName, Main.TimeStart, Main.TimeEnd From UserLog Main Join UserLog Started On Main.UserName = Started.UserName And Main.TimeStart <= Started.TimeStart And Main.TimeEnd >= Started.TimeStart Group BY ...Show All

  • Visual C# Catch Errors from Creating DLL Instance

    I have a widget type application that reads all of the dlls in the plugins directory and creates an instance of each. I want to be able to catch the error of the individual dll without having to exit the entire application. Right now I'm calling the dll's like this: WidgetContainer.Container c = new WidgetContainer.Container(); c =(WidgetContainer.Container)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); c.Show(); Everything loads fine, but if one of the dll's has an exception the entire app closes. Is there a way for me to redirect all of the errors to the base application Thanks JGA Rather than me cobble something together, check out a post from Richard Lander. http://hoser.lander.ca/AppDomain+Unhandled ...Show All

  • .NET Development Navigating Large Database

    I have a SQL database table with about 1,000,000 records. I would like to be able to view these records on a form, linked to textboxes and such, and be able to navigate through them, as in back and forth. I have tried using the dataset and it is extremley slow to load the dataset. Its so slow it would not be usable. Does anyone have any suggestions on how I would be able to navigate through these records I would suggest to implement search capabilities inside ofthe application. Users usually would ike to get some set of records based on condition(s), not to navigate through all the records. It will allows to narrow down selection and will allow application to work with small amount of records ...Show All

  • Visual Studio Team System XML as an datasource

    i need to use an XML file as an datasource and pass data of XML file along with report parameters to a temporary table in oracle all this i have to do in SQL reporting pls provide me a solution i need this urgently thanks I'm not sure I follow the question, but since it sounds like oracle is involved, this isn't a Team Foundation Server issue. You may want to try the SQL Server Reporting Services forum if this is really about SQLRS itself. ...Show All

  • Visual C# Terminating a process using WMI

    Hi, I have been told that this is possible but I can't seem to find any sample code anywhere. Anyone know how to do this Thanks. using WMI, be sure you added a reference to System.Management.dll and imported the namespaces, System.Management and System.Management.Instrumentation. we then execute a query and execute the terminate command: ManagementScope theScope = new ManagementScope ( "\\\\ ComputerName \\root\\cimv2" ); ObjectQuery theQuery = new ObjectQuery ( "SELECT * FROM Win32_Process WHERE Name ='ApplicationName. exe ' " ); ManagementObjectSearcher theSearcher = new ManagementObjectSearcher (theScope, theQuery); ManagementObjectCollection theCollection = theSearcher.Get(); foreach ( Manag ...Show All

  • Windows Forms Magic Issue of ZoomFactor of RichTextBox!

    I write a simply code to Repro this issue. float zoom = 1.4f; string ss = this.richTextBox2.Rtf.Replace("\0", ""); this.richTextBox1.Rtf = ss; //this.richTextBox1.ZoomFactor = this.richTextBox1.ZoomFactor * (float)0.1; this.richTextBox1.ZoomFactor = zoom; When I run these code, the richTextBox1.ZoomFactor always 1.0. And after comment out the yellow line, the ZoomFactor is right to 1.4 Do you meet this issue before, and how to explain this issue Thanks! Hi If you look at the docs on MSDN for ZoomFactor it tells you that if the font you're using isn't TrueType then the zoom factor gets rounded to the nearest whole number so maybe that's the issue here HTH Martin ...Show All

  • Visual Studio 2008 (Pre-release) Dotted Border

    Hi! Is it possible to set dotted style of Border Something like " Rectangle.StrokeDashArray" There's no straightforward way of doing this, unfortunately. Part of the problem is that Border allows non-uniform widths, and it's unclear what it means to dash in that case. If you are trying to replicate FocusRect-type functionality, let me know and we go down that rabbit-hole. Otherwise, here are some other thoughts you may wish to consider: First, you can get something that looks somewhat reasonable using a checkerboard brush:   <Border Width="100" Height="100" BorderThickness="1" SnapsToDevicePixels="True">         <Border.BorderBr ...Show All

  • SQL Server Update Statement

    Table1 Table1ID ControlID (int) PermID 1 100 1251 2 101 NULL 3 102 NULL 4 103 2583 5 104 NULL Table2 Table2ID ControlID PermID LastChangedDate (datetime) 1 100 1251 08/02/2006 1:30 PM 2 100 1253 08/16/2006 3:30 PM 3 101 185 08/18/2006 8:15 AM 4 102 1908 08/14/2006 8:35 AM 5 102 2265 08/17/2006 11:14 AM 6 103 2583 08/18/2006 1:14 PM 7 104 2902 08/17/2006 4:32 PM How do I update Table1 PerMID with Table2 PermID with the latest lastchangedDate or the greatest table2ID for the same controlID Also update statement should ignore the the rows i ...Show All

  • Visual Basic Create folder with WMI

    Hi I need some help with creating a folder on a computer on the network using WMI. // Lasse if you have access to the network share and have priviledges (as WMI also would need priviledges to do this), you could create a folder from within .NET: System.IO.Directory.Create(" \\fileserver\sharename\new folder name ") do you require WMI ...Show All

  • Visual C++ Function name conflict with ENUM name

    Suppose I have a ENUM T_MuxPos_type, where T_MuxPos_type{fixed;flexible;}. While I am coding, I have T_MuxPos_type Mux_pos. When Mux_pos = fixed, I have no problem with gcc but a compilation error with mvs2005: c:\mvs2005\bs_module\source\config.cpp(1925) : error C2872: 'fixed' : ambiguous symbol could be 'c:\panliu_bs\mvs2005\bs_module\source\declareenum.hpp(43) : T_MuxPos_type_E fixed' or 'c:\program files\microsoft visual studio 8\vc\include\ios(183) : std::ios_base &std::fixed(std::ios_base &)' If I solved this problem by Mux_pos = T_MuxPos_type::fixed, gcc compiler will complain about it. So what is the classic method to get rid of this ambigurity I seems to me I should use namespace to solve it, but I don't n ...Show All

  • Commerce Server CommerceProfileSystemException: Failed to initialize profile service handle

    Hi, We are working so thad whe have an integration server on with Commerce Server and SQL Server are running. Each developer has now local his own Commverce Server and connects to the database on the integration server. Everything was running fine till last week and now we get a rely strange error. If i start the Website on the server itself it loads and works correctly but if I start the local website on a developers PC I get the error that it Failed to initialize profile service handle. Its so strange then the code of the website is at the momment exactly the same as on the Developer's PC and i get the error way before it really goes into the code. What could here be the Problem It was really working fine last week even the Prof ...Show All

©2008 Software Development Network