pablog's Q&A profile
Visual C# wia runtime problem
i'm triyng to add reference to VS2005, wiaaut.dll, but when i run it the command : CommonDialogClass dia = new CommonDialogClass (); gives an error in runtime : " Retrieving the COM class factory for component with CLSID {850D1D11-70F3-4BE5-9A11-77AA6B2BB201} failed due to the following error: 80040154 ." does any one have an idea it's realy needed ASAP. thank you in advenced Omri. does any one know of a downloadable DVD Decoder (MPEG 2 Decoder) for windows XP or a website i can go to retrieve one from ...Show All
Visual C++ This code snippet makes no sense...
I've come across some code syntax I've never seen. It compiled, but I don't know how, or what it even does! I've been reading a book about DirectX, and in one of the examples, this little piece of code was present: D3DXMATRIX *D3DXMatrixIdentity(D3DXMATRIX *pout); "D3DXMATRIX" is a type, of course. And "D3DXMatrixIdentity" is a function, of course. Now I don't see how this works. Okay, to break it down, first we have a type, which is D3DXMATRIX, then we have the indirection-operator (which I assume is a pointer), and then we have a function (perhaps a call) with a new D3DXMATRIX (pointer) as it's only parameter. How the heck does this work It isn't just a regular function-call. It isn't a function-call that' ...Show All
SQL Server Implementing "preconditions"
I have about a half-dozen insertion tasks that depend on a condition: SQLServerProcessDate == OLEDBprocessDate. If the task executes early, old data gets inserted and needs to be backed out later on. (This happens about two-three times a month.) The jobs start at 8:00 PM, but on occasion processing runs late. In order to make the task intelligent enough to not insert old data, I've thought of a couple options: 1.) Separate scheduled job runs continuously, comparing process dates. When the dates match, it sends a message to the other jobs. Pro: less repetitive. Con: another scheduled job ! I'll have to learn the message queue task; a little bit complex; flood of database activity on message reception may slow system down 2.) Compare the dat ...Show All
Visual C++ error C2259 after upgrading to 2005.
Tried to compile a project after apparently succesfully converting to 2005 pro. Getting error C2259: 'SAXContentHandlerImpl' : cannot instantiate abstract class 'SAXContentHandlerImpl' is derived from 'MSXML2::ISAXContentHandler'. Have thay added new virtuals to this or what Any ideas Thanks. Hi, thanks for your reply. This is what I get: error C2259: 'MyContent' : cannot instantiate abstract class due to following members: 'HRESULT MSXML2::ISAXContentHandler::startPrefixMapping(unsigned short *,int,unsigned short *,int)' : is abstract c:\development\congressdbuni ...Show All
Visual Studio Express Editions editing sorted data
I hope this is easy to answer as it sounds to do I have a form with a listbox that shows a list of productlines, I use a bindingsource to filter the rows from a table with only the productlines selected in the listbox, what I'm trying to do is edit some columns of just the rows that was filtered with the bindingsource Any hints or help would be greatly appreciated....... OK, it took me awhile but I have figured out the answer to my own question, this really cool. The coding that I used is a bit lengthy, some of my varibles are used in other subs in the code, so If anyone would like to see my code, just send me and email at the address below, and I will send you a copy of my code. nightman28@hotmail.com If y ...Show All
.NET Development Configuration tool is not part of the .NET 2.0 runtime package.
The configuration tool is not part of the .NET 2.0 runtime package. When a user installs the .NET 2.0 runtime package IN ORDER TO RUN A PROGRAM written using .NET 2.0, that USER would need to use the configuration tool in order to trust the assembly that he is planning to run. The configuration tool should NOT be a part of the SDK; it should be part of the .NET 2.0 runtime package. I tried installing .Net 3.0 Runtime Package and still was not able to get configuration tool and i won't like a user to install 350+ MB of SDK to use my DLL. Can anyone suggest on how i can override this problem. I could not find any solution other than below. But at least it works. There is a way to create a ...Show All
Visual C# How to display the caret in textbox?
Hi, Here is a question. I create a textbox in a window form. However, i can't see any caret indicating in this textbox. I checked some websites which said i should set TabIndex = 0 to make caret display. I followed the suggestion, but it doesn't work. Please give me your advice. Thanks in advance. Sorry, say highlight for selected text in textbox. If i want to dispaly the highlight, does focus also need to be set Thanks ...Show All
Software Development for Windows Vista Problems with Rehosting work flow designer in ASP.NET example
Hi, I am trying to run the example from http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid,28601754-c305-4597-a0a6-48f32be1eddb.aspx . When I try to run the page AsAControl.aspx it doesn't show the designer on the screen. When checking logs on IIS, I found that I was gettign error 500. Running default.aspx doesn't show the workflow image. Any ideas Thanks. Hi Jon, I've downloaded and looked at your sample code for displaying the workflow image in a webpage. I'm not interested in providing editing capabilities in the web page, so my rehosting page simply needs to provide a readonly view of a workflow instance. I was able to implement a simple page that shows the workflow image a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GameComponents, Collections and Designer
Hi, I just provided some feedback about this behavior in GSE and I wondered if this was annoying only me... Basically, what I do is creating a GameComponent in a Game Project. To this GameComponent, I am adding a collection property (Can be anything from List<T>, Dictionary<TKey,TValue> or whatever other IList or IDictionary based one...). When I'm adding this GameComponent (after a full build of course) to the Game designer area, I then can see my collection as a property in the PropertyGrid. However, what feels strange about it, is that when I add an instance of any kind of object, it is created and added in the scope of the Game instance (in its InitializeComponent method). Is this normal behavior Thanks ...Show All
SQL Server Open report in new window: window.open method gives error
Hi, I am using SSRS Microsoft SQL Server Reporting Services Designers Version 9.00.1399.00. I want to open linked report in new window. I tried whats mentioned in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=240172&SiteID=1 but i get an error on Window.Open method. How do I solve the problem Thanks to display a linked report in a new window, right-click on the text box containing the link text and go to 'properties', then the navigation tab. In the 'jump to URL' field enter the full path to linked report on the report server as follows: http://<servername>/ReportServer/Pages/ReportViewer.aspx %2f<parent folder>%2f<name of linked report>&rs: ...Show All
SQL Server Copying database using "Copy Database" - still failing after SP2
I am struggling with the "Copy Database Wizard" in SQL Server 2005. I am used to working with DTS to copy data from one server to another, but with the new tools, I am having serious problems (in fact, it's unusable) 1. When copying a database using the "SQL Management Object" method, I always get errors concerning logins. If I select not to copy logins, I get errors "sp_grantdbaccess failed". If I do select to copy logins, the logins can't be created because the machine names are different (one the source machine, the login is called MACHINE1/mylogin, but on the destination machine, such a login cannot be created) 2. For small databases, I ALWAYS get the error "CREATE DATABASE failed. Primary file must be at least 3 MB to accommodat ...Show All
Smart Device Development PlatformNotSupportedException and the ResourceManager
Hi all, I hope this is the right forum for this kind of problem... My device is ETEN M600 with Mobile 5.0 and CF 2.0 SP1 (the following error was produced by the previous version of CF 2.0 as well) I'm trying to use the ResourceManager on the most common way - add an image to the resource tab of the project properties and assign it by code to a picturebox. this is the code: Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .PictureBox1.Image = My .Resources. Calculator End Sub when the auto-generated code comes to the Dim obj As Object = ResourceManager.GetObject( "Calculator" , resourceCulture) I get a PlatformNo ...Show All
Visual Studio Express Editions Thanks
Hello world, i've a problem with my application. I must store some information on a specific file in specific folder, i.e.: filename, format, extension. Intially i've the path of the folder that contains the files. How i can search file in a folder How i access file information and store they in a datatable Thanks. Ok, thanks, i've solved my problem. Now, i want create a table with inside image and their attributes (title, format). Those images are load from folder, and so, they are shown in table. How i can do it Thanks ...Show All
Smart Device Development auto complete for COmbo Box
hi all, i'm building a auto complete combo box, problem is i have alot of items in my combo box. Is there anyway to search through the combo box without looping through the whole thing. Say if you're looking for the last item, you don't need to loop through from item 1 to the end Here's my code : Public Function PointToComboItem(ByVal cboComboBox As ComboBox, ByVal strValueSearch As String) As Boolean Dim i As Integer Dim currentIndex As Integer If cboComboBox.SelectedIndex < 0 Then currentIndex = 0 Else currentIndex = cboComboBox.SelectedIndex Try If Trim(strValueSearch) = "" Then Exit Function For i = 0 To cboComboBox.Items.Count - 1 cboComboBox.SelectedIndex = i If Left(Trim(c ...Show All
Visual FoxPro Add Fields To Word
Hello out there: I'm trying to figure out a way to add a field to a Word document so when the document is called using Word Automation in Visual FoxPro, I can place a FoxPro table field value in it. I've seen it done before, I just can't figure out how to do it. Could someone out there help me Thanks. Bob, There are more than one ways. Word field, word mergefield, word form field, bookmark etc. Depends on what you're doing really. For a single document bookmarks seem to be easiest. For multiple documents mergefields sound to be more effective. If you would add fields yourself as a template then from VFP: oWord.Documents.Open( <fulpath to your doc> ) oWord.ActiveDocument.Variables("varname").Value = &quo ...Show All
