the emrah's Q&A profile
Visual Studio 2008 (Pre-release) ShowDialog() behavior
I've got an application that uses several modal dialog windows. Early on, I discovered that displaying the window was a little slow, apparently because the XAML had to be parsed each time the window was displayed. In order to circumvent this delay, I create each of the modal dialog windows at the beginning of my application, and I never call Close() on them (nor do I set the DialogResult property, which would also close the window). I do make a call to ShowDialog(), and the window functions properly as a modal dialog. When I'm done, I call the Hide() method, which returns from the modal ShowDialog() call and allows me to continue processing. After a while, the windows start exhibiting some strange behavior. Sometimes the wrong window wi ...Show All
Visual Basic Class MSAdodcLib.Adodc of control adoDep was not a loaded control class
Can someone please tell me what is wrong with my project. I have been working on this project for 5 months. My deadline is the 9th of October. This morning when I tried to open my project, VB6 told me that it was unable to load my project. I tried opening form by form, but some of the forms wouldn't open and logged and error (Line 9: Class MSAdodcLib.Adodc of control adoDep was not a loaded class). I even tried to make a new project and save add the forms to this project, but they just won't add. All of them gives me the above error. All my other VB6 projects works . Please could you tell me what to do, I have one week left to complete this. I'm using Windows XP SP2, with .Net Framework, and Visual Studio 6 Enterprise Edition. I update my ...Show All
SQL Server File Watcher Task doesnt wait for the entire file to be completely finish before it completes
Hey there Ive built an SSIS package which generates a file from a legacy system and then downloads the file into a designated folder on the server. I need the file watcher task to wait for a the file to completely finish loading before it says it is complete. Currently, as soon as the file is created, the WMI step finishes. Any help would be greatly appreciated! Kind Regards David Hi Thanks for that. We decided to take a different approach though. Ive downloaded another file watcher task from Konesans. Konesans.Dts.FilewatcherTask.FileWatcherTask. I have added it into my SSIS package and it is working like a dream! However, when to Add it to the SQL Server Agent, I get a strange error ...Show All
SQL Server Avoid Package Failure
Hello everyone i'm using a Foreach Container to run certain tasks, these ones are inside a Sequence Container. I'd like to know if there is a way to have a task failure without a foreach failure, i don't need the hole process to fail, just the current iteration so i can log it. Thanks a lot! You may want to check FailParentOnFailure and FailPackageOnFailure properties of your inner tasks. I have not played with those but it seems like prove what you need. Rafael Salas ...Show All
.NET Development send raw data to parallel port
I want to send raw data to the parallel port, similar to the old style dos command: copy file lpt1: or copy file prn The purpose is to send ascii in the printer language directly to the printer which would be directly connected to one of the parallel ports of the computer. Anybody got an idea how to apprach this The data is available as a C# string and if not absolutly necessary I do not want to generate temporary files for printing. The official way to do this is to install the "Generic / Text only" printer driver. Click Start + Settings + Printers and Faxes, File + Add printer, Next, Next, Next, Next (I lost track), Manufacturer = Generic. You should be able to send the printer's esc ...Show All
Software Development for Windows Vista oscilloscope over running video
I am trying to display an oscilloscope (aka audio scope) over a running video. The directshow filter i am using to produce the audio scope is in: http://virtualvcr.sourceforge.net/html/virtualvcr/filters/scope.php. This filter creates its own window and produces the scope. What I want to do is, instead of creating its own window, it should display the audioscope over a running video. Please point me in the right direction. Can you please give more detail on one of the three dots listed above Ie, fundamental classes, methods, etc. Right now, I am trying dot point 2 without much successs. Don't know if it is the easiest of the three. ...Show All
Visual Studio Express Editions How do I connect a RadioButton to ComboBox
In group box 1 I have 3 radio buttons and 1 ComboBox all tied to PictureBox1 Radio1 ----------------------------------------------> Radio2 ----------------------------------------------> PictureBox1 Radio3 --> Combo box1 -----------------------> but Radio3 needs tied when selected to 15 different selectable options in a ComboBox1 Radio1 shows a .gif if selected in PictureBox1 Radio2 shows a .gif if selected in PictureBox1 Radio3 shows the ComboBox1's selection in PictureBox1 if end user selects Radio3 then a ComboBox1 selection but then decides to go to Radio2 or Radio1 and then again back to Radio3 PictureBox1 doesn't update Unless a reselection on ComboBox1 is made I would like ...Show All
.NET Development 64-bit with pinvoke and com components
We have just installed a 64bit windows 2003 server and are in the process of getting our application to run on it. It looks so far, like we will be forced to compile all of our code as a 32-bit application. I've scoured MSDN for more information on the topics of 64-bit and com and pInvoke and haven’t found much information Our application is both .net and native. If we move to and compile our app under 64bit windows can we use any of the 3rd party 32bit com controls that we rely I’ve found that native code compiles fine in 64bit when importing 32bit controls but then CoCreateInstance fails when trying to load the control. What happens when I try to use 32bit controls in 64bit windows with .net applications Next big q ...Show All
SQL Server SQL Server CE Replication: Integrity error, but not at all
Error information: NativeError: 28549 HRESULT: -2147217873 Message: OrdersHeader,Delete,{0503BF00-BB05-11C6-8000-36BC4ADEE342} Description: The row update or insert cannot be reapplied due to an integrity violation. Server side: SQL Server 2000 or MSDE Client side: SQL Server CE or SQL Mobile This error is usually caused because of an error on the filters. But not in this case, i think. I assume it's not a filter error because if I delete the SDF and run the sync it works. The error occurs when I delete some rows in the server (parent( OrdersHeader ) and child( OrderLines ) tables) and the PocketPC stills have this rows. On the next synchronization It seems that replication process tries to delete the OrdersHeader rows before the OrderLin ...Show All
Visual Studio Express Editions Open file problem ...!!!
hello everyone... here's a new problem.... please help i have made a open dialog for a picture to insert in the picture box,,, but how can i restrict it to only show the picture files in computer ----------OR------------ how can i restirct to only select the picture files like jpeg, bmp, gif, etc etc thanks,,,, set the filter for the open dialog: http://msdn2.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.filter.aspx so something like perhaps: theOpenFileDialog.Filter = "Image Files (*.jpg;*.bmp;*.png)|*.jpg;*.bmp;*.png"; ...Show All
.NET Development syntax error when executing "desc Customer" using Oracle and C#
I'm writing some code to play with an oracle server. I can connect to the server okay. I have tried to execute commands like "select * from tab" and "select * from customer" and it worked fine until when I tried to retrieve table information by "desc customer" and I got an exception saying that there was syntax error (also tried with a ';' at the end). I'm sure "desc customer" works because I tested it in sql*plus. My code is like this: oraCommand = new OracleCommand("desc customer", myConnection); dbReader = oraCommand.ExecuteReader(); while (dbReader.Read()) output dbReader.GetString(0); Thank you. Sorry for the confusion. This is the code that got the syntax error. It works if if I have this: oraCommand = new OracleCommand("select * fr ...Show All
Gadgets Which browser will render a gagdet
Hi I was wondering which browser is rendering the gadget. Is it always IE , is it the Browser which is set as default Thanks for advice :) ...Show All
Windows Live Developer Forums Windows Live Contacts Gadget beta release!
I'm pleased to announce that the Windows Live Contacts Gadget has been released to beta! The Contacts Gadget allows end users to access their Windows Live (Hotmail + Messenger) contacts in the context of third-party web sites, and use those contacts with the web site. It's easy to add the contacts gadget to your web sites - just reference the .js files on dev.live.com, copy one channel.htm file to your web server, and write a little code to construct the contact gadget and respond to its callback events. More details can be found here: http://dev.live.com/contactgadgets I'll be posting articles and code samples over the next few days on my blog . If you have any questions, feel free to ask! -Danny my Ques about s ...Show All
Visual Studio Express Editions Putting a byte in to a text box
Hi, Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything. Thanks This is from HELP Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Using com1 As IO.Ports.SerialPort = _ My.Computer.Ports.OpenSerialPort("COM1") Do Dim Incoming As String = com1.ReadLine() If Incoming Is Nothing Then Exit Do Else returnStr &= Incoming & vbCrLf End If Loop End Using Return returnStr End Function Notice this is a function and a function has output soooo ...Show All
Visual C++ Floating point stack overflow
My application works fine in VS2003, but in VS2005, it is producing an overflow of the floating point stack. This seems like it must be a code generation error in the new compiler. Has anyone else experienced this problem In the particular case I am looking at, I step through the instruction FLDZ in the disassembly window. Instead of getting a zero in ST(0), I get 1#IND, and the SF and C1 bits are set in the x87 FPU Status Word. The first time through this code it works OK, but this second time through, the FPU tags register shows that the stack is full before the FLDZ instruction. Mark, They are just double. Yes, I should use %f. The problem is only shown in ther release build. I built my release ...Show All
