JIM.H.'s Q&A profile
Silverlight (formerly WPF/E) WPF/E - Embedded JavaScript/HTML
Hello, Is there a way to embed JavaScript or HTML within a .xaml file I played around with CDATA and didn't have any luck. If not, could it be possible to add a parameter to the WPF/E container object that allows developers to point to a custom .js file Very good question... The problem is, I'm attempting to place a WPF/E control on a friend's web page. The trick is, his particular "host" does not allow for JavaScript. It does however allow for <object> tags. My thought was to host the WPF/E control on my page place a url pointing to my site and just run the WPF/E control from my site. While I can successfully access the .xaml file, I cannot load the .js associated with it. Th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Issue with HowTo: Rotate and Move a Camera?
I'm trying to work on figuring out some simple camera manipulation and have been going through the information on the How To: Rotate and Move a Camera. At the bottom of the help file is what appears to be the complete code needed to run the example. However, this code does not compile when pasted in a new project; the method FrameRender() refers to an undefined method called UpdateCamera(). Is this method something missing from the example Hi Shane, Sorry about the confusion, the UpdateCamera method was unintentionally stripped from the source code and will be in the next release. The UpdateCamera method is almost identical to the UpdateCameraFirstPerson method without an offset from the avatar's position. I've copied the ...Show All
SQL Server Test linked server connection SQL 2000
I’m trying to resolve an issue and wonder if anybody has ever run into and possibly had a resolution for. I wrote a custom conflict resolvers to manage data at the column level. What I needed to do to achieve this was to use a remote query to the mobile subscriber that raised the conflict. I’m trying to put in a rule that if there are any issues connecting to the subscriber I want to use the default conflict resolver and move forward. Here is my issue, it seems there is no way I can test a connection without getting a critical error that I can’t seem to trap. Example I was trying to do Select * from [linkedserver].[database].[dbo].[incident] If @@error <> 0 use default conflict resolver ...Show All
.NET Development Request clarification of simple code mechanics in GZipStream
I copied the following code segment out of an instructional manual but how it is working is slightly unclear, could someone explain 1 static void Main( string [] args) 2 { 3 FileStream sourceFile = File .OpenRead( @"C:\boot.ini" ); 4 FileStream destFile = File .Create( @"C:\boot.bak.gz" ); 5 GZipStream compStream = new GZipStream (destFile, CompressionMode .Compress); 6 int theByte = sourceFile.ReadByte(); 7 while (theByte != -1) 8 { 9 compStream.WriteByte(( byte )theByte); 10 theByte = sourceFile.ReadByte(); 11 } the three streams (2 fileStreams 'sourceFile' 'destFile' ) and a compression stream (GZipStream). Information is pulled one byte at a tim ...Show All
Visual FoxPro creating shortcut on desktop
Hello everyone, Can i use foxpro programming to create shortcut to an exe file on desktop thank u in advance You can do it using WSH as in these examples from the Fox Wiki: To create a shortcut in the current directory: oWsh = CreateObject("WScript.Shell") oLink = oWsh.CreateShortcut("FoxWiki Web Site.URL") && The .URL is required oLink.TargetPath = "http://fox.wikis.com" oLink.Save() To create a shortcut in the Desktop: oWsh = CreateObject("WScript.Shell") cDesktopDir = oWsh.SpecialFolders("Desktop") oLnk = oWsh.CreateShortcut(cDesktopDir + "\\Shortcut to Notepad.lnk") oLnk.TargetPath = oWsh.ExpandEnvironmentStrings("%windir%") + "\notepad.exe" oLnk.Save() See more: http ...Show All
Architecture Application design challenge
Hi.. This is my first post on here, so I hope I hit the sweet spot by posting it here. I've been given an interesting challenge and I can't seem to come up with a grand solution, so I could do with some help. The idea is that I am to design an application for a language center. So far the center consists of two physical locations, out of which one would be considered both learning center as well as "HQ". What they want is a fairly simple application that enables them to enter student registration, classes (no planning involved) and payments made/due. Each location has their own administration; HQ is to be able to look into the data of every location. I came up with several approaches (in terms of which language to develo ...Show All
SQL Server table items custom sort
hello i am currently trying to port a "Business Objects" report to SQL Server Reporting Services. in B.O., there is a possibility to define the order of the table values by previewing the table values and moving them up or down. Example : the dataset contains data for 3 items, so in the Custom Sort window, I will see these 3 items and I can order them by moving them up or down in a listbox. is this possible to do in Reporting Services It shouldn't be that difficult to add another soda type and sorted the way they want it to. But yes, they will have to change the query. Unless you can add a column to your 'brand' table that keeps the sort order (or create a new table tha ...Show All
SQL Server how to create a sql database in the server?
Hi, I want to create a new database in the server using SQL express,not in the local machine. so what can I do Thank you thank you. but I want to know where the location is after performing this statement: CREATE DATABASE dbName. in the server Do I need to connect to the server using express first ...Show All
Visual Basic upgraded os, now can not find .dll
I work for a company who just recently updated their OS from Windows 95/ 98 to xp. The most important program they run was custom made and worked fine in the older OS. When it is run on XP it has an error before it even opens saying "Run-time error: Dxinit.dll not found" . I have talked to the original programmer who said that .dll was custom made and needed to be upgraded already to work on 98. My question is this, how can I get the new OS to see this .dll and run the program I have the VB project files and all the info for installing and compiling. It may run. It's not a driver. But here's the thing. win/95 and win 98 had a very different kernel than does XP. Also the the file stru ...Show All
Windows Forms In Multi threaded Application, OpenFileDialog-> My Computer tree not showing Drives available
I developed Multi threaded application ([MTATrhead]). And am using OpenFileDialog, when clicked on My Computer (from left wokspace) it is not showing the Drives available. I found its a bug in COM Interoperability (Pls see link http://discuss.develop.com/archives/wa.exe A2=ind0509d&L=advanced-dotnet&T=0&F=&S=&P=6681 ) Is there any Work Around Thanks Santosh Why would you ever make the UI thread multi-threaded anyway Windows does not support multiple threads interacting with the UI. All UI interaction must be serialized down to the creating thread's message queue. If you don't follow this rule then bad things happen at peculiar times. Fortunately in VS2005 if you are r ...Show All
SQL Server Create Time dimension Year, Week, day problem
Hi, I have a problem when creation a Time dimension Year, Week, day , The week does not start on the correct date eg. Week 42-2006 should start on 16 th. october and end on 22 th october, but in this case it starts on the 15th october and ends on the 21 october. So what happens is that it starts 1 day before it actually should. This is my Time Dimension: DatePart(year,"dbo"."fCapacityLedgerEntry"."Posting Date") DatePart(week,"dbo"."fCapacityLedgerEntry"."Posting Date") 'Week ' + convert(CHAR, DateName(week, "dbo"."fCapacityLedgerEntry"."Posting Date")) convert(CHAR,"dbo"."fCapacityLedgerEntry"."Posting Date&quo ...Show All
.NET Development syntax error when executing "desc Customer" using Oracle and C#
I'm writing some code to play with an oracle server. I can connect to the server okay. I have tried to execute commands like "select * from tab" and "select * from customer" and it worked fine until when I tried to retrieve table information by "desc customer" and I got an exception saying that there was syntax error (also tried with a ';' at the end). I'm sure "desc customer" works because I tested it in sql*plus. My code is like this: oraCommand = new OracleCommand("desc customer", myConnection); dbReader = oraCommand.ExecuteReader(); while (dbReader.Read()) output dbReader.GetString(0); Thank you. Sorry for the confusion. This is the code that got the syntax error. It works if if I have this: oraCommand = new OracleCommand("select * fr ...Show All
Visual C++ Intellisense for source spread out in different folders
Hello, Does anyone know a way of making intellisense work for source files in different folders Eg: In folder 'foo', I have FooClass.cc In folder 'bar', I have BarClass.cc I make a new empty project in VC++ and add the 2 source files. The problem is that intellisense will not work in BarClass for references to FooClass objects (and vice versa), but if I put them in the same folder, intellisense would work. (They need to be in different folders because I'm building them in linux using a make file). My question is pretty much, is there a way to specify to VC++ the source folders that I am using. (I'm using Visual C++ 2005 Express Edition) Thanks in advance. Yes both source and header ...Show All
Visual Studio Express Editions concerning media player
renee where do I post pause button code ok..so as I was saying I thought I would like to be able to make the current song repeat.....if you like a song you may wish to replay it a couple of times....... but the best I can do is this....which restarts the song, . if you catch it before the next song starts can you help Private Sub btback_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btback.Click WMP.Ctlcontrols.stop() tmr.Start() ProgressBar.Value = 0 btpause.Text = "pause" btpause.ForeColor = Color.Beige WMP.Ctlcontrols.play() End Sub ...Show All
Smart Device Development SIP Icon Hides
Hi, all I am facing a strange problem regarding the SIP Button in WM 5.0 device, the SIP icon(Button) hides from the CommandBar after a mesage box is displayed. And after opening another form or change the Display mode, SIP icon is visible again. This is happening at both position of SIP icon(centre as well as on the right corner). If anybody else is facing this problem or has the solution for this do reply. Thanks. regards Amish Hi Jeff, Here's the list of devices that I and friends have tested and seen this happen on, as you can see it ranges from WM 2003 (including Second Ed.) to WM 5. All of these had CF 2 SP 1 installed. iPaq 5550 - WM 2003 Asus A730W - WM 2003 SE Qtek 2020i - ...Show All
