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

Software Development Network >> Yasir Imran's Q&A profile

Yasir Imran

Member List

pkv
dragoncells
GS80
DevilDog74
jgsteeler
Will George
mmmmBeeeer
Jakobdo
Manik Gupta
Khurram1139
Bill Baker
Zachovich
arro239
David S. Anderson
ropley
MatrixResolver
RobertMC70
search and deploy
JimMcCaw
Vitalijus
Only Title

Yasir Imran's Q&A profile

  • Visual Studio 2008 (Pre-release) WCF references in VB

    I am using WCF with a VB app where I have a main executable, Main, and several dll's, including WCFdll. I find that I need a service reference in Main and in WCFdll. The service is controlled by the app.config in main but the WCFdll reference is required to compile the dll. Is this correct Is there a way to just have one service reference, maybe by using namespaces Thanks John If you want to call the service from BOTH Main.exe and WCF.dll, you'll need a proxy in both. A better way to acheive this is to create a DLL that you share between both code base, that contains the proxy: serviceproxyandtypes.dll. An even better design would be that only the WCF.dll is responsible for calls out t ...Show All

  • Visual C# how to write a function to read string (or byte)from right side

    help me please... boban.s wrote: If you mean on just Reverse characters in the string: public static string ReverseStringCharacters(string input) { StringBuilder sb = new StringBuilder(input.Length); foreach (char c in input) sb.Insert(0, c); return sb.ToString(); } yes this is good but I want to reverse blocks of the string ... or bytes in better way for example ... 1234 5678 0000 1111 ==>1111 0000 5678 1234 ...Show All

  • Visual C# Timer Precision

    Hi, I am implementing an app that needs to send out data at 20ms intervals. I have tried 2 timers, System.Timers.Timer and System.Windows.Forms.Timer. Neither seems very steady at that rate. Is the one that is, maybe that is too precise Any suggestions Thanks Jeff Yes, I noticed when I got to 50 - 60ms range it seemed to get a bit better, not totally accurate as time goes though, a bit jumpy. I will check out that article. Jeff ...Show All

  • Visual Basic Edit and continue in server dll

    Hi, My solution has 3 projects: - a windows application (with the forms) - a web service open throught the IIS of my machine - a library (only called by the web service). This dll is included in the web service references and resides in the bin and virtual directories of the web service. The question is that I can't use the edit & continue feature in the library. The breakpoint works well but then I can't modify the code. The next mesage appears in the bottom of the VS: "Cannot currently modify this text in the editor. It is read-only." Any help Pedro Hi, Pedro, That's correct; Edit and Continue won't work with web services. We talked about this a bit during development of E&C, but currently there is no solutio ...Show All

  • Software Development for Windows Vista IPC on Vista

    I have an MFC application working fine on ME/2000/XP. An application has 2 parts: IE plugin and an exe file. An interprocess communication is done using WM_COPYDATA message. Starting to check it on Vista I discovered that this way of IPC doesn't work anymore: my exe doesn't get messages from my plugin. Only when my exe was elevated to a broker, it started (well, kind of) to work. The questions: 1. is SendMessage/PostMessage (specifically, WM_COPYDATA) doesn't work between different processes at all, or only between processes with a different security level 2. What is the best way to replace WM_COPYDATA 3. If it is a named pipe, can a pipe, created by application with a higher security level be accessed by application wit ...Show All

  • Software Development for Windows Vista C++ Express on Vista Beta 2

    hello i have downloaded the new vista version and also the latest C++ express version but when i try to compile some code it says it can't find a file and therefore won't compile. can you explain what i will need to download so i can continue to write code using the vista beta and C++ express. thank you Tubby2877 ...Show All

  • Microsoft ISV Community Center Forums Coordinate of the mouse pointer in chart object client coordinates

    Hello, I am writing the code in order to be able to zoom on chart. It is supposed to change axis scales in order to display only selected area. So the aim is to get new X and Y axes min and max coordinates. But the coordinates don't make sense. I think it is because the chart object client coordinates units are not points. So please do you have any ideas this is the code: Private Sub Chart_MouseDown(ByVal Button As Long, _ ByVal Shift As Long, ByVal X As Long, ByVal Y As Long) If Shift = 2 And Button = 1 Then ActiveChart.Deselect firstX = X firstY = Y End If End Sub Private Sub Chart_MouseUp(ByVal Button As Long, _ ByVal Shift As Long, ByVal X As Long, ByVal Y As Long) If Shift = 2 An ...Show All

  • Visual FoxPro Two Things >>Index<< and >>Help Docs<<

    All, Running Ver 6.0 and need help docs as somehow they are no longer working on my system. Also what I'm looking for is how to link in INDEXes It have two tables: mine.dbf and mine.edb with indexes of mine.ddx and mine.edx First .dbf is contact info, but email resides in the .edb file. Need a join on this, through the idexes to port to new table. All help appreciated! Tbotnik In VFP 6, the Help was installed as part of MSDN. You should have a separate CD that lets you install Help. As for your other question, I strongly recommend that you don't use alternate extensions for tables. Make your changes in the filestem, not the extension. Trying to maintain indexes with an extension other than CDX isn ...Show All

  • Windows Forms Error launching Clickonce app from intranet

    I have an app which is deployed on an intranet site.  When I try to launch the <app>.application file, I get the error below.  BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0    Windows Server 2003 Here is the error:   PLATFORM VERSION INFO  Windows    : 5.1.2600.131072 (Win32NT)  Common Language Runtime  : 2.0.50727.42  System.Deployment.dll   : 2.0.50727.42 (RTM.050727-4200)  mscorwks.dll    : 2.0.50727.42 (RTM.050727-4200)  dfdll.dll    : 2.0.50727.42 (RTM.050727-4200)  dfshim.dll    : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All

  • Visual Studio Accessing IVsTextLayers?

    Hello, I'm trying to support word-wrap and folding/outlining better and with better performance in my vi/vim emulation addin. In order to do this, I'm trying to access the different layers in an IVsTextView directly. I've been successful in getting the 'topmost' layer (IVsTextView -> QI(IVsLayeredTextView) -> GetTopmostLayer() -> IVsTextLayer), but I can find no sensible way to get the next layers. The real need is to get to the layer that comes before word-wrapping, which I'm guessing is the last layer. I'm guessing there is one or more layers that applies the outlining/hidden regions. Accessing this layer, I can quickly map buffer coordinates to non-word-wrapped-but-outlined coordinates. The only thing I've found that return ...Show All

  • Visual C++ 1.#INF00

    When I divide two float values sometimes I get 1.#INF00. Does anyone know what this means, infinity I seem to get it sometimes when subtracting 2 float values, but that makes no sense. Does anyone know a fix. Thank You Yes, that's infinity, more precise positive infinite (or course negative infinite has a - in front). You get infinity when the result of an operation falls outside of the range supported for the specific data type. In the case of float the range is aprox. -3.4E38 .. + 3.4E38. You can try to use double which has a range of aprox. -1.7E308 .. 1.7E308. ...Show All

  • Visual Basic Partitioning drives

    I'm writing a app. that configures a system. i have much of it completed, however, i'm having difficulties partitioning hard drives. I'm able to do it using diskpart as a process and specifying the parameters file. However, i don't want to use external tools/apps. Currently, i'm doing it like so.... Dim prc As Process prc = Process.Start(Environment.GetEnvironmentVariable( "COMSPEC" ), diskpart .... etc" ) Does anyone know of a way to partition a disk using only VB and .Net objects I don't really care if it has to use winapi's or imports on dll's. But i'm trying to avoid using a command processor. Dustin. I pretty much did a shell out of diskpart on the WinPE when I was d ...Show All

  • SQL Server int vs smalldatetime?

    Both are four bytes, are there any reasons to choose an int for a PK over the smalldatetime Thanks, yeah - I know, strange question. I am trying to optimize for space since I have several billion records, and the field is currently a datetime (8 bytes). Since I don't need that precision, I was going to truncate to a smalldatetime / int. A coworker mentioned that an int was "faster", but I couldn't really see why (at most there's 1 more operation to convert the string smalldate into the underlying int representation, but that's hardly something noticeable). ...Show All

  • Visual Studio Team System tf checkin not working while tf add does work??

    Hi, I am working on an MSBuild project and i am having the following problem: i have to add files to the Team System Source Control, so i need to perform the following actions: 1- Add files to Source Control. This step works perfectly: <Exec Command='tf add /recursive /noprompt "D:\BRP\System\Wsdl\Generated\*"' WorkingDirectory="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" /> 2- Check in my files in source control. Does NOT work. <Exec Command='tf checkin /recursive /noprompt /override:"Overriden from MSBUILD" "D:\BRP\System\Wsdl\Generated\*"' WorkingDirectory="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\" /> I get the typi ...Show All

  • SQL Server So frustrated...why does it have to be so difficult

    Why have you made connecting to a sql server express database so difficult I have it working locally, but going to production has been nothing but a nightmare. I can't even connect locally on the production box. I am on a dedicated server and my login is an Admin on the box. I have just installed SQL Express + the fancy management interface. I have made a copy of my database that I was connecting to dynamically (which was failing remotely) and I have attached it to the server.  I have made myself a user of the database and granted my self evey permission available. I have turned on impersonation in my web.config.  The database knows it's me trying to connect and STILL denies me when I'm actually ON the production s ...Show All

©2008 Software Development Network