Craig G's Q&A profile
.NET Development Soap Extension not firing
I have a Class Library (dll) that calls a web service and includes a form where a I am trying to implement a progress bar using the code in "Adding a Progress Bar to Your Web Service Client Application." The web service executes fine, but I can't get the SoapExtension to fire. The code for the soap extension is similar to the sample code: ' ' Progress bar - C# to VB.NET hack ' Class ProgressClient Inherits webapp.MyWebServiceWSE Public Progress As ProgressBar Public Transfersize As Integer Dim MyForm As ServiceForm Public ProgressDelegate As ServiceForm.UpdateDelegate = AddressOf MyForm.ProgressBarUpdate End Class ' ' SOAP Extension - C# to VB.NET hack ' Pub ...Show All
Visual Studio VSS Get Error
am trying to get latest version of my project using following < UsingTask AssemblyFile = " Microsoft.Sdc.Tasks.dll " TaskName = " Microsoft.Sdc.Tasks.SourceSafe.Get " /> < Target Name = " Latest " > < SourceSafe.Get UserName = " abc " Password = " abc " Database =" \\vss\Code " Project = " $\Source\Project " WorkingDirectory = " c:\temp " > </ SourceSafe.Get > </ Target > It gets all the files from the VSS but at the end I get following error message. Target Latest: Connecting to VSS. Getting latest version. D:\Visual Studio 2005\Projects\W ...Show All
.NET Development Help for JobEventHandler
Dear Members, Help me on this topic.. I'm implementing job project presented in .net remoting, I'm trying to create a dll of JobServerLib but it doesnt build as it gives error for JobEventHandler... I need to incorporate one assembly to handle events for JobEventHandler.. but im not able to find it out which.. please help me on this... here is my code... using System; using System.Collections; using System.Runtime.Remoting; using System.Runtime.Remoting.Lifetime; using System.Runtime.CompilerServices; public interface IJobServer { event JobEventHandler JobEvent; void CreateJob( string sDescription); void UpdateJobState( int nJobID, string sUser, string sStatus); ArrayL ...Show All
Visual C++ CAsyncSocket broadcast problem in Vista
Hello Everyone: I have wrote some code using MFC CAsyncSocket to broadcast. The program run correctly under Windows XP, but not Vista(). The broadcast packets cannot be captured when running in Vista. Is there some MFC supporting problem for Vista Or other reasons I need your HELP! Thanks a lot. The code is like this: int flag=1; int rflag = 0; int len = 0; CAsyncSocket *s; if( !AfxSocketInit() ) return 1; if( ( s = new CAsyncSocket ) == NULL ) { return 2; } struct in_addr in; char temp[20]; in.S_un.S_addr = inet_addr("127.0.0.1"); strcpy(temp, inet_ntoa(in)); if ( !s->Create(SRC_PORT, SOCK_DGRAM, FD_READ, temp) ) { int i = GetLastError(); delete s; return 3; } if ( !s->S ...Show All
Visual Studio Express Editions Can't seem to change opacity of window
In this code: http://nomorepasting.com/paste.php pasteID=74503 I'm trying to simply change the opacity of any window. But that doesn't seem to be working. Anyone know what I'm doing wrong and/or how to get this to work I'm not talking about changing the opacity on the forms my app spawns, thats easy, but any other window, like mIRC, or internet explorer. ...Show All
SQL Server "Unable to process one or more commands" error message
Hi , I am getting error while trying to implement dynamic dimension security. The error reads as follows: Unable to process one or more commands. User-generated error - the dimension "<Dimension Name>" has no valid member. For more information, see your administrator. This error occurs when we try to test the role in Analysis Services 2000/sp4. on a windows 2003 server. I tried BOTH the solutions suggested in http://support.microsoft.com/default.aspx scid=kb;en-us;824419 but NO USE. The error remains the same. The following is the MDX query I am using : Filter ([Division].[Iclas] .Members ,( StrtoTuple ( "[User].[" + Username + "]" ), [Measures].[Sales]) = 1) ...Show All
SQL Server Dynamically name folders
Apologies in advance for the newbie question. I'm new to Integration Services and am trying to build my first project. I want to dynamically create folders based on the results of a stored procedure. The resultset is limited to one column but can contain multiple rows. (It returns a list of 8-character strings representing dates.) This returned value needs to be combined with the path where the new folders should be created. Can someone point me in the right direction I've run the stored procedure and put the resultset into a RecordSet Destination that uses a variable of type Object. (At least, I think I've done it correctly.) But I have not been able to figure out how to access this data to actually create the folders. Thanks for ...Show All
Smart Device Development gwes.exe data abort error
Hi, I'm working on an application for WM5 PPC and I'm getting the following data abort error: Data Abort: Thread=96417294 Proc=815874c0 'Test.exe' AKY=00100001 PC=00019d98(Test.exe+0x00009d98) RA=00019d90(Test.exe+0x00009d90) BVA=ffffff80 FSR=00000407 I get more details on the simulator in the error report details, but how can I find out what is causing this problem Hi Bogdan, glad to see you were able to proceed around your problem. You're most likely running up against the issue covered in this blog post: http://blogs.msdn.com/windowsmobile/archive/2007/01/10/who-is-gwes-and-why-does-it-keep-apologizing.aspx The behaviour is being changed in future versions... Union ...Show All
Visual Studio 2008 (Pre-release) Change rectangle property from code
Hi guys, i've got a rectangle i've drawn in a grid, how can i change its propertys from code, i think i need to build once or something, should i be using X:name or something...FindName, i'm a bit lost, thanks guys si Hi blackpenny15, I'm not 100% sure what you mean by Xpad1 or Xpad2 isn't showing up in code even after build So I'd like to ask a few questions. Did you mean that you didn't see the declaration of these two variables Or did you mean that you couldn't use them in your code. I added the usage of Xpad1, and Xpad2 into your event handler, and they work fine for me. The rectangles' fills change according to the keys pressed. void OnKeyDownHandler(object sender, KeyEventArgs e) { i ...Show All
Architecture Architecture options for running a long process from an ASP.NET website
Hi, We currently have a solution where a user can upload a file, which gets processed in an ASP.NET v1.1 intranet website The solution was designed to handle 10-100 items, but customers have (ab)used the solution to process 1000-10000 items. Processing 100 items takes less then a minute, processing 1000 items takes around 7 minutes, larger uploads take (non-linear) longer. Now besides performance tuning the processing, I want to gather feedback on what is the best strategy to take the upload and have it process 'asynchronously'. After the upload, the user would immediatly get a status page which would refresh itself (every so often). So I have a few questions about what would be the best route to go about 1) Which process to ...Show All
Visual Studio Express Editions Can't send an email using Gmail.com
Visual Basic 2005: Haven't been able to send an email using smpt.Gmail.com. Getting "The SMTP Server requires a secure connection or the client was not authenticated." I am using my correct UserName and Password. Dim Email As New System.Net.Mail.MailMessage(FromTextBox.Text, ToTextBox.Text) Dim mailClient As New System.Net.Mail.SmtpClient() Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential( "UserName@gmail.com" , "Password" ) mailClient.Host = "smtp.Gmail.com" mailClient.Port = 587 mailClient.EnableSsl = True mailClient.UseDefaultCredentials = True mailClient.Credentials = basicAuthenticationInfo mailClient.Send(Email) ...Show All
Visual Studio Choosing browser used by debugger
I have been unable to determine how to specify which HTML browser the debugger will launch. When I installed Visual Web Developer, my default browser was Firefox. When I started the debugger, it launched the HTML page in Firefox. I guessed that it was simply using my system default browser. So, I switched my default browser to IE7. This did not cause the debugger to launch IE7. I have looked for a configuration option with no success. I have even poured over the register to see if there is something there. No luck. Can someone please tell me how I can configure Visual Web Developer to use IE7 instead of Firefox Thanks, Joel Not sure why the decision is being made by the debugger to do this, but what to do is set up the "St ...Show All
Visual C# Copy and paste data between 2 notepads in C#
Hi All, I need to open 2 notepads programatically. If I copy data from one notepad, and try to paste it in the next notepad, it should not get pasted. Can anyone suggest me a solution for carrying out the above one. If you open the notepad.exe programaticaly. You could just open 2 multiline textbox and handle the copy/paste yourself (much easier). Sort of creating your own notepad that prevent paste. You cannot stop people from opening notepad themself and modifing the text and if you do find a way to prevent copy/paste when the user open notepad by himself then that's not a feature I would like to have installed in my computer. ...Show All
Visual C++ Enum type with less than 4 bytes???
Hello guys, I'm interested in making enum as small as possible - I want to hold just few items (up to 5 or 10)...Reason is I'm sending it over network. I've found something on internet but without any proper declaration. Could you give me an example how to make such an enum(or similar structere if there is) Thanks, Peto As long as you're talking about a C++ enum (not a .NET enum), you can use any integral type you want. For example: enum MyEnum { zero, one, two, three }; int main() { unsigned char e = one; } ...Show All
Windows Forms How to get target path when drag/drop (.NET2.0 C#)
Hi, I want to drag an item From my listview, To local computer's filesystem. I need to get the path of the target filesystem, how to do that in C# Br, -L By "to local computer's filesystem", I assume you mean dropping on to Windows Explorer... You don't process the drop, the destination application processes the drop. You give it a data format that it recognizes and you tell it (via the framework) to perform a drop with that data. What it does with that data is completly up to it. ...Show All
