cambler's Q&A profile
SQL Server ADS: Sample application cannot access desktop database
The sample application provided with Access Database Synchronizer fires a "A request to send data to the computer running IIS has failed. For more information, see HRESULT." exception on my WinCE 4.2 device. I debugged it with VS2005 to see what was going on and found that the problem resides in the line: m_connDesktop.Pull("MSysObjects","SELECT Name FROM MSysObjects WHERE Type=1 and flags=0",accessSysConnectString,RDATrackOption.TrackingOff,"Err_MSysObjects"); It seems that connection m_connDesktop is ok but calling Pull method fails. I've verified that SSEvAccessSync service is started when ActiveSync detects device connection and that firewall rules are correctly updated. Also, i ve ...Show All
Smart Device Development Knowing when Application.Run(MainForm) has finished showing the MainForm
Hi all, Is there any way of knowing when the Application.Run(MainForm) has finished showing the MainForm I need to show another form on top of the MainForm, but i don't know when it's loading is finished and the new form is always hidden by the MainForm... Any help would be great! Regards, Pedro Unfortunately I have yet another problem... the OnPaint method isn't called in my main form, which only has a ListView with Dock set to fill :( If the ListView isn't with Dock set to fill, then it is called, otherwise it isn't... This is getting a little frustrating... ...Show All
SQL Server SQL Server 2003
Hi, 1. Is there a version of SQL server called as "SQL Server 2003". 2. If yes, can I install this on Windows 2000 O/S. 3. Can you redirect me to some reference site, for point #2. Thankyou. There is no such product as "SQL 2003". Both SQL 2000 and SQL 2005 will run fine on Windows 2000 SP4 and Windows 2003. ...Show All
SQL Server Query Help
I have this scenario. What will be my query Table: Account#, Name, RMR, Billing_Date, Invoice# 1000, Dave, 50, 5/1/2006 ,10 1000, Dave, 50, 6/1/2006 ,11 1000, Dave, 50, 7/1/2006 ,12 1000, Dave, 50, 8/1/2006 ,13 1000, Dave, 50, 9/1/2006 ,14 2000, Al, 50, 5/15/2006 ,15 2000, Al, 50, 6/15/2006 ,16 2000, Al, 50, 7/15/2006 ,17 2000, Al, 50, 8/15/2006 ,18 3000, Jim, 50, 8/10/2006 ,19 3000, Jim, 50, 9/10/2006 ,20 3000, Jim, 50, 10/10/2006 ,21 I use this query to calculate revenue sharing. Account hit for revenue sharing after we bill the 4 th billing month. In this case for Account# 1000 qualified after 8/1/2006 , 2000 – 8/15/2006 and 300 ...Show All
Visual C# adding permissions to a file
I have a program that uploads and downloads an excel file to the server. Works great except for 1 snag. Every time a new file gets uploaded the file permissions don't allow me to download it again. The file needs to add the permissions for Internet Guest Account (SERVER\IUSR_SERVER)) and to allow all. The only parameter I have is the file location and file name on the server. I know its possible but I'm hoping to get a fairly simple solution to it... I don't suppose there is a method changePermissionsOnNTFSFile(string file_location, string account_name, string input_access) Thanks. Hello Michael, thanks for the reply. I'm still having difficulty because I'm brand spanking new to the whole c# s ...Show All
Visual C# How to make my function more generic ??
Let's say i have these 2 function void foo1() { Class1 classArray[] = GetArray(); for(int i=0;i<classArray.Lenght;i++) { console.WriteLine(classArray ); } } void foo2() { Class2 classArray[] = GetArray(); for(int i=0;i<classArray.Lenght;i++) { console.WriteLine(classArray ); } } as you can see .. the 2 function does exactly the same thing .. the only difference is the objet class1, class2 .... its just an illustration of my problem .... id like to do a more generic function... possible I believe this falls under the category of polymorphism. I haven't worked much with polymorphism in C#, but I believe the principles should be the same as other languages. If you derive a ...Show All
Smart Device Development regarding memory exception
hi , i have been in developing application in smartphone using c# .. i am using visual studio 2005 .... for my application i have loaded the resoueces using the following code ... Stream s ; Bitmap img_btYellow; s = this.GetType().Assembly.GetManifestResourceStream("Widgets.res.avblue.png"); img_btYellow = new Bitmap(s); s.Close(); i have loaded 8 '.png' images through the above code using the same stream ' s ' . the application is running fine in emulator .... but it is showing out of memory exception in the exe created inside the bin folder ... even i tried using singleton object for all the classes , that i have used .. but it s still showing the same exception .. could anyone help me in resolving th ...Show All
SQL Server web service vs windows service
Hi! I would like to know the relationship between the SSRS Web Service and the SSRS Windows Service. Does The Web Service use functionality exposed by the Windows Service Where Can I learn about this architectural concepts Thanks J. Aldrin You can start exploring the documents on MSDN. See this link for an architectural diagram http://msdn2.microsoft.com/en-us/library/ms155792.aspx To answer your question: the web service access the windows service for data encryption/decryption. The windows service accesses the web service for a variety of reasons including report processing. ...Show All
Visual Studio 2008 (Pre-release) Sometimes (ALL THE TIME) MediaElement plays streams without sound. Bug ?
I've been using MediaElement to play WMA audio streams. I use only one instance of MediaElement: <MediaElement Name="mediaElement" LoadedBehavior="Manual" Stretch="Uniform" HorizontalAlignment="Left" Width="83" Height="Auto"/> and I access this instance from code so that each time the user chooses a URL here's what I do: mediaElement.Stop(); mediaElement.Source = uri; mediaElement.Play(); Volume is always set at 0.5f and Mute is never set to true. About 1 out of 10 urls plays with no sound. I know it's playing because I not only received the play event but also see that the Position is increasing. This happens independently of the URL. However, I never have the problem ...Show All
Visual C# Windows Services
Hi. We want to install two instances of the same windows service. We have already installed the first one but when we can't install the second one. What should we change in the setup project to allow the second installation Thanks a lot. Michael Thanks again for the further response. I have actually got agreement that a command line interface would be sufficient (until the customer changes their mind anyway!) so I was able to follow the example in the previous link which appears to be working well. I am using the installutil so that I have a console window I can write to - Is it possible to generate a console when not running a console app I have some other services that it would be useful to generat ...Show All
Visual Studio exec task failing in conjuction with echo shell command
I'm running this exec command inside a msbuild file and not getting the expected results. There is something going on in the conversion of the html code and I've tried various scenarios with no luck. < Exec WorkingDirectory = " $(MSBuildProjectDirectory) " Command = " @echo ^< html ^>^< body ^> Success. Up I'm up!!!   Time on this server: ^<^ %= now^(^) ^ % ^>^< /body ^>^< /html ^> > test.txt " /> This outputs the following to test.txt: <html><body>Success. Up I'm up!!! Time on this server: &l ...Show All
Visual Studio 2008 (Pre-release) Uid attribute is not declared wpf
When adding the Uid attributes I get the next warning: Warning 1 The 'http://schemas.microsoft.com/winfx/2006/xaml:Uid' attribute is not declared. C:\Users\itzik.katzav.SOFTWEAR\Documents\Visual Studio 2005\Projects\PowerJobs.root\PowerJobs\PowerJobsWPF\MainWindow.xaml 1 9 PowerJobsWPF And I think it also causes the intellisense to stop working, in the file. Can someone help me please If you are adding a custom property you need to place that in your own assembly, and map the assembly/namespace to an XML namespace with something like xmlns:mynamespace="clr-namespace:<your c# namespace>, assembly=<your assembly name>". To make this work with intelesense you need to also create ...Show All
Visual Basic Which Win32 API function retrive data from components?, Is it GetMessage?. Please help
Win32 API Programming. GetWindowText, GetClassName . By using this above function I can able to retrieve window class or title name for the other running window exe programs. Also by using GetClassName I can able to retrieve component class name as well. I wanted to know how to retrieve a data from components. For example currently I could able retrieve the exe name and its component name MSFlexGridWndClass. how to retrieve data from that flexgrid , please help me. Which Win32 API function support this . is it GetMessage library Private Declare Function GetMessage Lib "user32.dll" Alias "GetMessageA" (ByRef lpMsg As Msg, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long) As L ...Show All
Visual C# I have a really newbie question on scope
Under C I would do something like “const int Max = 25”, And place this in a header file which I #include in all the C files, so the whole application had scope to Max. I know I have to use static and C# doesn't have include files, so where do I put it so the whole application h as scope to it (Max=25), without physically coding it in every file I usually creat enumerations for this purpose. something like this: public enum GlobalConstants : int { MaxValue = 300, MinValue = 1 } Usage: int maxValue = (int)GlobalConstant.MaxValue; U can also get String Representation of the enumarion value like this GlobalConstant.MaxValue.ToString(); So it looks h ...Show All
.NET Development Configuring Certificates to be used with WSE 3.0
I have just create a simple WSE 3.0 test application which uses user name and password security. However I have a serios problems with configuring the digital certificates. I get an exception with the following fault response, < xml version="1.0" encoding="utf-8" > <soap:Envelope xmlns:wsa=" http://schemas.xmlsoap.org/ws/2004/08/addressing " xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ "> <soap:Header> <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action> <wsa:MessageID>urn:uuid:ed228fee-e7ed-4565-941c-41afbea41f17</wsa:MessageID> <wsa:RelatesTo>urn:uuid:68fe12b2-9b6a-4bbb-92d6-957eedfe0a63</wsa:RelatesTo& ...Show All
