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

Software Development Network >> Juan Castillo's Q&A profile

Juan Castillo

Member List

Chrisull
Ackamajack
DodgingRain
modtran
fshrago
Fairfield
R.S.N
Christopher61
Gengis
Smileenergy
freeflyr
Jessica Alba
Ben S
Ganeshkumar S
loonysan
Epoch
singapore
rgerrit
Mr Jason Smith
pukla
Only Title

Juan Castillo's Q&A profile

  • Visual FoxPro Random Sample

    I have a table containing 3773 records, and i need a random sample of 2500 of these records. Does is there any easy way to to this w/ foxpro or do i have to come up w/ an algorithm myself Thanks in advance, Mike   cetinBasoz wrote: rand(-1) select top 2500 rand() as randomVal, * from myTable order by 1 into cursor random2500 If I execute your (cetinBasoz) statement I get randomVal in fractions, But if I change rand () as randomVal to Int(nRec * Rand ())+1 as randomVal (by Tamar E.Granor) it gives me the required result He used _Tally which gets update if table process command is executed, so I used recount() Credited goes to u two for your simplicity and for his accuracy ...Show All

  • Visual C# problem with SortedList

    Good Afternoon- I'm having a problem using a SortedList to store objects. Here's the example code: public override SortedList derivitives() { SortedList s = new SortedList(); s.Add(xyz,dxdydz); s.Add(uvw,dudvdw); return s; } The code fails during the second Add, with the following error: Unhandles Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object. in System.Collections.SortedList:PutImpl in System.Collections.SortedList.Add in System.Collections.MyClass.derivitives() ... I tried an example code with SortedList and I can Add() as many strings as I want, is there a problem with SortedList holding abstract objects they are all of the same type... thanks, Philski ...Show All

  • Visual C# System.Collections.Generic.List

    Hi, I have a web method that that retrieves an 'Type[]' array. Next, it create a List<MyType> and then loops through the array and copy a data from it into List<MyType>. Here is example; [Webmethod] public MyType[] SomeWebmethod(Paratmers someParameters) { Type[] typeArray = retrieveData(someParameters); List<MyType> mytypeList = new List<MyType>(); for (int i = 0; i < typeArray.Length; i++) { MyType mytype = new MyType(); // copy data into mytype converting data to MyType mytypeList.Add(mytype); } return mytypeList.ToArray(); } I read up on public List<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter) and thought that I could perhaps use it. But I have an issue with ...Show All

  • Visual Studio Express Editions File systems for GUI

    Hi! I am trying to design a GUI using VC++ .NET in visual studio express edition . The basic functionality is in place.I have a Datagridview where the user can enter some text. The question is now how can implement the complete file system like the saving the file, making a new file and other stuff that we know from the traditional windows based application I have absolutely no idea how to start...any input will be welcome. Cheers! hello Both win32 APIs and .NET Framework SDK provides file I/O support, you can search this in MSDN for more information. thanks rico ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Responding To Graphics Device Events

    Trying to figure out where <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1212399&SiteID=1">my problem</a> lies with recreating/resetting the graphics device and the weird effects, I began to wonder if I had tied into the proper event handlers. So I was wondering if someone could tell me if this is the correct way to set up event handlers for a custom game component:                 graphicsDeviceService.DeviceCreated += new EventHandler(loadAllContent);                 graphicsDeviceService.DeviceDisposing += new EventHandler(unloadAllContent);   &n ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. The Content Pipeline and my Scene Graph

    I implemented a scene graph. Items in the graph are of type Entity. StaticVisual, a subclass of Entity, takes a Model as a constructor parameter. Using the content pipeline and contentManager.Load<Model>("assetName") things seem to be working smoothly. Now, I want to extend the content pipeline to have complete scenes be content. I'm not sure how to do this without writing a ton of redundant and error prone code... My idea is to write a Model Processor and look at the node's names in order to decide which types of Entities to instantiate. I'd modify my StaticVisual class to take a ModelMesh (or a ModelMeshPart ) as a parameter and in theory I could construct a whole scene graph. I'd like to write single generic pai ...Show All

  • Software Development for Windows Vista how to skip frame for compressed viedo

    hello friends, i created a source filter to play compressed viedo in windows media player, since it's compressed, i need to skip frame in order to show the frames corresponding to the position of windows media player scroll bar. my question is : how can i get current position of windows media player scroll bar especially when i am only developing a source filter, Hi, Is it sufficient to support IMediaSeeking on Source filter only or is it also required to implement some pass through functions on the transform filters as said on http://msdn2.microsoft.com/en-us/library/aa919887.aspx under "when to Implement" section Regards, ...Show All

  • SQL Server Credentials used to run this report are not stored

    Hi all, When I create a new report subscription in report manager, I got this error Credentials used to run this report are not stored any idea Thanks, Jone Can you go to report properties -> Data Sources and make sure that "Connect Using Credentials stored securely in the report server" is selected and valid user name and password provided Thanks, Sharmila ...Show All

  • Visual Studio Express Editions Saving over an existing bitmap

    Is there a standardized or generally accepted method of saving changes to an image I have a simple image editor written in VB 2005 Express. Nothing fancy - just prepares images for my blog. The problem is that I've not found a way to save over the original image. The documentation tells me that this is not allowed. This seems peculiar since making changes to an image is the whole point of having an image editor. I'm sure that I'm missing something obvious, so someone please help a newbie out with how to get this done, with my thanks. AB As a buddy of mine says, "different horses for different courses". If you need to keep the original for an undo then definately, your method works b ...Show All

  • Visual Studio Express Editions Embedded fonts doesn't work in printing controls ?

    Hi, i'm writing a .Net application for printing barcodes to my climbing club. For simplicity reasons, i've embedded my barcode font as a ressource file. When loading my font as a private font i am able to use it in labels, textboxes, etc... but not in printing controls, like printpreviewdialog Could you please help me Here is my code for loading my font : Imports System Dim MyEmbdFonts() As String = {"code25I.ttf"} Dim FntFC As Drawing.Text.PrivateFontCollection = GetFont(MyEmbdFonts) Public CBFont As New Font(FntFC.Families(0), 42) Public CFont As New Font("Arial", 10) Private Declare Auto Function AddFontMemResourceEx Lib "Gdi32.dll" _ (ByVal pbFont As IntPtr, ByVal cbFont As Integer, _ ByVal pdv As Integ ...Show All

  • Windows Forms Sorted DataGridView when OleDbDataReader is used in C#

    I'm using this code to populate a grid, but once filled if I click on the columns heading it doesn't sort even if I enabled the reordering column feature. Why is that and how can I sort my columns please. thanks OleDbDataReader OleDbDr = null ; dbRecordsHolder = new ArrayList (); using ( OleDbConnection Connection = new OleDbConnection (connectionString)) { OleDbCommand Command = Connection.CreateCommand(); Connection.Open(); Command.CommandText = "SELECT * FROM CLIENTS " ; try { OleDbDr = Command.ExecuteReader(); if (OleDbDr.HasRows) { foreach ( DbDataRecord rec in OleDbDr) { dbRecordsHolder.Add(rec); } } } finally { OleDbDr.Close(); Con ...Show All

  • Silverlight (formerly WPF/E) ActiveX model for WPF/E

    It would be nice to have an ActiveX model for the WPF/E. In this case, native developers would be able to use the power of XAML/WPF without relying on any kind of web browsers (and of course .Net Framework). Hi Bijan: WPF/E is implemented as an ActiveX control that can be used within browsers on Windows. (IE and FireFox). It does not have any dependencies on the .NET Framework or the .NET Redistributable -- it is purely standalone, which is why it also works on the MAC. May I ask what use-case you have in mind for it when you do not want to use it within a browser Are you thinking of using the control in standalone executibles Laurence ...Show All

  • Visual Studio 2008 (Pre-release) Force-rendering one control(tree)?

    Is it possible to force-render just one control(tree) What I want is to update a statusbar while doing a heavy operation. The problem is that the operation consists of both WCF calls and UI creation. I have read http://forums.microsoft.com/msdn/showpost.aspx postid=568010&SiteID=1 but the suggestions doesn’t fit my needs. Because if I start a new thread the UI part of my operation is also rendered witch slows down the process significantly. Best regards,   Thomas Andersen Random suggestions which might not apply: Draw your status bar in a new thread and a new Window - I believe that we'll be able to render that UI independently. Build your new heavy UI but don't connect it to the tre ...Show All

  • Windows Forms DataSet question

    could someone point me in the right direction as to editing a row in a dataset Thanks in advance. well you can do this: this.theDataSet.Tables[ index ].Rows[ index][column] = " newValue " is this what you maybe after you simply get the table, row and column you want to edit and set the newvalue to it, making sure the datatype is correct otherwise there maybe an error thrown if its the incorrect data type given ...Show All

  • Visual Studio Express Editions Problem of installing Visual Web Developer 2005

    I tried to install Visual Web Developer 2005 Express Edition and twice I receive this same error. I also tried to re-download it and install again but still got this same error mesg. What's wrong Thanks. The screen shot is in www.mystorey.com/error.gif Recently, I have stop some services for better performance. I'm using Window XP Pro. Could it be because of that We can not see much from that screen shot as the errors are still hidden, wat you will need to do is look at the setup logs. You can find these under %temp% and they are prefixed with "dd_". ...Show All

©2008 Software Development Network