Branko_Rieck's Q&A profile
Windows Forms Having to disable Virus Scan to use an application that has smpt email
I have an application with email code in it. the code creates an csv file attaches it to an email then sends it to a supplier. loop next supplier...... my problem is that my virus scann is blocking some how error the message could not be sent to the smtp server. the transport error code was 0x800ccc15. the server response was not available Any help would be great I’m afraid that you are going to have to be much more specific on the problem you are having as you’ve given only the what of what the end problem is but left out the context of where this is happening and what you are doing to see this problem. Without more information there is little chance of anyone being able to help. ...Show All
Visual Basic Displaying hexadecimal data as float. What sort of result are you after?
My setup is: SQL Server 2005, Visual Web Developer 2005 Express (VB) I have a SQL Server database that gets a large C++ data structure that contains longs and floats serialized as an ASCII string where all bytes were converted to hex. The bytes have to be reversed because of endieness. I have been tasked with creating a page to dispaly the parsed data. I know that I can extract the data in groups of 4 (for the longs) and 8 (for the floats). I can convert the hex to decimal, but it is converting to a very large integer type value instead of the expected decimal. I have tried to search the web, but have found very little to aid. The closest used a function similar to the C++ memcpy. This did not seem to be available in my case. A sample of t ...Show All
Visual Studio 2008 (Pre-release) How to register name in a template ?
I am wondering how I can register a name in a template. The situation is following: class A : Control { // ..... private void func() { Rectangle rect = new Rectangle ( ); rect.Height = 10; rect.Width = 10; rect.Name = "rect" ; Template.RegisterName( rect.Name, rect ); } } Class A has its own template... so, Template.FindName( rect.Name, this ) always returns null, so the element can't be referenced by storyboards, for example, from xaml. Why Or is there any other way to register an element in a template I also tried to set a new namescope, but it is impossible, because FrameworkTemplate does not derive from DependencyObject and NameScope.SetNameScope requires DependencyObje ...Show All
Windows Forms exception during axhost.dispose
when I create an activeX control at runtime which in fact is a .net control exposed as a com object, the hosting axhost class gets the following exception during its dispose: The object's type must be __ComObject or derived from __ComObject. Parameter name: o When the activeX control is created by other means (e.g. visual basic 6.0) the dispose works fine. The control is created by calling new AxHost(CLSID_OF_THE_CONTROL) Is the .net control missing any necessary interface implementation to work with axhost Thats not the desired solution, as I want to be in principle independent of the activeX control. The interfaces shall be retrieved using reflection, not using a wrapper. On the o ...Show All
Smart Device Development Print reports in .Net Framework
I need to print a simple report from Pocket Pc to Bluetooth printer. I'm using VS2003, SQL Server CE and Windows Mobile 2003 . Tanks There's no support for either printing or report creation. You would need to generate report yourself and print it yourself (or use 3rd party products). Most common way is to open virtual serial port and send characters and printer commands over it. You can use OpenNetcf.org library for serial port access since you’re on VS 2003. ...Show All
Visual Studio Express Editions Crystal Report Hassles.
Hi All, I have the dataset, with one table in it. The table contains 4 rows, but when i bind my dataset to the crystal report, it shows only one page and one records. Any pointers on what should i do thanks for the reply.. what you do mean by report footer section.. Actually i am new reporting thing and this my first report. :-( ...Show All
Visual Studio 2008 (Pre-release) Suggested Refactoring: Promote Anonymous Type
Hi I've been playing with some of the ideas around anonymous types and one of the obvious limitations is that they cannot be used outside the local method scope. The suggestion is that if you want to do this the developer should create a proper type to be returned. The thing is the compiler/VS already knows what this type should contain, at least as a starting point. I propose you add something along the lines of promote anonymous type to concrete type refactoring. Implementing this feature will essentially save on work that would otherwise be fairly repetitive and similar. What do you think Kind Regards Duncan We've been developing in LINQ (to SQL) for a while and so far have managed well ...Show All
Visual Basic createing a text file
Hi...i used to play around with vb 6 and now i have 2005 and i gt say...i can learn chinese faster then i can learn it... can someone show me how to create a simple text file in the programs folder and can you explain the code so i can learn how it workts..thanks! Sure, you can post your code if you want to The example above was meant to be a little confusing, just to give you some more advanced stuff to learn from. I used an array of strings because you talked about arrays, but in fact, it would have been much simpler without array. As you saw, it's pretty easy to take a text that's one big string, and turn it into an array of strings that are split by the LineFeed character so each splitstring is a 'line' of the text - yo ...Show All
Software Development for Windows Vista DVD Playback
Can someone tell me why i cant play DVD's with either media center or media player on windows vista Thanks same thing happen to me, media player classic can play it though. its only wmp and it says i have to lower my resolution but i did and it had no effect whatsoever. any thoughts of how to resolve this. btw i have an uptodate codes. ...Show All
.NET Development PRB: Microsoft Office 12.0 Access Database Engine OLE DB Provider
I am accessing Data from Excel 2007 that needs the above mentioned provider. But as installing Office 2007 on prod servers is not a good solution. so my question is that What minimum Office 2007 components will suffice to install the Microsoft Office 12.0 Access Database Engine OLE DB Provider on system, or did microsoft release any MDAC like compnents to install this. Thanks in advance... Atul Have you tried using the Jet 4.0 OLEDB provider with Excel 2007 AFAIK there currently is no distribution for the Access 12.0 database engine (other than with Access) and the product has yet to be released. ...Show All
Visual Studio 2008 (Pre-release) MediaElement fastForward problem...
Hi All, I have implemented some functions below to control video playback of MediaElement: public void Play(string filePath) { if (this.playbackStatus != PlaybackStatus.Pause && filePath.Length > 0) { Stop(); this.mediaTimeLine = new MediaTimeline(new Uri(filePath, UriKind.RelativeOrAbsolute)); try { this.mElement.Source = new Uri(filePath); this.prePlaybackFilePath = filePath; this.mElement.Clock = this.mediaTimeLine.CreateClock(); } catch (System.Runtime.InteropServices.COMException cex) { System.Diagnostics.Debug.WriteLine(cex.ToString()); } catch (Exception ...Show All
Visual Studio Just-In Time debugger problems - win32 exception-popups
Hi I have VS 2005 installed since a few weeks, and first it worked smoothly but now strange things are happening. Very often either firefox (1.5.0.6) or Outlook or IE crashes and the just in time debugger throws a win32 exception and wants to debug, and it pops up exceptions until I reboot. Then it starts again. I've searched for this in this forum but I didn't find any solution. I have disable script debugging (IE) and Disable script debugging (Other)" checked. I do have to develop in .Net 2.0, and cant't go back to 1.x What to do I'm getting crazy about this. Do I have to reinstall the whole system or what Any of you who had this problem and found a solution Kraxx, The applications mentioned a ...Show All
Visual FoxPro Win 2K vs Win XP Pro SP2
Hi, Just wondering if anyone has changed the development platform from Win 2K to Win XP SP2 Any problems encountered >>changed the development platform from Win 2K to Win XP SP2 Yes, I did this some time ago now, (when XP SP1 was released) and have not had any specific problems with VFP and XP. Everything seems to work just as expected. ...Show All
Visual Studio Tools for Office Network problem
We have windows 2003 server with anti virus server software. While saving the files especially word and excel on the network (server) from the client, it take very long time. Kindly help us in this matter. Which version of VSTO are you running that have these files within it If you are not running VSTO, this is not the forum for this question... you may want to post your question to the Office General Forum . ...Show All
Software Development for Windows Vista Powershell -- where is grep?
I want to look for regexp matches in all the files in a directory tree. In Unix I'd use 'grep --recursive'. Is there an equivalent command in powershell Or a different paradigm I'm missing --Andy maybe its just me but get-childitem . -include *.xsd did not work get-child .\* -include *.xsd however, did work. ...Show All
