pradeepz's Q&A profile
Visual Basic Convert a long integer (in seconds 10^-7) to date/time
I am reading the IE Cache index, which contains dates/times stored as long integers. These are times relative to 0:00 1/1/1601 How do I convert these long integers to standard dates, allowing for time zones and daylight saving (without lots of tedious arithmetic). There must be a way, as W32TM can do it 10^-7 seconds are 100 ns = 1 tick. You can use the TimeSpan class to represent that time and use DateTime.Add to calculate the result. Public Function GetCacheDate(Ticks As Long ) As DateTime Dim t As New TimeSpan(Ticks) Return New DateTime(160 ...Show All
Windows Forms New idea!
Hello, can we have WMV Files in place of JPEG in the upgraded or new application. the whole idea is to have a content management of video files on the pocket pc. a. like downloading the files from the server and storing it in pocket pc b. Creating a playlist form the application c. and preference settings for the playlist can anyone suggest me to use& ...Show All
SQL Server Transactional replication can not complete distributing and retry from first again
Hi every body I use Sql server 2000 .and dial up comunication with weake connection. i have around 4700 records for distribution,the distribution agent starts and at the same time I select count(*) from Destination table with (nolock). after distributing 3700 records it retry again from record one and it distribute agai thanks for your kindness It's most likely caused by timeout of distribution agent since you're on a slow network link. Can you increase -QueryTimeOut -LoginTimeOut value for distribution agent You can do so by visiting Distribution Agent job property, click on Steps tab, se ...Show All
.NET Development SMTP and gmail using SSL time out while sending file
I use the following code to send and email with an attachment it works when sending a small attachment at 300 MB but when trying to send 4-5 MB file et times out. so my question is, doanybody knows why public void SendEmailSsl( MyMailMessage msg) { try { System.Net.Mail. MailMessage mm = new System.Net.Mail. MailMessage (); mm.From = new System.Net.Mail. MailAddress (msg.EmailFrom); mm.Body = msg.EmailMessage; mm.Subject = msg.EmailSubject; mm.IsBodyHtml = false ; foreach ( object o in msg.EmailTo) { mm.To.Add( new System.Net.Mail. MailAddress (( string )o)); } foreac ...Show All
Visual Basic Question in VB.NET database programming
Hi, I need to know couple of questions in database programming with VB.NET which are listed below: How to locate records In Borland Delphi I do something as: Table.Locate('<Which Field to Find', 'Values to find', []<Options>]); and hope something similar would b there in VB.NET I need to create a Lookup Dialog Form. How can it be done in VB.NET to pass values from one form to antoher Looking forward for your replies. Regards, OK - to answer them may require some more infomation from you. 1. To locate records, you can use the a table adapter and provide a SQL select command which will retrieve the ...Show All
Visual Studio Team System Work Item Query Question - State Field Value dropdown list
While creating some new work item queries and using the State Field as part of the criteria, I have noticed that the Value list for State contains values in the dropdown list that I do not want. I have looked through all of the Work Item Type xml definitions for State and Transition and cannot find where the incorrect values showing up in the work item query are being pulled from. Can anyone point me to where the values located in the work item query State Field dropdown list are defined Thanks. Allowed values in the query builder aren't scoped to a work item type - they combine together all ...Show All
Visual C++ API documentation
I've just downloaded Visual C++ Express Edition. I have a couple of questions. 1) what is the difference between ".h" files and "lib" files 2) How do I find reference for the various classes that come with VC++ Express (Like the Java API documentation for the classes that come with the language Thanks in advance. oh i found the answer for the 2nd question. All the reference that is required is found in the Online help feature of VC++ Express Edition. Difference between ".h" files and "lib" files anyone ...Show All
Visual C# Transfer the value of a text box from one form to another.
I want to be able to have the value of the text box in one form populate a text box in a second form when it opens. Can anyone help me with this. This is a solution but I'll encourage you to provide a property and return the string of the text instead making the control a public field. The reason for this is improving the encapsulation of your code. Good luck, ...Show All
SQL Server sql autoincrement
in mysql the primary key has the possibility tu autoincrement herself can it be done in MS SQL how You can use the IDENTITY_INSERT setting to temporary 'override' the IDENTITY and allow existing values to be inserted into the table. However, DUPLICATES will NOT be allowed and the import process will fail if there are any imported rows that would cause a duplicate value. Refer to Books Online, Topic: IDENTITY_INSERT Usage: SET IDENTITY_INSERT ON INSERT INTO MyTable (MyColumn) SELECT MyOtherColumn FROM MyOtherTable SET IDENTITY_INSERT OFF ...Show All
SQL Server Deploy Reporting service 2005
Hi, I used SQL server 2000 and SQL reporting service 2005. I have created some reports. 1. when i deploy my reports, it show deploy success, but when i browse my reports on the web it doesn't appear like the one that i have seen in SQL reporting service web cast. 2. I want to create take my reports to be run by another computer that have only SQL server 2000, what should i do Thanks a lot for our help, Chear ...Show All
Visual C++ Error C4430: missing type specifier
I am trying to compile a program with the VS .NET 2005 Beta 2 command-line C++ compiler (cl.exe). The program uses MFC header files from the latest Microsoft Platform SDK. The compiler successfully includes all the correct headers, but returns the following error messages: C:\Program Files\Microsoft Platform SDK\Include\mfc\afxwin1.inl(1034) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft Platform SDK\Include\mfc\afxwin1.inl(1036) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int I checked the lines of code m ...Show All
Windows Forms Overriding ControlCollection.Add()
I have a control that hosts other controls. I'd like to manipulate the control before it is added to the Controls collection but the only hook I see is through OnControlAdded which is too late in the process (control is in the collection, layout performed, etc). There is no OnControlAdding that would allow me to preprocess the control being added. It also does not appear possible to override ControlCollection.Add() since the Controls property on my control only has a get accessor. Am I missing something Is there a hook that will allow me to manipulate the control before it is actually added to my collection collection Thanks, Ray ...Show All
Visual C++ IDE keeps changing the encoding of the vcproj file
We are all running the July CPT release. All machines are running US English but runing XP PRO, WIN2K or WIN2K3 Alan Also, to understand the problem better: - are all your projects saved with the same code-page are they all utf8 or are they mixed - what action are you performing that causes the .vcproj files to get checked out modifying a solution by adding or removing a project or saving the solution Thanks, ...Show All
Visual C++ problem with CComBSTR::AppendBSTR, do not work properly
in my program, i have some codes like this void fun1(BSTR bstr) { CComBSTR combstr; combstr.appendbstr("something"); combstr.appendbstr(bstr);// <-- cant append // but if i use, combstr.addend(bstr), it works well } why AppendBSTR cant append a BSTR According to docs, doing such a thing is expected to work. Perhaps something else is wrong with your code; could you post your exact code http://msdn2.microsoft.com/en-US/library/d2kbdsy1.aspx ...Show All
Visual Studio Express Editions How to program a log in form?
Dear all, I am new in using Visual Basic. However I've discover the excitement of programming in it! Especially using Microsoft Visual Studio 2005 Express Edition. I wanted to develop a Staff Attendance System where I need staffs to log-in! When user press [Submit] button after entering UserID and Password , System will verify UserID and Password with database . If UserID and Password match, Date and Time-in will be stored into another table. I have the whole programming line.. but do not know how to quate it in Visual Basic. The idea is as follow : ( Action when user click Submit button after filling their UserID an ...Show All
