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

Software Development Network >> Hamed JI's Q&A profile

Hamed JI

Member List

Shaan007
Prashant_Rai
rxg
lezi
TABLO
nwonline
Abbasi
bluejay_2006
Larry_t
stallion_alpa
Ben-TSK
ubergeek2
montechristo
Tor-man
InvalidSynTax
SP534
ratslav
VOC
Xelestial
Juergen Lorenz
Only Title

Hamed JI's Q&A profile

  • Visual Studio Tools for Office Doubt regarding Logon method of "mapi" namespace.

    Dear all, I have the following code: CApplication m_app; COleException e; if ( m_app.CreateDispatch("Outlook.Application", &e ) == TRUE ) { m_mapiNameSpace.AttachDispatch ( m_app.GetNamespace("MAPI") ); return PIM_OPERATION_SUCCESSFUL ; } else return; // Create a variant containing NULL COleVariant varEmpty ((long)DISP_E_PARAMNOTFOUND, VT_ERROR); // Create a variant with profile username COleVariant varUsername("user", varShowDlg((long)0); // create a variant with password COleVariant varPassword ("userpasswd" ); // Logon to the user profile m_mapiNameSpace.Logon(varUsername,varPassword, varShowDlg, varEmpty); It will display the message box (with OK and ...Show All

  • SQL Server Filtering by date on a chart

    Hi all, I have a datasource with three columns. NAME / DATE / COST The dates run from January 2005 to March 2007. They appear in the following format in the query window: 03/01/2005 00:00:00 All I want to do is put the dataset in to a graph and filter the date so it only shows any cost from January 2006 onwards. What ever date I type in the filter I get the following error "Cannot compare date of types System.Datetime and System.String" Anyone know what I am doing wrong or how to solve the problem Cheers, Rob. It's complaining that you're comparing a date to a string, so conver the string to date. For your expression, try =CDate("1/1/2006"). ...Show All

  • .NET Development xml file load problem

    Hello, I am working on a project where I have to read a xml file. I used the following code: string abc = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "CountryState.xml"); System.Xml.XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(abc); XmlNodeReader reader = new XmlNodeReader(xmlDoc); but got the error "Could not find file 'C:\Programming\WS\Soln\CountryState.xml'." where "C:\Programming\WS\Soln" is the solution file directory (which contains five project), not the project directory. you see I used 'System.IO.Directory.GetCurrentDirectory()' to get the current directory and it is not return me current directory path. By the way this is class library project. Please help me. ...Show All

  • Smart Device Development An established connection was aborted by the software in your host machine

    Hi, I am using sockets to communicate with a Java Server. I get a list of sponsors as text so I used sockets instead of tcpClient. I use this function to send a request and receivve the response but the problem i guess is the buffer size I want something that would read till it finds "\n" public void SendRequest( string req) { lineToBeSent = req; socket.Send(encoding.GetBytes(lineToBeSent)); byte [] Serbyte = new byte [5000]; socket.Receive(Serbyte, 0, 5000, System.Net.Sockets. SocketFlags .None); IT BLOCKS HERE response = encoding.GetString(Serbyte, 0, 5000); } If you want to read text until you reach a newline I would recomend just creating a NetworkSt ...Show All

  • Visual Studio The expression cannot be evaluated while in design mode

    I have only one window open and it is a vb document. I never use design mode for anything (with exception to SOME windows GUI interfaces... but none in this project). IF I am not in design mode... and ONLY use text editors... how can I get this message: The expression cannot be evaluated while in design mode. Is this a MSFT BUG or is there a way to be in design mode without actually using the designer, attempting to engage it, or actually using anything non-text to write a program Thank you for the "SANE" response. Yes, this took place in the immediate window. I can usually instantiate class libraries from the immediate window without clicking the play button (or entering debugger). Does this mean that perhaps I ma ...Show All

  • Software Development for Windows Vista Vista and Symantec Ghost 8.x

    Ever since build 5231, I've found myself unable to use Ghost (8.0 or 8.2) "as I've always been able to".  By which I mean with 5219, XP, 2000, etc., I can just create a partition backup, restore a partition backup, no muss, no fuss, all successful. (I have an XP-compatible boot manager, have four independant partitions that are always hidden from one another, and I restore just one partition based on what OS/test/scenario I need to create.) Now with 5231 and later, creating a Ghost image of a partition always results in the "unable to access \windows\winload.exe" (or whatever that exact full-screen message from the Vista boot manager is).  Regardless of whether I'm restoring back to exactly the same partition as I backed up ...Show All

  • Software Development for Windows Vista How to call webservices in a workflow in an asynchronous way

    Hi, I am doing R&D on the features of Windows Workflow Foundation which we are going to apply for our project after release of WWF. we are using SOA Architecture. So I need to call services based on the rules. I have succeded in doing them practically using Sequential and State Machine Workflow. So, now I want to achieve Asynchronous way of calling webservices. I don't know whether this can be possible with WWF or not. If it is possible, can any body please help me in doing this. Thanks in advance. This looks like you are on the right track. I'm not sure why you can't see the interface as you have it declared correctly as far as I can tell. I've posted a simple example out for you to look at. Let me know if this helps. ...Show All

  • Visual Studio Express Editions nested subs

    Is it possible to nest subs in VB ...How By default it's giving an error... Thanks Presumably, you want to encapsulate functionality. What you can have is nested classes: this allows you to wrapper your complete function in a single class, and have sub-classes that perform specific functions. These sub-classes would not be visible outside the main, wrapper, class. Public Class MyFunction Private Class SubFunction ' This class is completely encapsulated ' in the MyFunction class, and is not visible Public Shared Function MultiplyNumbers( ByVal x As Integer , ByVal y As Integer ) As Integer Return x * y End Function ...Show All

  • Software Development for Windows Vista multiple test machines

    Before I go ahead and just do it, is there any reason why i cannot install RC1 (latest build) using the key I have been given by microsoft to test on multiple machines The process for installing and backing up is so slow and I have loads of products to get through. If this is not the case,how would I obtain another key I assume only one key per user is given. best regards Mike Hi Matthew, thanks for the speedy reply. I am part of is the Microsoft partner program, I'm responsible for compatibility testing working towards a working with windows vista logo for our range of products. I was given the key originally when I signed up to the inovate on the windows platform program, and then given a link to downloa ...Show All

  • Windows Forms tablelayoutpanel flicker / performance

    We are finding that the tablelayoutpanel control is causing a lot of flicker, especially flicker when resizing. We have an windows forms architecture based on user controls and tablelayoutpanels (we use the CAB). Our major flicker issues happen on our detail UI elements, such as a single row data maintenance user control of the pattern: Page Title Label A: TextBoxA Label B: TextBoxB Save Button / Cancel Button These control are organised in a tablelayoutpanel with 2 columns (one for the labels and one for the textboxes) and the desired amount of rows (one for the Page Title, a spacer row, one for row A, one for row B, a spacer row, a row for Save and Cancel buttons). The 1st column is AutoSize and the 2nd column is set to a Size Ty ...Show All

  • SQL Server calling a function on a different server?

    I was wondering if anyone knows the best way to call a function that is located in database on a different server then the database that is calling the function. Is it possible to do this with out linked servers I am running SQL Server 2000. Any help in this matter would be greatly appreciated. You can't use four part names to run function from a different server. However, You can use OpenQuery for Linkedserver to do the same Select * from OpenQuery(LinkedServer , 'Select MyRemoteDB.dbo.udfFunction ( ''Parameter'' )') ...Show All

  • Windows Live Developer Forums 3d Control compatibility

    I have some compatibility issues. i have my culture settings set to german(coz i am german), if i create a pushpin via new VELatLong(52.5,9.5) its no problem to show the pin in 2D mode, coz the 2d api always wants 52.5 no matter what locale i have set(in german culture settings 52,5 is correct), but the 3d control takes care of, so if i set my locale to german, it recognizes 52.5 as 52 million and 500000, and hangs. I thought everything was tested to support multiple locals, but bummer, its not yet. We have had really good responces form the VE devs on this forum including those from the 3D world. I think it is what has made this forum work. Although we haven't heard from Caleb in a while, I can only guess he his on ...Show All

  • .NET Development Load image column from database into image control

    Hello all, I am using VB.NET 2005, and I have an image from database that need to load into image control in the form. This is what I got so far. 1) strSQL = "SELECT MyImage FROM ImageTable" 2) making connection to database 3) sending sql command to retrieve image from database cmd = new SqlCommand(strSQL,myconnection) 4) myReader = cmd.ExecuteReader() 5) myReader.Read() 6) Load image from DataReader into Image control 'This is the step I don't know how to do it. Please help Thanks very much. I was trying to solve the same problem, could not get to solve the problem I bought the Pro ASP.NET 2.0 book from apress and "implemented" the solution to this(page 983) this did ...Show All

  • SQL Server Problem with temporary table and ado.net

    hi all i have created a store procedure that works fine on sql server 2005 exprees, it uses the temporary table #TEMP...the sproc is something like this: select name into #TEMP from TableName ...some operation with temporary Table #TEMP drop #TEMP So the problem is : when i try to call the store procedure from a dataAdapter from a visual studio project i have the following error: name of object '#TEMP' not valid. ....who can help me to solve this problem Thank you. You are a genius. There are a lot of people ripping their hair out with this problem... Pelase spread the word. It worked a treat for me Cheers DAN ...Show All

  • .NET Development Best practice while writing C# functions

    Hi, Anyone has any idea about how to free up memory in C# functions. Does the GC collects memory after a function has executed How about setting variables to null after we are finished with them, or the GC will automatically set them to null Does setting variables to null in finally causes an overhead void TestFunc() { XmlDocument xdDoc = new XmlDocument(); try { // use xdDoc } catch { // handle catch } finally { xdDoc = null; } } Dexter.Net wrote: As more and more memory allocations are required, the least used objects are moved into higher generations of the heap. The most frequently used objects would be maintained in g ...Show All

©2008 Software Development Network