michaelp's Q&A profile
Visual Basic visual studio 2005 vb.net lesson concatenation
Greetings, I get the following error message for the lesson on concatenation: Error 1 '>' expected. Here is the code: I think I typed it exactly as it is in the lesson: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim aString As String = "Concatenating" Dim bString As String = "Without" Dim cString As String = "With" Dim dString As String = "Spaces" ' Displays "Concatenating Without Spaces". MsgBox(aString & bString & dString) <br /><span space= "preserve" >...</span<br /> ' ...Show All
Silverlight (formerly WPF/E) Use the Width/Height of parent object in XAML
Is there a way to make an object use the width and height of its parent without having to manually assign the same width and height values For instance, if you have a Canvas sized 100 x 100 and then you add a Rectangle to that Canvas, can you make the Rectangle automatically give itself the size 100 x 100 Maybe something like: <Canvas Width="100" Height = "100"> <Rectangle Stroke="Black" RadiusX="5" RadiusY="5" Width="*" Height="*"/> </Canvas> No, not in WPF/E. You will need a Grid or Flow panel that the full WPF has. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server Is there a way to alphabetically select rows from table?
I have SQL mobile database. Due to the size and speed, I would like to select only rows that start with a certain set of alphabets. Is there a way to do this I just don't want to query everything and use only a small number of rows since the recources on the device is limited. Thanks. Like '[A-F]' More on LIKE - http://msdn2.microsoft.com/en-us/library/ms179859.aspx ...Show All
Microsoft ISV Community Center Forums 1004 - Application-Defined or Object-Defined Error - Help
I have an Excel workbook with 8 Sheets on it. On Sheet6 there are a number of named ranges. One of the ranges is: BreakTotal and the range is defined as: AuxTimesConv!$F$5:$F$100 where AuxTimeConv is the sheet name. On Sheet1 (Named: Formatting) there is a command button. Private Sub CommandButton1_Click() On Error GoTo 10 'Lets start with the Breaks Dim c As Range, r As Range Dim x As Integer Dim a As String Dim n As String x = 1 Set r = Range("BreakTotal") For Each c In r If c.Value = 0 Then Else a = c.Value n = Worksheets(Sheet6).Range("A" & c.Row) MsgBox n End If Next c 10 MsgBox Err.Description & Chr$(13) & Err.Source, ...Show All
Software Development for Windows Vista sdk sample - boot image problems
Using the sdk sample app: "C:\Program Files\Microsoft SDKs\Windows\v1.0\samples\winbase\storage\optical\imapi2sample" I tried taking the image from a boot cd (known to work). Then extracting the boot image. Then burning the data from the disc (temporarily copied to the hard drive) along with the boot image to create a new boot cdr. It does burn the disc (in separate attempts, I used both bbie and ultraiso to create the boot images) - but the disc will not boot a computer :-| The computer complains with: "CDBOOT: Couldn't find NTloader" Shouldn't this work I already know the boot image is fine. (I can use it in other ways to make boot CDs and I have also used v ...Show All
Visual C# Why is this not valid!!!???
I have a question that nobody in my department is able to answer. It came to me while using the Class Designer to stub out our data access layer of our application. The question is: If I create an abstract worker class as such: public abstract class MyClass { public abstract void MyMethod( DataEntityAbstract Entity); } Then try the following in its derived class: public class ThisClass : MyClass { // ThieDataEntity is derived from DataEntityAbstract class public override void MyMethod( ThisDataEntity Entity) { // Do Something } } Visual Studio 2005 will throw a compilation error. Why I mean, polymorph ...Show All
Visual C++ A Couple Template Questions
Hi folks, I have a couple questions about templates. I'm using Visual C++ 2005 Express Edition 8.0.50727.762. Is there a reason why this compiles fine: ------------------------------------------------ template <typename T, int I> struct C1 {}; template <template <typename T, int I> class C1> struct C2 {}; int main (int argc, char * argv[]) { C2<C1> TEST; return 0; } ------------------------------------------------ But this does not (replaced class C1 with typename C1): ------------------------------------------------ template <typename T, int I> struct C1 {}; template <template <typename T, int I> typename C1> struct C2 {}; int main (int argc, char * argv[]) { C2&l ...Show All
SQL Server Look up transformation
Hi, we are trying to implement this logic in SSIS data flow task We have 2 datasets Dataset 1 has Emplid and Actiondate. (from Oracle Database instance I) Dataset 2 has Emplid, ProjectID ,Project Start_Date ,Project_End_Date (from Oracle Database instance II) Logic is select ProjectID from Dataset 2 where Dataset 1.Emplid = Dataset 2.Emplid and Dataset 1.Actiondate between Dataset 2.Project Start_Date and Dataset 2.Project_End_Date. for first condition we have used merge join between 2 datasets. for second condition we are trying to use look up transformation... it did'nt help... if i want to write an query where do i write that please help Thanks in Adv ...Show All
Smart Device Development Can i create a user control for pda?
Because i have made an userControl for pda in C# but when I deploy my project I have this error: Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\MyPrincipalProyect\system.windows.forms.dll'. Deployment and/or registration failed with error: 0x80070070. There is not enough space on the disk. Device Connectivity Component If i take off Using system.windows.forms; i can't deploy OsoPolar wrote: pocket pc 2003 what functionality in the system.windows.forms namespace are you trying to use are you aware of, and familiar with, microsoft.windowsmobile.forms desktop forms aren't deployed to the PDA, due to restrictions i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. World to screen conversion.
Hi. Something weird when trying to covert world to screen coordinates. Vector3 res = Vector3.Transform(worldPoint, Camera.View * Projection); I get the result vector with values greater than 1. Aren't the values post projection supposed to be clamped Both the view and projection matrices are valid (and are used to display on screen). Cheers I know it must be something stupid on my part but... Vector3 p = new Vector3(0, 10, -1500); Matrix proj = Matrix.CreatePerspectiveFieldOfView((float)Math.PI / 4, 800 / 600, 5f, 3000f); Matrix view = Matrix.CreateLookAt(new Vector3(0, 0, 20), Vector3.Zero, Vector3.Up); res = Vector3.Transform(p, view); res = Vector3.Transform(res , proj); What is res supposed to be Isn't it supposed to be [0, 1] ...Show All
SQL Server ROLAP and partitioning questions
I have done all my dev work on a new AS database and now I need to start tuning processing/partitioning for deployment in production. The database needs to be able to drill down to leaf level and so I have implemented a fact dimension to do so. Testing with this dimension as MOLAP yields a 2.8 GB for 20 days of data partitioned by day. With the same partition scheme, if I change the dimension to ROLAP, the database goes down to 124 MB. With MOLAP, after the cube is processed, it opens nearly immediately in browse or in Proclarity by opening the cube. Good performance, but too big. With ROLAP, it has been "Loading..." for over an hour. Good size, but terrible performance. Is this normal behavior My guess is that since it is ...Show All
Visual Studio Express Editions media time calculation
Hi need the maths calculation for this: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If OpenFileDialog1.ShowDialog Then mplayer1.URL = OpenFileDialog1.FileName Timer1.Enabled = True Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = mplayer1.currentMedia.duration But It displays the length as 345.232 for example. how would I format this as 3:00 for example ok not too much luck unfortunately. I thought the DurationUnitChange event would work but not quite. Well the current idea that is present is to do as ...Show All
.NET Development Help with Raw Socket
Are there any example of how to construct a raw icmp packet Here is the format of ICMP Packet: Type 1 byte Byte Code 1 byte Byte Checksum 2 bytes Unsigned 16-bit integer Message multibyte Byte array So seeing this you can write something like this: class ICMPPacket { private byte type; privtae byte code; privtae UInt16 checkSum; private int messageSize; pr ...Show All
Visual C++ Program just quits
I'm am just running simple programs right now. For example the hello world code, but i never get to see if it works or not. After it compiles the black window comes up then it just quits. If i put in another command after like cin then the window stays up and i can see the hello world. What can I do to fix this. Little_Dice wrote: If i put std::cin.get(); at the begining of my program it waits to run the program until i hit enter, but when I put it at the end it just ignores it and quits anyway. Make sure you place the cin.get() prior to a return statement, or similar flow of control. If neccessary, place a breakpoint at the cin.get()-call and see if it's even executed. ...Show All
SQL Server Restore SQL Server Express Databases after a Disaster Recovery
Hello, I would like to restore SQL Server Express and its databases from a tape backup to the same server. This is a disaster recovery senario. I backed up the Master, Model, MSDB and my own test database using SQLCMD scripts. I have no problem restoring these using task manager on the server before the disaster recovery. However, in my real disaster recovery testing, When the server is restored by tape drive (HP one button disaster recovery), I try to run my SQLCMD restore scripts in task manager and I cannot connect to the sql server. Also I cannot connect with Management studio. I have recieved the following error in event viewer. ---------------------------------------------------------------- Event Type: Error Event Sou ...Show All
