Daniel Adeniji's Q&A profile
Internet Explorer Development Page cannot be displayed - impossible to resolve
sceaniro - Installed v7 IE but the install stamped out my wireless connections. Then I uninstalled v7. Today: I was able to get my wireless connection restored, but I can't ping to my ip address. and when I use IE I get the page cannot be displayed message. Tonight: I researched very clue in MS website and tried a dozen suggestion and no success. Troubleshooting is leading me to possible winsock error when using the Diagnose Connection tool. Error is 'Error attmpting to validate the Winsock base providers:2 Not all base service provider entreis could be found in the winsock catalog. A reset is needed. What suggestions do you have Desperate. I too installed IE7 and some web pages simpy ...Show All
Visual C++ Performance of malloc and free in VC++ 2005
Hi all, Whne I port VC++ 6 project to VC++ 2005, I find malloc a small piece of memory in a big loop and free them later in other loop has very very bad performance then VS++ 6. For comparation, VC++ 6 spends 12 seconds and VC++2005 spends 60 seconds in a same stress testing. :( I have check the compile options and find nothing. Could you please point out the reason Or give some advices. Thanks in adv. Best Regards, DeepNight First, make sure you test the same type of comfiguration, which in this case should always be a release configuration, with optimizations enabled. Second, do you write in C++ or C Because in C++ you should use new/delete over malloc/free. See Scott Meyers' ...Show All
Visual Studio Thanks for the tip
XML tag in Documents and Settings How lame! So, to recap. We went from 'Dll hell' to XML config settings, registry entries, package dependencies, etc. And how is this better ...Show All
Windows Forms Dynamically setting the Control for a cell in datagridview
I have an interesting question that has probably been answered many times over, but I cannot seem to find the solution. I am trying to use a Datagrid view for settings in my application. In the DGV (DataGridView) I have two columns "Function Name" and "Function Args" The Function Name is a Combo Box and after selecting a value I would like to change the "Function Args" Control to either a Text Box or Combo Box. I cannot seem to find any documentation on how to do this. Is it possible Thanks, LSTech You can set any cell to any cell type, regardless of the column type. Handle the ComboBox.SelectedIndexChanged event as described in the DataGridViewComboBoxEditingControl class overview , and then, depending on ...Show All
Audio and Video Development How clockDivisor works?
Hi, Can anyone explain how clockDivisor works in HDiSim Frankly speaking I cannot catch the idea :) Simple sample below is to display "OK" on the screen after 1s. timeBase is 60fps, clockDivisor is 120. When "OK" should appear After 1s, after 2s, after 5s... And why Thanks in advance < head > < timing clock =" page " clockDivisor =" 120 "> < cue begin =" 1s " select =" id('ok') " dur =" 5s "> < set style:visibility =" visible "/> </ cue > </ timing > < styling /> </ head > < body style:font =" file:///dvddisc/ADV_OBJ/font.ttf " > < p id =" ...Show All
SQL Server How to use variables in OLE DB or OLE Destination?
Hello - I am making good progress with my ssis package. However, there is one new thing which I cannot graps yet. That is, how to use variables when I want to update or insert a new row. I have some columns in my tables that require the datetime that the update/insert occured, the person making the change, and a few other things that are not part of the incoming data source (an excel file). I created some user variables for these things, but I cannot figure out how to use them with my OLE DB Command and OLE DB Destination. One handles Inserts and the other handles the Updates based on whether a row in the Excel file is new (an Insert) or already exists (an update). Along with the insert or update, I'd like to set the Lastupdate, Who, ...Show All
.NET Development Altering large Xml files
I have a system that has individual items, which are grouped into folders, and need to be saved as xml files as I do not have database support for this project. Also due to security standards the files must be encrypted, which I do via a CryptoStream that I run the xml reader/writer through. Each item has a good bit of data that is going to be around 10k+ and there could be times when a user will have several hundred items in a folder. Right now I'm trying to decide the best way to store these files. My initial thought is to store the data in a format like: <folder> <item> <data /> </item> <item /> </folder> This will be a lot more organized from a file system pe ...Show All
Visual Studio Team System How the web test plugin works
Hi, I have two web tests and both of them use the same web test plug in which gets the recordnumbers from local database table. I am using a select statement in the webtest plugin for data binding. Both the web tests use the same plugin. I get the recordnumbers from the select statement in the plugin. For example, the select statement returns record numbers A, B, C and D. So when do loadtest with both the web tests, i think each of the web tests work on A, B, C and D. Is that true If so, how can I make the web tests work on mutually exclusive data. i.e I want webtest1 to work on A and B and webtest 2 to work on C and D. How to achieve this Are there any resources on how the web test plugin work Thanks., ...Show All
Visual C++ How to restrict a user from 'Deleting' a file by pressing DELETE key on Keyboard..???
Hi, Here, I want to restrict a user from Deleting a file Manually (i.e, 1. By pressing DELETE Key on keyboard 2. Right-Click on file and selecting Delete. ) In MS-Word 2003, If a file is Opened, and we are trying to Delete it, it gives an error message like, " The file abc.doc cannot be delete : The file abc.doc is in use by following program Microsoft word . The file must be closed before delete." I want exact functionality as above. Could any one help me. third parameter can be FILE_SHARE_READ|FILE_SHARE_WRITE Other processes can read and write simultaneously. But not Delete. ...Show All
.NET Development HelpProvider on Windows XP x64 Issues
Using Windows XP x64... Seems like HelpProvider in .NET 2.0 doesn't work correctly for 64 bit executables. When I request for help, my help box shows not next to the control, but somewhere on the left side of the screen. When I force my app to use x84 (WOW), HelpProvider works perfectly. Has anybody experienced this ...Show All
Visual Studio Express Editions How to serialize a TreeView
I'm using a TreeView Component for my Favourites list in a web browser i'm making and i want to save the nodes(TreeView nodes) into a xml file in such a way as i can load it back up when the program loads next the following code is the problem, i dont know how to make my xmlwriter write the nodes into the document, can anybody help Dim writer As New XmlSerializer(GetType(TreeViewAction)) Dim file As New StreamWriter("C:\Program Files\Moose Inc\DHWB\Bookmarks\Bookmarks.xml") writer.Serialize(file, TreeView1.Nodes) file.Close() (PS. i Apoligise for the double posting of this, but i need the answer as quick as posible and the other topic went cold) how about this: http://www.codeproject.com/vb/net/TreeViewDataAccess.asp ...Show All
SQL Server OLE DB Source Editor
hi, I am using SSIS to extract data from sql server and import into MDB file. In the process, under data flow task, I have used OLE DB Source Editor as source. Here i have choosen SQL Command as mode of data population. In the box below i have typed the following statements. "Exec Site_Address" I have used many temperory tables in this procedure. When i run this procedure in the query analyzer window i get the desired data which has to be imported to an MDB. After typing the above statements and when i click the button preview i can see the data. But when i click the Columns.... i dont see anything there. I am unable to see any columns there. This is getting to my nerves because, when i use OLE DB as Destination i am unable ...Show All
SQL Server Issue Exporting Date format to a delimited file.
In exporting from a OLEDB connection to a flat file. In the originating table the field for DOB is in a varchar(10) format ex. 01/17/2007. The flat file connection destination is setup as a DT_STR. When you look at the OLEDB connection table preview you see it as 01/17/2007. When it is export to the delimited <CR><LF> <|> pipe delimited the format looks like this 01/17/2007 00:00:00. The issue would be resolved with a right ragged fixed width file. But this is not the requirement for the project format fot the file. I have tried delete and recreating the connections, and even tried doing a data conversation from the OLEDB connection to a char(10). Also, thourgh the transformation services with out any luck. On the flat ...Show All
.NET Development Update Database from Dataset / Datagrid (Mixing Access/Excel Input)
I've been struggling with this as well. A lot of the documentation has to do with SQL and I am working with OLEDB from an Access DB. I want to import the DB to a dataset, populate the datagrid with the dataset. Updates will then be made to the datagrid programatically. Once verified they'll then be updated back to the dataset, then to the DB. I'm having an issue with sending the changes from the datagrid to the dataset and in turn, the DB. I modified the above code slightly to work with my adapter/datagrid and it looks like I need to convert my Datagrid to a datatable before attempting to update the dataset. I get the following error with the code above: Unable to cast object of type 'System.Data.DataSet' to type 'System.Data.D ...Show All
Smart Device Development How to play wav through phone line?!
I try to make a answering machin for pocket pc 2003. So I need to play wav through line when incomming call happend. How should I play wave files through lines ! Correct. Not to mention, who in general needs an answering machine on a cell phone Carriers usually do not charge extra for voice mail anyway. And it works without using air time, not draining battery, not wasting any memory on device, provides better quality as voice never travels through the air and work even if your phone is off, in use or out of service area. I can see some value in, say, customized prompts but it’s not so big of a deal or carriers would be offering it for a fee long time ago as it costs almost nothing to implement and maintain. Note you can ...Show All
