winstonSmith's Q&A profile
SQL Server Variable Value: How do I set it from value in flat file at runtime
I have a number of DTS packages I am trying to convert and am totally new to Integration Services. I have a flat file that I reference to get a date that I use in some SQL statements in the package. It seems like the best way to do this would be to create a variable to hold the date and set it at run time from the flat file. I've been searching the documentation and the forum and can't figure out how to do this. This is so basic that I feel like an idiot putting it on the forum but I need some help. This whole Integration Services thing is a big shift from DTS (which I eventually became pretty good at) Now I'm back to ground zero. Any help would be appreciated. If you can direct me to any basic training resources that would be cool t ...Show All
Audio and Video Development Cinevision
Hi, someone can help me with the parameters that I need to know to make a good compresion with cinevision I would like to know the "standard" parameters for the diferent codecs. Then, I would like to know what can I do with the materials that I have in a 25Fr per second Digital Betacam. I supouse that I need to transcode the signal to 29,97 720X480NTSC and then capturate with no compression and finally inport to cinevision. Can I have any problem with the continuity of the image if I transcode the signal to 30Fps and then I capturate with 29,97Fps (The transcoder that I use it doesn't works in 29,97, only in 30Fps). Thank you Thank you for our replys. The problem with the material in Digital Bet ...Show All
Visual C# preventing SQL Injection in C# code...................
I am building my first ASP.Net app from scratch and while working on the DAL I came across the problem of SQL Injection. I searched on the web and read different articles but I am still unsure about the answer. My question is should I add db.AddInParameter(dbCommand, "AvatarImageID" , DbType .Int32, avatarImageID); Add in Parameters to my C# code to avoid SQL Injection. What is the best practice. I am unclear if the stored procedure already helps me avoid SQl Injection or if I need the add in parameters in the C# methods to make it work. I need some help. Thanks, Newbie My C# update method in the DAL (still working on the code) private static bool Update( AvatarImageInfo avatarImage) { ...Show All
Visual C# Management a binary data stream
I have to download a set of binary records (S1) from a remote server. I do it easily. The problem comes up when I try to download a set of sets , so to speak in a loop. Processing a single set (essentially, this set ends up in a DataTable) is handled in a Thread . I use a demo that I've adjuted to my wrapper (app) and I really still do not understand how this thread is set up. There is no explicit Thread class instantiation in the code. Perhaps when a new Socket instance is created the thread is set up automatically, I do not know. Anyhow, downloading one DataTable causes no trouble. When I tried to automate process for many tables I ran into a problem. In a loop where the request is formulated there is a call to the routine that handle ...Show All
Visual Studio Express Editions Smart tag issue
Hello I am trying to build a simple app using VB Express and have come across a strange snag. I have just bound a colum to a combobox using the smart tag, now nothing in the app wants to work. For example all of the buttons have stoped working and even stranger the close form (red X) does not function. It seems that the entire app is non responsive (although the combo box is finally working correctly), any one have any ideas on this issue Thanks ...Show All
Visual C# Detecting Windows events
What i am trying to do is that, if a user creates an image file in a certain folder, a background program detects such event and triggers the automatic creation of a text file which will be related to this image fils by having the same name (Except of course for the extension). It's just an idea that popped in my mind a few minutes ago... and I wonder if i could develop it in some way. Thanks in advance You can use the FileSystemWatcher class in C# for that sort of thing. ...Show All
Visual Studio Express Editions Having a problem using two timers
I am creating a program in VB2005 express to collect resistance values from 14 devices. Within the program I use two timers. The first timer has a tick event every second that increments a counter value that is displayed in a label on the form. The second timer has a tick event every 5 minutes. The event handler for this tick calls a function that communicates to a control unit that switches between the 14 channels and reads the resistance values. All of this is through GPIB communication and works fine. The problem is that when the second (5 minute) timer event occurs the first (1 second) timer stops counting until the called function completes, which takes about 20 seconds. I want the value the first timer is incrementing to continue to ...Show All
Windows Forms Manual showing tooltip ?
I want to manual show the tooltip for my textbox. For example I put a textbox and a button. So every I click the button the tooltip on textbox will appear. I have use code like this on button click event : this.tooltip1.show("", this.textbox1, this.textbox1.width, this.textbox1.heigth, 10000); But still the tooltip not showing, but when my cursor focus on the textbox it will show. If there anyone have conclusion please tell me fast, URGENT. Regrads, Ariston Darmayuda In addition, if you want to hide the tooltip, try: this .tooltip1.Hide( this .textBox1); ...Show All
Audio and Video Development Toshiba player not rendering text
The Toshiba player is not rendering text while the iHDsim has no problem with it. The markup code: <div id="textField" style:position="absolute" style:y="1px" style:x="1px" style:height="40px" style:width="1920px" style:display="auto"> <input id="textMessage" state:value="test" mode="display" style:navIndex="none" style:font=" file:///dvddisc/ADV_OBJ/font.ttf " style:fontSize="28px" style:color="red" /> </div> The font I use for testing is Arial (openType) I've also used other fonts but no succes, maybe someone can help. Have you tried ...Show All
Smart Device Development Map HardwareButton to TAB button
Is there a way to use the HardwareButton component to emulate a TAB press Unfortunately, I don't see a way to set up that mapping within WM5. Thanks, Matthew Belk Matthew, I'm assuming that by "emulate a TAB press" you mean that pressing one of the hardware buttons should activate the next control in the tab order. The HardwareButton control sends KeyUp and KeyDown events to the active control. To move from one control to the next by pressing the 'Enter' hardware key, add the following event handler to your form: private void control_KeyUp(object sender, KeyEventArgs e) { if ((e.KeyCode == System.Windows.Forms.Keys.Enter)) { Control control = sender ...Show All
Silverlight (formerly WPF/E) News: "WPF/E" Feb 2007 CTP is Live!
Earlier today, you may have noticed your “WPF/E” December Community Technology Preview (CTP) control expired. No worries though- we’ve just posted the February CTP for Windows and Mac to Microsoft's download center and updated the samples on the Channel 9 Playground to work with the new CTP. Note that to get your samples working with the February CTP, you’ll need to change out the agHost.js file with the new one found here . Tomorrow we’ll update the website with details on what’s new in this release, and an updated SDK and samples will be available soon too. Thanks, "WPF/E" Marketing Correct link to download the aghost file is: http://channel9.msdn.com/playground/wpfe/pageturn/js/ ...Show All
.NET Development client server communication exchanging of wide char over TCP sockets??????
hi , i have written a client server pgm . the functionlity of which is to download a file from another client via server. here im passing the file path of remote machine (the file name is in Chinese Char eg : C:\\使能 折.txt, this path i need to send it via socket send. how can i do it. i tried may ways :- --> converting the char to wide char using wcstombs etc etc but of no use. how can i do it it is very urgent .. Pls help me waiting .. Sandeep pls give me the code for the same. here is mine :- Client :- CString csPath=_T("C: \\ Downloads \\ 精 象 \\ 精 象件 .txt"); -- --how to convert to UTF8= -- int iSend=send(clisock,buffer,sizeof(buffer),0); Server:- int iRecvd=recv(msg ...Show All
Windows Forms passing values across forms
form 1: dim myf as new form2 form2.show form2 only has a listbox with clickevent i want to be able to have a method in form1 that listens that the listbox in form2 has been clicked and it stores the value selected in form1. so its about events i suppose. i do not want to pass form1 as reference etc.. . code in vb please This is an example I made. Public Class Form1 Dim WithEvents dlg As New Form2() Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click dlg.Show() End Sub Public Sub objRemote_RemoteEvent() Handles dlg.myevent MsgBox( "Kokok" ) End Sub End Class Public ...Show All
Visual C++ Pointers... when to use them?
In general, when do you use pointers It is my first time working on a more-complexed-than-hello-world application and I get many errors regarding "stack around variable x is corrupted" if I did not use pointers. eg: SomeDllClass sdcObj; sdcObj.doFunc(); ... // End of Function This gives me the stack corruption error. SomeDllClass* sdcObj = new SomeDllClass(); sdcObj->doFunc(); ... // End of Function This is OK. Also, I learned in my C++ Appreciation Class that pointers declared in a class should be deleted in the destructor. When I did that however, I was given a "Memory Access Violation" error (I initialized the pointer in a function other than the constructor). Is it advisable to use pointers for every variable I ...Show All
.NET Development Day Light Saving
Hi, I’m wondering what you are all doing about the new day light are saving. Last year, the dls was on 4/2/2006. With the new regulation this year it will be in the 3/11/2007. Without the ms patch, when I loop all the hour in a day in .NET the 4/2 work but the 3/11 does not. But when I install the path, 4/2 does not work anymore and 3/11 does. It seems like they only changed the logic, they did not keep the old logic for the old days. This is causing some problem with some of my .NET applications. Have any of you had this problem Module Module1 Sub Main() ShowDates(2006, 4, 2) ShowDates(2006, 10, 29) ShowDates(2007, 3, 11) ShowDates(2007, 11, 3) Console.ReadLine() End Sub S ...Show All
