Software Development Network Logo
  • .NET Development
  • Visual C#
  • Windows Live
  • Windows Forms
  • Visual Studio
  • Visual Basic
  • Microsoft ISV
  • Visual C++
  • Visual J#
  • Windows Vista
  • Smart Device
  • VS Express Editions
  • SQL Server
  • Visual FoxPro
  • Architecture

Software Development Network >> Bharat Gohil's Q&A profile

Bharat Gohil

Member List

Iced Earth
masoftheund
Jufeng
Robert Jackson
QualyLee
feda
apavluck
RobKinney1
AlanJensen
AeQuitaZ
jskim136494
savior1980
SC_Rambo
Biodevuk
Ajay Agrawal
Leemesh
ChrisMentioned
rose 1234
WhyteKnight
NarendraKumar
Only Title

Bharat Gohil's Q&A profile

  • Visual Basic How to create .exe that can accept extra command line parameters?

    I'm learning to create a simple a first-person shooting game. How to make the .exe that can accept parameters Forexample, game.exe -a. Thank you. Start your program from sub main like this: Public Sub Main(byval args() as string) ...Parse command line args here... end Sub ...Show All

  • Visual C# WinServices on Windows Server 2003 and Framework 2.0 Beta

    Are there any known issues deploying windows services to server 2003 with the 2.0 Beta redistributable framework I have win services that deploy great to XP boxes.  They'll install on 2003 but timeout when attempting to start, manual or automatic. Application Event Log: EventType clr20r3, P1 fopqueue.exe, P2 1.0.0.0, P3 43441dd6, P4 system, P5 2.0.0.0, P6 425750b1, P7 3327, P8 84, P9 system.argumentexception, P10 NIL. System Event Log: The XmlFoPDF service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. Any help would be apprciated. Thanks, Brent ...Show All

  • Visual Studio Can you defer property evalation?

    I have a catch-22.  I have a property called "OutputPath" defined in my targets file.  I also have an empty property called VcOtherFlags defined in a target in my targets path that allows folks to add in addtional compiler flags.  Now here is the problem.  If I do this: <PropertyGroup>     <VcOtherFlags>-I$(OutputPath)</VcOtherFlags> </PropertyGroup> <Import Project="..\foo.targets"/> Then in the target buried in foo.targets, VcOtherFlags evaluates to "-I" because the OutputPath is defined in foo.targets.  If I switch the order like so: <Import Project="..\foo.targets"/ ...Show All

  • Visual C# BitConverter

    hello...   First of all, I am not sure if this is the right place to post this... anyway, here's my prob... I am writing a TCP server in C#... and a client in JAVA..... I converted an int in JAVA into byte[4]...(tested it in java, nothing wrong). sent it over to the server.. At the server, convert it back into int from byte[4]....and it becomes 16777216 instead of the original number which is 1..   my question is, is it possible that JAVA and C# has different formatting in the conversion   or is it that my reader or writer of the server and client that has the problem   I do manage to send text correctly over ...Show All

  • Visual J# System.InvalidOperationException Every Time I try a particular Web Reference

    Greetings Fellow J# Developers! I am currently working on a project which requires me to make references to the Autodesk Vault Web API.  This API apparantly at some point passes in an array of INTS or LONGS.  Although I cannot post the code from their end (on account it is closed source), I can post my code that is generating the error (though I don't feel it will be of any help).  I posted this to the Autodesk Vault user group, and this is the reply that I got: Reply From: Doug Redmond \(Autodesk\) Date: Jul/25/05 - 12:27 (GMT)     Re: GetLatestFileAssociationsByMasterIds can not be reflected ...Show All

  • Visual Studio IvsMonitorSelection.GetCurrentSelection returns Interface not registered

    Hello, My package is using IvsMonitorSelection.GetCurrentSelection.  In some cases, the call to IvsMonitorSelection.GetCurrentSelection returns the following: Interface not registered (Exception from HRESULT 0x80040155) In other places in my code, this works without a problem but it consistently fails in one particular place.  I don't understand how there can be a difference.  Can anyone shed any light on why IvsMonitorSelection.GetCurrentSelection might return such an error Thanks, Notre Hi Notre,   You can use Global interface table APIs in managed code to get the same behavio ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Linker Error when compiling

    I am programming a FPS and up until recently there have been no errors with linking. However, now, as if out of the blue, I am receiving the following error: Here is what I found by google-ing your link error... Maybe this could help...make also sure that your lib all come from the same SDK And that the sample you try to compile is the same SDK... http://www.allaboutsymbian.com/archive/t-3195.html ====== Hi There I had the same problem but I think I managed to overcome it :)... (This is the same solution as Neeraj suggested) As ycombres rightly mentioned... if you set the configuration to Release it works fine. But if you ...Show All

  • Smart Device Development Reading XML ISO-8859-1 is not supported?

    how to read xml with ISO-8859-1 it always throw error ISO-8859-1 is not supported. i need to build application in smart device that can read RSS xml, but most of RSS out there is ISO-885901. any idea how to trick this problem thank you. You can use some supported encoding, but characters out of ASCII range might be mangled. You might be able to implement 8859-1 Encoding class as well and use it like this: http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_frm/thread/2dde891b73183dd2/ab891a460ded8897 q=ISO+8859&rnum=2#ab891a460ded8897 ...Show All

  • Visual C++ How to create a control with a gradient background

    I would have figured that this sort of capability would be part of the standard VS 2005 controls, especially considering the extent to which MS uses gradients in their own apps for button backgrounds and such...it is not too much to ask, is it anyway... Since the standard controls in VS 2005 do not seem to support gradient backgrounds I have made a custom GradientButton class derived from the Button class. I'd like it to have a gradient background. How do I do this without redrawing the entire control I referenced a C# example on how to do this and the code showed an overridden OnPaint method that used the event argument's graphics object ...Show All

  • Visual C# Unique item in List<>

    Hi, I need to find all unique items in a collection, please see code below //==Code copied from Using Predicate example from a post by the compilator class Person { string name; int age; } List<Person> list = new List<Person>(); list.Add( new Person("Chris", "30")); list.Add( new Person("Jimmy", "25")); Person chris = list.Find("Chris"); What i would like to do is find all the people with a unique age. How can i do this.. Do i need to do a binary search or use ItemComparer. What i would ike to do is minimise the time spent iterating through the collection as ...Show All

  • SQL Server Installing the samples after an install

    Hi, I stupidly did not install the samples for 2005 when I installed the dev edition on my machines. Now I would like to. Unfortunately, I can't seem to find a way to do it. The installation process always says I have the documentation installed (I have books online installed). It appears that there is no way to install the samples if you have installed the documentation and workstation items. Is there somewhere I can download the samples Thanks for any help. ]Monty[ The sample databases and samples can also be downloaded from this site: http://msdn.microsoft.com/sql/downloads/samples/ Regards, ...Show All

  • Visual Studio Login Problem

    The report you requested requires further information. archive Server name: Archive Database name: Phoenix User name:  Password: [checkbox] Use Integrated Security: After much head banging and not a peep from BusinessSolutions (BS! Nice acronym! It's fitting ) I solved my problem. This works for my companies INTRANET, your mileage may vary. I ended up creating a FILE DSN on the web server in the reports folder. You create by opening up notepad and inserting this: [ODBC] DRIVER=SQL Server UID=your server login name PWD=your server password DATABASE=the database name SERVER=your SQL Server Name save it as [whatever ...Show All

  • .NET Development WebRequest.Create in a hosted control is extremely slow

    Hello all, Context> I'm currently working on a small web application that has a Windows Forms user control embedded in a web page. I use .NET Framework v1.1. The user control performs multiple file uploads. Problem> I wrote the upload code using HttpWebRequest (since WebClient doesn't allow developers to use cookies). When I call WebRequest.Create(url), the first call on this method takes a large amount of time to complete (> 30s). Subsequent calls run normally, they are very fast. Details> The user control runs with a custom set of permissions, according to its functionality, and I also tested the control in ...Show All

  • Visual C# How do I create a simple table in C#

    Hey, Iam designing a inventory software, and I need to make a table that shows the item number, description and price of each item. Iam not using any databases, just want to store all the info in 1 file. Whats the best way I can do this in C# First of all, thanks to everyone that his helping me, its been really helpful from all the information you guys have shared. And secondly, this XML thing as really taken care of my inventory problem. Now another part of this business project that Iam doing is the Invoicing part. I designed a simple form with a datagrid, but this time I want to make the datag ...Show All

  • Windows Forms NumericUpDown doesn't call OnBackColorChanged or OnForeColorChanged

    For some unknown reason, NumericUpDown does not raise OnBackColorChanged or OnForeColorChanged events ...Show All

©2008 Software Development Network