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

Software Development Network >> Tom bernard's Q&A profile

Tom bernard

Member List

amnonman
GazCoder
BingoBash
Jim Holloway
moo360
J.A.J.
foxystar
BPAndy
kendy
XNA Rockstar
Chris.Stewart
mrmckeb
Claudiu Chiorean
Anand Raman - MSFT
Alastair Q
gallarock
MyoZaw
Sequel2k5
beckers
Christian Schiedermeier
Only Title

Tom bernard's Q&A profile

  • Visual C++ unexpected behavior with find_first_of

    I require specifically formatted text for some output logs.  One requirement is no padding on exponent fields ( E-002 vs. E-02).  I simply call find_first_of("E-0"), and use the resultant index to paste together two substrings.  I have found what seems to be random behavior with find_first_of.  Consider the following program that illustrates it.  I generate some random numbers and do my parsing and show some output: int _tmain(int argc, _TCHAR* argv[]) {   srand( time(NULL) );   for( int i = 0; i < 10; ++i ) {     float value = (float) rand() / (RAND_MAX * 10);     std::stringstream ss;     ss << std::scientific << std::uppercase;   &nb ...Show All

  • Visual C# How to know Is Serializable?

    How can I know whether a type(e.g. BindingList<>) is Serializable, both in design time and run time Thanks Kennon2005 wrote: You means the second method can test for types which implement ISerializable, not those using attribute Thanks. yes if the type impelement the ISerializable interface then if(yourtype is ISerializable) will return true ...Show All

  • .NET Development Access DataBase from two Computers at same time

    I have a simple VB program that access a SQL '05 Database. I can access the database fine from each computer individually, but when both programs are running and I try to update the database from the machine that contains the database I get a concurrency violation: the UpdateCommand affected 0 of the expected1 records. How do I get the database to accept Updates from both programs I have restrict access set to multi_user. I also noticed that if one application updates a record the second doesn't reflect the new data. That seems correct because i'm loading the data into a dataset which only holds the original data. Does anyone know of an example or a quick explaination of how to let the second application running know that the datab ...Show All

  • Windows Forms Open winforms with Async threads

    Hi, On my application 13 forms, that do something on load (each form is doing something else), and I need to open them all on App load (I'm not showing them, just create instance): <Code=c#> form1 frmOne = new form1; frmOne.LoadData; form2 frmTwo = new form2; frmTwo.LoadData; </Code> I want to load all of them at the same time (each in seperate thread). How can I do this The splash screen will be the main UI when being displayed. Your real forms will only be loaded after the splash is gone. It's still sync. call. I don't see any advantage of using splash because your forms cannot be loaded from background per Peter's explanataion. Correct me if I'm wrong. Thanks, Alan ...Show All

  • SQL Server cube data

    after i process a cube, where does the cube(aggregrated) data reside There is a property of the Analysis Server called DataDir which points to something like C:\Program Files\Microsof SQL Server\MSSQL.<x>\OLAP\Data, but the exact path depends on how it was installed, if you right click on your server from SSMS, you can open up the properties window to confirm the exact location. But It depends what type of cube we are talking about... If it is a MOLAP cube, it is all stored in DataDir. If it is a HOLAP cube the aggregations are stored in DataDir, but the leaf level details are left in the relational source. If it is a ROLAP cube all the data is stored in the relational databas ...Show All

  • Visual Basic Diff Understanding Debug

    Hi, I found something difficult to understand something in debug process. after i press F5 or Run I could see somany dll's and other supporting files are loading. Sometimes even the yahoo messenger Dll also loading. can anyone please explain the process. -regards GRk In a Nutshell....when ever you debug/run your project the IDE auto loads all referenced assemblies along with your project...for more information about "Building, Debugging, and Testing" see the following: http://msdn2.microsoft.com/en-us/library/d8k88a0k.aspx ...Show All

  • SQL Server Linking to EXCEL Database Sheet using SQL 2005 Express

    I'm followed instructions to create a linked server to an EXCEL document that has data in 1 sheet. Used the instructions from http://support.microsoft.com/kb/306397/EN-US/ Was planning to import data using a linked server as describe in http://support.microsoft.com/kb/Q321686 "How to import data from EXCEL to SQL Server (using linked servers). All went well until... The EXCEL document shows up under linked servers correctly, but there were no tables. I'm using the following: Server: Microsoft SQL Server 2000 SQL Server Managerment Studio (2005) Does anyone have Idea what I may do to correct this problem I 'm using this because I didn't see any other way to import Excel into SQL Database using SMO 2005. SM ...Show All

  • Visual Studio Express Editions Help! project templates.

    right so im tryinf to leanr how to code client server applications.but i cant seem to create asp.net applications only windows applications i clivk on the search msdn for additional templates and it doenst work. i found one template on MSDN it was a c#.net template! dammit does anyone know where i can donwload an appliaction template from will Visual Basic Express Limitations over other versions of Visual Basic http://msdn2.microsoft.com/en-us/library/b4z62wxz.aspx If you want a single development environment to do both windows and web applications - your going to have to purchase a copy of VB / VS. If you want to just do web development - use Visual Web Developer Express. The Express products are limited to the types of appli ...Show All

  • Visual Studio View problem in MSDN 2005

    hi there MSDN 2005 has a view problem when i search in the first time and choose the content type i would like to search in and the Technology the all components of Technology and Content type are appear but in the all the next time when I just scroll down only the components before the results page appear and the rest are hidden in spite of i scroll up again as the following image http://khiat.jeeran.com/msdnProblem.jpg help me in this plz bye Hi khiat - if this issue is still occuring, please reopen this thread. thanks, Ken Ken Watson - MSFT ...Show All

  • Visual Studio Express Editions Calculation not working

    HI Very very new to vb express i have a database which you input cost and del details to give you a invoice total the vat field seem to not work for some reason the line of code is If IsNumeric(CostTextBox.Text) And IsNumeric(Del_ChargeTextBox.Text) And IsNumeric(QtrTextBox.Text) Then TotalTextBox.Text = CInt (CostTextBox.Text) * CInt (QtrTextBox.Text) + CInt (Del_ChargeTextBox.Text) / 17.5 * 100 End If if i input 2 x 50 + 10 / 17.5 * 100 the totaltextbox say 100 for some reason Jason You have to realize that the order of operation is from left to right with these rankings: 1 - parantheses/brackets 2 - exponentiations / roots 3 - multipl ...Show All

  • Visual Basic Is a ColorMatrix the fastest way to edit bitmaps? (LockBits)

    I've made a function that makes bitmaps transparent via a ColorMatrix but now I'm wondering if that is truly the fastest way, because I can see that it takes a while (not that much, but enough to notice) to update the picture when I use a slider to adjust the transparency. Is there perhaps an imageformat that takes an alpha-value for the whole picture instead of per pixel, so that I don't have to use a colormatrix to go through every pixel to update the transparency Edit1: for example, setting the opacity of a form updates instantly, so how can I change a bitmap's transparency that fast in managed code - or is that just asking too much of VB Edit2: LockBits seems to promise better speeds - examples are welcome :) Edit3: okay, I tried b ...Show All

  • SQL Server How to check is SSAS really clear the cache

    Hi,Does anyone know how to check if SSAS 2005 really clear the cache, after service restart or I run a ClearCache MDX scripts Thanks.J Lim Well, after service restart cache is obviously cleared, since the entire process was gone - so was all of its memory. If you are in doubt whether ClearCache really does it job, you can run simple MDX query to the cube - i.e. SELECT Measures.DefaultMember ON 0 FROM Cube, and watch profiler events - you will see that the data is coming from the disk. You can find some information about what events to watch and how to interpret them here: http://www.sqljunkies.com/WebLog/mosha/archive/2006/01/05/cache_prefetching.aspx HTH, Mosha ( http://www.mosha.com/msolap ) ...Show All

  • Visual Basic Printing in VB.NET

    Does anyone know how to print i vb I have information some textbox on a form which i want to send to the printer. It still dose not print. I'm i doing something wrong I replaced the line at the buttom that said "line = fileToPrint.ReadLine()" with " line = textToPrint.ToString" I also tried it without that line and it prints two blank pages. Any thoughts Thanks!! Option Strict On Imports System.IO Public Class Form1 Private checkPrint As Integer ' Dim fileToPrint As System.IO.StreamReader Dim printFont As System.Drawing.Font Dim textToPrint As String Private Sub PrintButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles _ PrintButton.Click Dim PrintPath As String = System.Enviro ...Show All

  • Visual Studio How to catch .net 2003/5 solution tree drag and drop event

    I am using EnvDTE to build an addin for .net 2003/2005. I am trying to catch the drag and drop event of the solution tree for both file items and folders. From the EnvDTE module, I can't find anything which is really useful to do this. Also, found that IVsHierarchyDropDataTarget and IVsHierarchyDropDataSource interfaces in the VSIP provide support for drag and drop, but I have no idea to hook them up with the IDE's solution tree so that we could catch the event. Please help on this. Thanks very much. Ivan Hi Ivan, This particular interface is implemented by the hierarchy implementor. Basically, the project hierarchy consists of a number of interfaces, like IVsUIHierarchy, IOleCommandTarget, IV ...Show All

  • .NET Development Encrypted File + Append Encrypted Data - Do decrypt whole file

    Hi i've been having lots of headache with this, here's my scenario 1) i'm using log4net which i modified to have an EncryptedRollingFileAppender 2) it encrypts the data thru a CryptoStream and writes out the output to a file as binary 3) When the app is stopped, log4net is stopped and file is closed. When started again it will append the data in a similar fashion as 3. 4) I stop the app a 2nd time and now try to decrypt the entire log file. It will give me garbled data in between when it was stopped in 3 and started again. Cryptography used: Rijndael with fixed IV using CBC. I've tried all CipherBlockModes that Rijndael allows to no avail, even ECB still produces rubbish in between but the entire text is there, probably d ...Show All

©2008 Software Development Network