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

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

djmikke

Member List

UnKnown Nick
Michael J Brown
Debabrata.debroy
BobConsultant
Joe H
XoDeus
luca82
ThE ViKinG
RohitAtKA
kymaita
daph4ntom
Jiffy
chksr
Tomys
DusanMihajlovic
Ro0ke
Muhammad Azeem Azam
Nina001
Alvin Kuiper
Stéphane Beauchemin
Only Title

djmikke's Q&A profile

  • .NET Development Reading a DataReader from two places at the same time.

    I have a SqlDataReader which returns some data from a database. I would like to insert the data from this DataReader into two different tables on two different servers, using two SqlBulkCopy instances. Somehow my SqlBulkCopy objects should read the same DataReader in parallel, so I won't have to read my data twice from the source. The amount of data is quite large, so I wouldn't cache them, for example into a DataSet. How would you solve this problem The only idea I could think of is creating a wrapper over the DataReader, which implements the IDataReader interface, and which can be read in parallel from two different threads. However I don't know how this would perform, as each thread would block after each row of data, and th ...Show All

  • Visual C++ Help button get chm instead of hlp

    I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is allocated before InitInstance is called. free((void*)m_pszHelpFilePath); //Change the name of the .HLP file. //The CWinApp destructor will free the memory. m_pszHelpFilePath=_tcsdup(_T("C:\\filezilla\\filezilla.chm"));     EnableHtmlHelp(); but i just get "Failed to launch help" Actually in the ...Show All

  • Visual Studio 2008 (Pre-release) Code-Generated Base Entity Class

    Hey team, Is there a way to specify the base-class that the generated entities inherit when the code is generated I'm thinking of creating a base-class that contains common functionality, and want to have the generated classes derrive from that instead of System.Data.Objects.Entity. My base-class will of course extend System.Data.Objects.Entity. :) Thanks! Daniel Simmons - MSFT wrote: What I haven't tried is creating a base type that doesn't contribute any properties--only behaviors. I'm not sure that will work, but it's probably worth a try. Is there reason to belief this wont work ...Show All

  • Visual C++ Identification of object id at run time.

    Hello Gents, I have developing one win32 application.In this application, I was created 5 no of static control at run time. Then i was selected and track any one object from the group of objects using mouse pointer. Now, how can i identify the object id selected by mouse ( OnLButtonDown function ) Thanks and Regards, K.Vishvanathan. Please see articles such as http://www.codeproject.com/dialog/windowfinder.asp . Also note that this question is not within the scope of this forum, as this covers merely C++ language related questions. In the future, please direct UI and MFC questions to the respective newsgroups at http://msdn.microsoft.com/newsgroups . OTP. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using DirectX with VB.Net

    I am using Visual Studio 2005 (VB.Net) to write my apps. My next app will have a graphical component (nothing as intricate as games) but still lines and shapes will need to be displayed interactively. My questions are: Can one use DirectX with VB.Net If so, which SDK do one use. If not, what would be recommended to program graphics using VB.Net. Thanks Christie Myburgh wrote: I am using Visual Studio 2005 (VB.Net) to write my apps. My next app will have a graphical component (nothing as intricate as games) but still lines and shapes will need to be displayed interactively. My questions are: Christie Myburgh wrote: Can one use DirectX with VB.Net Absolutely. Managed DirectX works ju ...Show All

  • SQL Server How to fail when ForEach File Enumerator doesn't see files

    I have a ForEach file enumerator that executes a data flow for every source file in a specified directory. If there are no files in the directory, the package executes with a result code of 0. I need the package to fail if there aren't any files found in the specified load directory. Is there a simple way to do this with the SSIS component, or will I have to script the entire file enumeration process inside script tasks to handle this requirement Thanks in advance for any assistance with this question. Please post replies to this forum. -Doug First thought, how about setting a variable to False before the loop, and within the loop to True. You could then use a Script Task after the loop that dep ...Show All

  • Visual Studio Team System CTP 7 on Team Suite, Schema Import - "statements were not fully understood"

    There are numerous statements like this: ALTER TABLE [dbo].[DCJStatTx] NOCHECK CONSTRAINT [FK_DCJStatTx_DepartmentDeptSchedule] GO ALTER TABLE [dbo].[DCJStatTx] NOCHECK CONSTRAINT [FK_DCJStatTx_EmployeeEmployee] GO ALTER TABLE [dbo].[DCJStatTx] NOCHECK CONSTRAINT [FK_DCJStatTx_JobOpenJob] GO ALTER TABLE [dbo].[DCJStatTx] NOCHECK CONSTRAINT [FK_DCJStatTx_JobStatusStatusCode] GO ALTER TABLE [dbo].[CustInvNotes] NOCHECK CONSTRAINT [FK_CustInvNotes_Division_AcctDivisions] GO ALTER TABLE [dbo].[CustInvNotes] NOCHECK CONSTRAINT [FK_CustInvNotes_CustomerNCustomer] GO ALTER TABLE [dbo].[QQOrderDet] NOCHECK CONSTRAINT [FK_QQOrderDet_ProductID_QQProducts] GO ALTER TABLE [dbo].[QQOrderDet] NOCHECK CONSTRAINT [FK_QQOrderDet_SizeIDQQSize] GO .... ...Show All

  • Windows Forms SendKeys.Send("+{F9}") problem

    Hello All I have a small problem with Sendkeys My first function sends the send keys (Shift + F9) to keydown event. My problem is how to capture this Shift + F9 conditionly Private Sub cbZoom_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cbZoom.Click Try Me .dgvDocuments.Focus() System.Windows.Forms.SendKeys.Send( "+{F9}" ) ' Shift + F9 Catch Err As Exception System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default End Try End Sub Private Sub dgvDocuments_KeyDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles dgvDocuments.KeyDown If (e.KeyCode ...Show All

  • Visual Basic 1st time lucky, 2nd time's good, 3 times through and it crashes.

    I have a program that uses a subroutine that has an output file called temp.csv. It also has a sub that reads the output file using a streamreader, then closes the streamreader, I've watched it, and it always closes, even when I get an error. Every time through it deletes the temp file because in the output sub, it appends to the output file otherwise. When I run the program, and the program tries to delete the temp file, no problems, second time, no problems, third time, I get the another process is using this file... exception. Like I said, the streamreader is closed by this point every time, I've watched it. Any thoughts Well... Even though I had close statements in there, and it was closed, apparantly ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Performace: can't this thing draw any faster?

    I'm certain that I my code must have some critical inefficiency somewhere; I can run my favorite 3D video games at maximum settings, but my little DX app slows down to < 90 frames per second when it tries to draw 100 little boxes. Here's the code in a nutshell: protected D3D.Texture _texture; protected static D3D.Sprite _sprite; _texture = MakeTexture(); // ends up producing a 1x1 white texture _sprite = new D3D.Sprite(graphics); dx_graphics.BeginScene(); for (int i = 0; i < 100; ++i) { _sprite.Begin(D3D.SpriteFlags.AlphaBlend); _sprite.Draw(_texture, new Rectangle(0, 0, (int)500, (int)500), new Vector3(0.0f, 0.0f, 0.0f), new Vector3((int)300, (int)200, 0.0f), Color.FromArgb(255, 255, 255, 255)); _sprite.End(); } dx_graph ...Show All

  • Smart Device Development Generate DTMF on SmartPhone/PocketPC via C# at runtime

    I am trying to navigate an IVR via TAPI on windows ce, I am able to use the lineGenerateDigits API call, but am running into a buffer limitation that I cannot get more than 14 digits pulsed out at once. What I would like to do now is try the following from a previous post: "To send DTMF tones during the call, you should post the WM_CPROG_SEND_VKEY_DTMF message to the CProg window. The CProg window can be found by looking for a window with class "MSCprog". The message is defined in \public\shellw\oak\inc\wpcpriv.h. The WPARAM for the message should be a TCHAR representing the DTMF character. Does anyone know where to get the following file or files \public\shellw\oak\inc\wpcpriv.h Thanks CD ...Show All

  • Visual C# Placing a filter on Image

    Hi all, I am a beginner in C# but somehow it is required of me to use C# to create a presentable GUI that will place a movable filter on to an image. I did post a different topic previously however, I thought that someone might be able to help me better, if I describe the task at hand in more detail. What I wish to do is load an image to a picturebox. Then place black plane with a circular hole of a specified radius. So the final picture will be only viewable via this little hole and everything else will be black. Now this hole needs to traverse line by line such that at the end the whole image would have been presented to the user. The time it takes to traverse to the end should be made variable. I thought of doing the above task by ...Show All

  • Smart Device Development embed flash lite in C++

    Can someone please tell me how to embed a Flash Lite app in C++ I've heard you have to use the Pocket PC ActiveX control and I know nothing about that; haven't been able to find anything useful online either. ...Show All

  • Visual Studio Tools for Office VSTO deployment problem selecting prequisites

    ((the problem below also occurs when I try to go through the sample project from the whitepaper " Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer: Walkthroughs (Part 2)" )) I'm trying to make it easier for my users by including the Vstor.exe and Ofiice PIAs in the setup installer. I'm following the directions in the MSDN "Deploying Visual Studio 2005 Tools for Office Solutions Using Windows Installer: Walkthroughs (Parts 1 + 2)" until the point where I'm attempting to add the Vstor and PIAs as prerequisites to my setup package. However, whereas the .NET Framework 2.0 appears in the dialog box choices to add as a prerequisite neither the VSTO nor the PIAs appear in the prerequisites l ...Show All

  • Smart Device Development Eliminate flicker in picture box

    Hi, I have a C# project where I try to draw lines over an image. The problem is that I get flicker because of the Refresh. Now I've already seen that overriding OnPaint Background works for the entire Form, but what if I'm only drawing in a picture box Is there any way to override pictureBox_paint and prevent the flicker Thanks There are a lot of samples how to do double buffering. This old article for example: http://msdn2.microsoft.com/en-us/library/aa446518.aspx ...Show All

©2008 Software Development Network