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

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

eldiener

Member List

dgolds
Gurpreet_Sodhi_69db48
Gurpreet Singh Gill
Gary200
GetCode
Alex-MyRpg
David Graton
Mindy Kelly
Bubo
Hassan Ayoub
pappascd
Rob Wilson
Michal Konecny
NareshVelusamy
hunb
dto
averge joe
j_o_h_a_n_n_e_s
Ido Ran
logtorahul
Only Title

eldiener's Q&A profile

  • .NET Development Interop, pinning and delegates

    A hopefully simple question. Win32 functions like ReadFileEx take a function pointer for later callback. Interop-wise I've defined this as a delegate [DllImport("kernel32.dll", SetLastError=true)] public static extern bool ReadFileEx ( IntPtr hFile, byte[] lpBuffer, uint nNumberOfBytesToRead, Overlapped lpOverlapped, CompletionDelegate lpCompletionRoutine ); Where the completion delegate is defined as: public delegate void CompletionDelegate ( uint dwErrorCode, uint dwNumberOfBytesTransfered, Overlapped lpOverlapped ); This all works fine, but I've a question. Some time can elapse between the ReadFileEx call and completion of the I/O (when the delegate is cal ...Show All

  • Windows Forms Alter the Close_button event on form

    Hi, I want when the user clicks on the Closing button(red cross) of my form, that my Form isn't closed but made unvisible(frm.visible=false). Is this possible and how would this be done Grtz Annihil8 Hi, A not very logical solution is to have a bool variable to check if the user press your real exit button (if you have one) instead of the "x" button of the form. // Place this code in your form's constructor, don't forget to declare the flag variable outside the constructor to give it a public access in your class flag = false; // Place this on your exit button or where you plan to really close your form flag = true; this.close(); // Place this in your form's Form_Closing event if (!f ...Show All

  • .NET Development About the finalizer thread and thread-safety

    I'm using C++/CLI. I have some classes that control some native resources (objects from an unmanaged 3rd library). In the finalizer, before deleting the native objects, I need to call a native method of the library to "de-attach" them (remove them from a list, etc.). The problem is that this library is not thread-safe and, since finalization happens on a separate thread, it's my understanding that random crashes may happen during the lifetime of the application. Is this correct Is there a way to have the finalization thread blocked/not executed when execution is inside unmanaged context (or have finalization at the same thread as the application's ) Is requiring from the user to call Dispose the only solution for cleaning up resources, in ...Show All

  • Visual Studio Express Editions Creation Dll with COM Automation

    Hi, I want to create a dll/com to use with vbscript as well as program written visual basic 6 (with use of callback/events). Is possible use VC+ Express (with platform sdk) Where could I find an example Does this dll can it then use in commercial applications Oh I got it wrong. You can create win32DLL project under C++ but I don't know if that's available or not in express version (would be unmanaged as far as I know). ...Show All

  • .NET Development One Standard: JavaScript Both Client and Server. Is it Possible today?

    I am enamored by the idea that I could actually program the client and the server using the same language. I want to use Standard ECMA script on both the client and the server. Is this possible today in a safe way without going back to classic ASP Here are my requirements: 1) Be able to create objects exactly the same way both (cut and paste) on both client and server. 2) Be able to use Lambda functions the same way both client and server. 3) Be able to use "eval" both client and server. 4) Retain dynamic typing in all of it's glory both client and server. 5) The ability to use the .NET framework (CLI) standard server-side. What I don't require: 1) Uber-high performance (unless I have too, heck I'm alread ...Show All

  • Visual Studio Team System Replacing Labels using MSBUILD and TFS RC

    Hi, I have successfully upgraded my B3R server to RC, but I have a problem now. I'm using TF Build and it has started failing when it tried to label a workspace when the label already exists. I'm sure in B3R you could reapply a label using MSBUILD. The error reported is: Label Name="MyApp 1.9.151" Recursive=True Version="WBUILD_Dev_APP" Child="replace" Workspace="BUILD_Dev_APP" Files="$/Dev" C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(348,5): error : The item $/Dev/Database/Stored Procedures/GetSystemSetting.sql already exists. C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation. ...Show All

  • SQL Server How to deploy SQL Server Everywhere with my windows form application?

    Hello! I've been creating a vb.net 2005 windows form application using Everywhere and it has been going pretty well. However, I haven't had much luck finding any help on how to deploy my Everywhere database file(s) and Everywhere itself. To install redistribute Everywhere, can I just add the the 8 .dlls found in the Everywhere directory into my VS setup project Also, what database file(s) do I need to deploy in my windows setup Thanks! http://blogs.msdn.com/smartclientdata/archive/2005/07/15/439008.aspx Darren ...Show All

  • Visual Basic Setup Produced By "Build, Publish" Gives Error After I Uninstalled VB With CD And 'Removed' All Installation CD Programs

    Hello, I created a setup file from my application. I did this because I want to put my application on other PCs without installing Visual Basic. I basically want to just run the applicatoin on other PCs. What I did to create the setup file was within VB I clicked "Build" then "Publish." I then wanted to test the setup file on my PC, so I removed everything given to me by the VB installation CD! So, I uninstalled VB using the installation CD. But, I also had to go to the control panel to remove some of the programs that the installation CD gave me. I did this because the uninstall via the CD left things on my system that the installation CD gave me. When I was done, the control panel, remove programs listing ...Show All

  • Smart Device Development Cannot connect Windows CE 6.0 DeviceEmulator via Activesync

    Hello, When I clicked "Cradle" in Device Emulator Manager, the ActiveSync tried to connect but finally showed the dialog window "Microsoft ActiveSync cannot recognize this device for one of two reasons: *The deicve was not connected properly. *The device is not a Smartphone or Pocket PC." Some background: 1. Catalog item "ActiveSync" is added in OSDesigns for building the run-time image. 2. DMA support in enabled ActiveSync (v4.2). Thanks. Hi Ravindra, When I ran "dmanect.exe" from cmd prompt inside the DeviceEmulator image, the prompt returned "Cannot execute dmanect.exe". I have tried to run in \Windows as well, I believe this command may not be inclu ...Show All

  • SQL Server How to debug stored procedure in SQL server 2005

    Hi all, I really need to know that " How to debug stored procedure in SQL server 2005 " please help me to solve my problem regards sujithf http://sqljunkies.com/WebLog/nielsb/archive/2004/08/04/3758.aspx ...Show All

  • Microsoft ISV Community Center Forums How do I create and use 3D ranges in Excel-VBA

    It is easy to create and use 2D range in excel. The following code will do Option Explicit Sub Demo3DRange() Dim sh As Worksheet, r As Range, vData Dim Row As Integer, COl As Integer Set sh = ThisWorkbook.Sheets("Sheet1") Set r = sh.Range(sh.Cells(1, 1), sh.Cells(100, 2)) vData = r.Cells.Value For Row = 1 To 100 For COl = 1 To 2 Debug.Print vData(Row, COl) Next COl Next Row End Sub When we execute the above code, the variant vData will become a 2D array of 100*2. Now my question is following: A)How do I create a 3D range in VBA code B)Can I assign that 3D range to a variant, and get a 3D array, just as I get 2D array in case of 2D range Thanks -Rahul ...Show All

  • Visual Studio Express Editions Data Grid Question

    This is from the help Private Sub ResetSource() DataGrid1.SetDataBinding(adoPubsAuthors, "Authors") End Sub I would like to set my Data Source to be based on the results of two combo boxes in my form. I guess my question is, can it be set on a query vice a table. SELECT * from Ply WHERE LN = '" & cmbL.Text & "' and TN = '" & cmbT.Text & "'" It does not display any data, just the grid and the column names. I have tried it on multiple columns. ID is a field (it is the autonumber field in my Access DB). 1 is the first record in that database. Very weird. I am just practicing at work, I can try when I get home with my real database, but ...Show All

  • SQL Server Universe Database (IBM) - Linked server no longer works with MS SQL 2005

    Has anyone managed to set up an IBM Universe database environment as a linked server to MS SQL 2005 If so please convey how you got it done. Thanks, Jeremy, Here is a good place to start: http://www-306.ibm.com/software/data/u2/middleware/index.html#odbc ...Show All

  • SQL Server SR 2005 - Code works in preview, but not when deployed.

    SSRS Version: 2005 I've created a report that has a simple function that cycles through a multi-value parameter list array and returns a string value of each list item that was selected seperated by a comma. I use this so I can display in a textbox which items were selected. The code works when you preview the report in the designer; however, once it's deployed onto the server, the textbox that calls the code displays: #Error. I've been researching this problem in other forums, but the only thing I've come across talks about security permission when running a custom assembly. I'm not using any custom assemblies. Can anyone help me out with this problem and let me know how to resolve this issue Below is a copy of the code I'm using. ...Show All

  • SQL Server prblem with turkish I in SQL Query

    Dear all, i am using SQL server for turkish language and i have a problem with turkish character "i". Whenever "i" comes in any word of query it gives wrong result. It also not able to recognize the small and capital "i" of turkish. can anybody help me in this regard Double: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=801811&SiteID=1 ...Show All

©2008 Software Development Network