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

Software Development Network >> fathi S. Elashery's Q&A profile

fathi S. Elashery

Member List

massod
Toby Broom
John Knoop
george_v
nonno
Wout
simonii
crystalamber
Dilip M
Balambikai N P
krackedude
nbrege
vivekvishist
mammoo
Benoit Confait
Robert M
sdoc
JothiMurugan
Joseph Ollero
OmegaMan
Only Title

fathi S. Elashery's Q&A profile

  • Visual Studio Express Editions Reading, Converting, Writing a Hex file?

    I am learning C# in Visual Studio Express. I am trying to re-create a program like I had in VB6 (which was originally from QBasic). What it does is ask the user for a filename (I have this part figured out and it works), opens the filename and reads it into memory strings: The file consists of hex data, So I would guess that means using the BinaryReader But I can't read the data into a string defined field in C#. How can I do this example VB6 code:    Open fi For Binary As myfile   'read entire file into buffer    buf1 = Input(109120, #myfile)    buf2 = Input(4, #myfile)    buf3 = Input(97000, #myfile)    Do Until EOF(myfile)     b = Input(1, #myfile)  &nb ...Show All

  • Visual Studio Team System In VSTS, how to modify the version of the reference in webproject by asp.net2.0 designed

    1- From the Start menu, choose All Programs a Microsoft Visual Studio 2005 a Microsoft Visual Studio 2005 2- From within Visual Studio, choose File a Open a WebProject … . Then Open a webproject in VSTS. 3- Right click on the project, and choose P roperty Page, display the property windows 4-Choose Reference, I find that some versions of references are auto-update. 5-If the versions of reference is auto-update, In my project,the reference dll will has a refresh file. In my vsts, the refresh file is checking but my reference dll is not checkin 6-The other workmember will not find the reference dll ifrom our vsts Why How can I do Who can help me How can I modify the version of th ...Show All

  • Visual Studio 2008 (Pre-release) Bind to current object (this)

    Hi, Is there a syntax available to bind to the current object Something like: <Label Text="{Binding Name, RelativeSource={x:Static RelativeSource.Self}"/> I want to display the contents of the Name property in the current object (ie. the class in which this code resides). In other words, I want to avoid setting DataContext = this in my constructor. Thanks, Kent A couple of options: If the current object (I assume you mean the root) is a Window , since there is only one Window in the tree of elements, you can use the RelativeSource/FindAncestor mode. <TextBlock Text="{Binding Path=Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}} ...Show All

  • Visual C# Using SerialPort with USB and removing USB cable while port is open

    If I open a com port and then remove the USB cable from PC before closing the com port then there is now way I can dispose the com port after that. Not even Environment.Exit(o) works, i.e. I can not exit my program properly. The following code describes the problem: SerialPort port = new SerialPort("COM94"); port.Open(); int n=0; while (n < 10) { n++; Thread.Sleep(1000); } // (Remove USB cable before the while loop has finished) port.Close(); // <-- won't work port.Dispose(); // <-- neither will this Environment.Exit(0); // < ---and not even this one will work How can I work around this Btw the same scenario will appear if the USB device crash You c ...Show All

  • Microsoft ISV Community Center Forums File Protection from Users

    Hello All, (I posted this in the Excel Forum yesterday and did not get any answers, hopefully someone here can help me) I would like to develop a VBA whereby users are only able to access the Excel file if they run the VBA code. Is there any way of doing this. I can stop users (via code): Closing Userforms etc. Deleting/Adding rows and columns Disable the menu Another thing I thought was to protect the Workbook and only unprotect it via VBA code. If the user choses "Disable Macros" at the security prompt, then they will have full access to the data. Is there a way to stop this. Another thought was to process the file without id being open ie set a reference to it from another another Excel VBA module (This will proba ...Show All

  • Visual C++ resizing a control

    I'm using VC++ native code and a dialog box. How do I resize a control when the dialog box resizes I keep getting a runtime error with an assert ::iswindow failing. Any suggestions ! CRect rect; this ->GetWindowRect(rect); GetDlgItem(IDC_CHART_CONTROL)->MoveWindow(rect); The first WM_SIZE message received by your dialog will be received BEFORE the controls are created, which would trigger that assert on creation. I would work around that like this: CWnd *ctrl = GetDlgItem(IDC_CHART_CONTROL); if (::IsWindow(ctrl->GetSafeHWnd())) { ctrl->MoveWindow(rect); } ...Show All

  • SQL Server Deployment of analysis services on windows 2003(Very urgent Please)

    I have window 2000 as my development machine. I am using visual studio 2003 and sql server 2000. I was able to develop a web application which uses the pivot table componant. Every thing was working fine with out any problem. I deployed my Project to windows 2003. I am able to see the pivot table control. I am not able to get any data into my pivot table. I am not sure what is going wrong. Is there anything I need to take care in windows 2003 specifically. I don't have microsoft office on windows 2003. Does it make a difference Please help!!! Anil If you are using MSOWC for your pivot table component and if yout new server do not have riyhrt MSOWC installled or Office instaled,then you will not be able ...Show All

  • Smart Device Development Communicating with a CE device from a Desktop

    Hello All, Use wrapper classes created by OpenNETCF.org called as The Desktop.Communication Library which contains classes used for communicating with a CE device from a PC such as Microsoft's Remote API (RAPI). It can be fount this wrapper library here Also read this for step-by-step implementation procedure ...Show All

  • SQL Server ODBC Data Source

    I'm trying to import tables from COBOL thru Relativity client. With SQL Server 2000, I used Other (ODBC Data Source) to do this. I cannot find a comparible data source in SQL Server 2005. What do I do Thanks, The Import wizard is not supported in SQL Express so this isn't the best place to get information about it. I'm going to move this thread into a forum where the folks who should be able to answer this question hang out. Mike ...Show All

  • Visual Basic open a form with only systray icon

    Hello, how do i open a form so the form does not show and only an icon appears in systray I know how to make the icon but everytime I do this the form appears. I want to make the form only appear when I right click on the icon and say "appear". Thanks! Right, my apologies. What I am wanting to do.. 1. Application executes and user clicks on a button that launches a new form. First form dissapears. 2. Form 2 does not appear and only an icon in systray appears. Nothing shows in the taskbar. 3. Upon rightclicking on icon contextmenu appears. user selects "show". 4. form appears and Icon is still available in systray. This all works properly for me however upon initially executing the secon ...Show All

  • Audio and Video Development iHD Simulators/Emulators

    Right now I am using the MSFTs iHDSim. It works ok, but has limitations as has been discussed around here. So what are the other options now and in the near future Is MSFT planning on a beefed up release of iHDSim I found the following list posted elsewhere. Is this it for now I work in a remote office and do not have access to my team's Sonic suite. I don't do any video/audio encoding, I just need to test my markup and functionality. CyberLink PowerDVD/HD DVD CyberLink www.cyberlink.com PowerDVD will initially be offered only as an OEM product, bundled with next-gen DVD drives. Later in 2006, it will become available as a standalone product. WinDVD HD DVD InterVideo www.intervideo.com WinDVD HD ...Show All

  • Visual Studio 2008 (Pre-release) Reliable Messaging and custom transports

    Hey, first i got to ask if anyone happens to know of some sort of step-by-step tutorial for implementing reliable messaging Then on to my question... I'm doing some request/reply-communication over mail, and want to add some reliable messaging. The plan is that the client sends a mail to the server, with the message supposed to be sent AND the CreateSequence piggybacked on it. The server then replies with another message piggybacking both the CreateSequenceResponse and SequenceAcknowledgement. Finally the client sends an TerminateSequence over mail to the server. (This should work, right ) The big problem is that when my Proxy calls Channel.Request(), the message I get is a CreateSequence instead of the message i sent over Proxy.Request() ...Show All

  • Visual Studio getProjectTemplate - Sporadically getting FileNotFound exception.

    Hi. I'm writing an Item Template that needs to create a new project in the solution when items are added to an existing project. I'm using a CustomWizard which calls upon DTE functionality to try to accomplish this task. The problem is that sporadically, I'm getting a FileNotFound exception when calling the GetProjectTemplate method. The .zip file is there and working on its own. The wizard has worked on some occasions and not in others without any changes to the code. What I've observed is that the exception seems to occur when starting Visual Studio from scratch and trying to add the item to the solution before anything else. Specifically, the wizard seems to stop throwing the exception once the "Add->New Project To Solu ...Show All

  • Visual Studio Team System VS 2005 Code Analysis on Web Project Get Error Code 65 ? HELP

    Hi. I have apply the Code Analysis in My Web Project. but I got a Error 14 FxCopCmd.exe returned error code 65. Did some one know what's up for this please advice. thanks Hi Jeffrey, I've also come across this error message recently, except there was nothing wrong with my directory accessibility.  In my case the issue appears to be linked with namespace length, i.e. if I shorten the namespace associated with my component then I do not get the error message. Is this a known issue   Is there a work around   Our namespaces are defined as company standard so it's going to be rather difficult for me to shorten this problem one :( Thanks, Sara [EDIT] Hmm, just answered my own qu ...Show All

  • SQL Server Shocked to see that the records are deleted in the SQL table

    Hello, Can any one tell me ..is there any restriction on the total number of records that can be added to a table ( SQL Server 2005) .Because .. i added 100 records to a table through my program..but i was able to c ..only the last 20 records which is being inserted..can any one tellme any way to increase the total number of records.. pls..help me..solution is required immediately......... Regards, Sweety Hi, Their is not a restriction, their may be somthing you are missing or if their is a access to other users they might have delete records, unless it won't be deleted automatically. Can you explain the steps you perform Hemantgiri S. Goswami ...Show All

©2008 Software Development Network