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

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

JPedroFS

Member List

iamybj
vtortola
Alex Yakushev
johnof
Jop jopper
Juergen Lorenz
PublicError
wakewakeup
boulderbum
Answer_ME
andradrr
thomas_woelfer
JCJCJC
AmitKa
mfetcho
EugeneB
LostCoder
yzhu
anomolous
xltopia
Only Title

JPedroFS's Q&A profile

  • Smart Device Development get current window handle in C#

    Hi i am newbie to the smartphone development. i am now coding program combing C# and unmanaged code win32. C# is my main program and win32 is export as an dll. i need to get the C# current window form handler and pass it to the Pinvoke win32 dll , cos i need to do some paint in win32 programming or load the bmp file or *.nv5 (papago map). My intention is that win32 function can do on the same window form that was created in C#. in C# handle=GetForegroundWindow(); // to get the current window form handle PPG_OpenMap(handle); // pass the window handle to load the papago map [DllImport("ppgsdk.dll", EntryPoint = "PPG_OpenMap")] private static extern void PPG_OpenMap(IntPtr hwnd); when i ru ...Show All

  • Windows Forms load an image from resx

    I need to load an image from the resx that I added manually. I have found that when I add an image (.png) to the resx corresponding to my form, then the designer will remove them if it doesn't use them. I then tried to add my own resx file but don't know how to load from it. My own resx only contains the few images that I need and is not associated with a class. This is C++/CLI. So, if I were to want to use the same images many times through the life of my form, how should I pre-load them and store a reference to them System :: ComponentModel :: ComponentResourceManager ^ resources = ( gcnew System :: ComponentModel :: ComponentResourceManager ( /*something here*/ )); button_OK -> BackgroundImage = ( cli :: saf ...Show All

  • Visual Basic Using the built in SQL Database

    I'm using the built in SQL Database in VS.NET. I am currently writing a paper in VB and I have a quick question about the SQL Database. I have made a Player_ID field and I was wanting to make it the primary key, but what I want to do is whenever a new player is added, I want it to automatically increment the Player_ID like you can in Access. How would I do this I have tried the UniqueIdentifier type but it doesn't work. What am I doing wrong you need to set the "Identity" field to yes and you don't need to use a uniqueIdentifier field type, you can use an integer. Also be sure that the Identity Increment is set to 1. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How can I directly stop drawing a pixel?

    Maybe it's a very essential question but... Which is the statement in the pixel shader to stop drawing a pixel Stopping it that way would have any negative effect Thanks Thanks very much to all of you. And thedo... be sure that i'll take a look and try your examples in a future, but now i'm starting some exams and don't know when i'll be able to give that a nice look. I'll notice you ^^ ...Show All

  • Visual Basic Page_Load called twice.

    Hi, Does anyone know why a Page_Load would be called twice on a page when requesting an aspx page I am using .Net 2.0 with the new .net 1.1 compilation model installed. Whenever I request a page, the Page_Load on the aspx page appears to be called twice, so does the Page_Load on and user controls added to that page. I had a similar problem with Page_Load firing twice. Fixed it by correcting the empty ImageURL for the (asp:Image) Tag to a known value. .. ...Show All

  • Software Development for Windows Vista how to initialize parameters of a custom activity through XAML file

    Hi, I have a custom activity which has two dependency properties like this: public static DependencyProperty NameToPrintProperty = DependencyProperty .Register( "NameToPrint" , typeof (System. String ), typeof ( CustomActivity1 )); [ DescriptionAttribute ( "String to be passed to the custom activity1" )] [ DesignerSerializationVisibilityAttribute ( DesignerSerializationVisibility .Visible)] [ BrowsableAttribute ( true )] public string NameToPrint { get { return (( String )( base .GetValue( CustomActivity1 .NameToPrintProperty))); } set { base .SetValue( CustomActivity1 .NameToPrintProperty, value ); } } public static DependencyProperty HashTabl ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is it realistic to create one's own engine?

    I'm not new to programming, but I'm new to game programming and C#. I'm wondering to what extent it's realistic for someone to make their own 3D (or for that matter 2D) game engine. The two projects I have in mind for myself are a turn-based 2D war/strategy game, and a 3D adventure game in the manner of "Dreamfall". On the 2D side, I feel confident I could come up with a 2D interface on my own. I haven't done a lot here yet, but I did manage to whip up a little 2D hockey game without peeking at Bill Reiss's excellent 3D airhockey tutorial at http://xna101.spaces.live.com/ . I've even given my computer hockey opponent a very primitive AI. OK, my collision detection and physics aren't great, but I'm not sure how much I'll need either of ...Show All

  • Visual C++ Runtime Error R6034

    Hi, I have a problem when i try installing a tax software that i bought. I install it and when i am about to run it I get this error "R6034". I am not very familiar with what this error means i tryied googling it but i don't understand the responces. Furthermore, i used previosu versions of this tax software 05 and 04, but this 06 version is a bit different, when i open the program files folder. Microsoft.VC80.CRT and Microsoft.VC80.MFC, these are the two folders that are in the UFILe folder itself. The previous versions dont have these folders. I tried formating my computer because i thought that some files migth be corrupt, i also uninstalled and installed the software couple of times but with no luck. If anyone could pl ...Show All

  • .NET Development AccessViolationException with C# Ping class

    I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All

  • Visual Studio Passing values of variables from VB to Crystal Report Field

    I have created a report that would output records for a specified period...i have two variables namely XSTARTDATE and XENDDATE... In my report, I have a textbox that should contain the date that is 1 day before my XSTARTDATE... how can I assign in to that specific textbox in my report using VB 2005 thanks for your help..the date really worked...I'm using VB 2005...I'm still trying to work on the parameter part coz i have no choice but to use the crystal report 8 coz itz the only licensed crystal report we have here so far...If ever you get some ideas on it, I would really appreciate another post from you...Thank you so much... ...Show All

  • .NET Development StDev returns NaN

    Hi Everyone: When using the code to calculate the StDev of a data column, it returns NaN. But all other aggregate functions, like Sum, Count, Min or Max return a number on the same data column. It seems this function has a limit on the maximum number of rows it can hundle. The number of rows in the column is 46712; if I reduce the row number to 46064, it works. DataTable.Compute("StDev(DataColumnName)", "") Does anyone has this problem before Does anyone know under what condition, this function returns a NaN Thanks. As I said in my earlier post, it has nothing to do with the number of rows. If you change Rows.Add(i * 1.0) to Rows.Add(1.0), you won't get NaN. This is NOT ...Show All

  • SQL Server Misnumbered pages in PDF Export

    I have a customer who periodically is getting misnumbered pages in their PDF export. For example, if a report contains 2 pages, there may be 4 pages total, and the footer where I display the number of pages is incorrect. It looks like this: Page 1 of 2 Page 2 of 2 Page 3 of 2 Page 4 of 2 There are blank pages thrown between the pages that contain content. At first I thought it was the tables spilling over to create vertical content, but that is not the case. It does not happen with every report, and this report appears to be well within the page margins. ...Show All

  • .NET Development Creating a Web Service from a WSDL

    Hi all, I've been given a selection of WSDLs from my client as guidance to quickly create the Web Services and contained Web Methods from them in Visual Studio 2003 and 2005, all I have are the WSDLs and the original Web Services no longer exist. What would be the quickest solution in this case Thanks! Hi Rodrigo Thanks for the response, however I need to create the actual Web Service and Web Methods from the WSDL and not just a web reference. Hope this helps Bennito ...Show All

  • Visual Studio Team System "Cannot Empty the Clipboard" error message

    I use VisualStudio and the Excel in parallel most of the time, to update the test results in the excel sheet. I am done with the trial version of VisualStudio team suite and installed the full licensed version of the team suite couple of weeks ago. Now I get an error "Cannot empty the clipboard" when I try to copy the data within the cells in the excel spreadsheet, but the data is still copied. When I try to copy the data from visual studio, i get the error "Requested Clipboard Operation did not succeed" and nothing is copied. This is making my work very difficult. The copy and paste functions no longer work and these are fixed when I reboot the system, this is happening more frequently and so i don't consider ...Show All

  • .NET Development Failed to access IIS metabase, VS2005 RC

    I am developing a webservice in Visual Studio RC. I have just got a new pc and my problem is that I am not able to access this webservice. I have created a virtual directory in IIS, but if I try to browse there, I get a "Failed to acces IIS metabase" error message. Does anybody know how I can resolve this problem So annoying... I was trying to fix this on a Windows 2000, I think the Microsoft article did not dot help... C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ga ASPNET and a restart (looks like the utility did not take the command...) Eventually: IIS -> Web Site -> Operators -> Add -> ASPNET -> BINGO ...Show All

©2008 Software Development Network