Orchid2006's Q&A profile
SharePoint Products and Technologies debugging workflows
Hi I followed the instructions here to create a custom workflow using infopath forms. I got it compiled and installed fine. http://weblog.vb-tech.com/nick/archive/2006/09/04/1753.aspx I was able to create a workflow for a document library based on my code, but when I run it from an item in a doc library it died with a status "failed on start" So I loaded up VS2005 project on my dev MOSS07 server and attached to the w3wp process that was executing workflow code. I see symbols loaded up for various components. But none of my breakpoints show up, saying the "symbols cannot be loaded". The symbol file is created along with my DLL. The installer puts my DLL into the GAC. How does with work with symbol files ...Show All
Visual Basic Problem calculating icmp packet checksum
Hi all, I am trying to create code to generate the checksum for an Icmpv6 packet. I am using vb.net to manually create an echo request icmp message and then use a socket to send and receive the replies. My problem is that the resulting checksum is wrong according to captured packets from ethereal. This code is part of my dissertation and I am desperate to find a solution. Any help will be really appreciated. The checksum code is below: Public Sub getChecksum() Dim data() As Byte = getBytes() Dim packetsize As Integer = MessageSize + 8 Dim i As Integer Dim chksm As Integer = 0 For i = 0 To packetsize - 1 Step 2 chksm += Convert.ToInt32(data(i) * &H100 + data(i + 1)) Ne ...Show All
Visual C++ /MTd and /clr options are incompatible. Why?
Ok, here is the long story. I have a nice C++ component which statically links to about 10 libraries as well as links to ATL, C run-time library and MFC. Component is multi-threaded and it actually runs couple of threads inside but everything is nicely wrapped into one DLL which can be called from any .NET program. It was all fine until I tried to migrate this project from VS 2002 to VS 2005. After migration at first I got this message: Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD I checked settings and saw that migration changed runtime library option to Multi-threaded DLL instead of just Multi threaded. Well, I have no intention of having 10+ DLLs instead o ...Show All
Visual C# Help with C# Screencapture --> avi
Hello, I was exploring the possibility of creating a multi threaded screencapture program, that exports the onscreen content to an avi file in real time. I have looked around the MSDN help areas and cannot seem to find the information I need, such as how to capture the screen's image and put that into video format or capture the audio from either the stereo output, or mic. From the information I did find I am guessing that I will need to employ the threading and AVIfile classes. Any help would be great, thanks. you need to some how capture it to a video format - how is this done no idea, probably using the DirectX approach. To capture screen shots to an image file, take a look at this: http://forums.microsoft.com/MSDN/ShowPost.asp ...Show All
.NET Development SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
Hi everybody, We were developed some Web-Services that run against SQL Server 2000 with SQLDataReader that executing Stored Procedures in the DB. Most of time (95%) everything is running well, but sometimes (when exactly, we don't know) the same WebService that worked 200 times, fail. The code is simple: public string myFunction( int ANumber ) { string strRetVal = null ; SqlDataReader myReader = null ; SqlConnection MyConn = null ;   ...Show All
.NET Development Getting Length of the Request Stream!!!
I'm implementing a custom sink and so I have a class that implements the IClientChannelSink interface. In the implementation of the ProcessMessage method of this interface, I need the length of the request stream. [C#] void ProcessMessage( IMessage msg , ITransportHeaders requestHeaders , Stream requestStream , out ITransportHeaders responseHeaders , out Stream responseStream ); I simply used len = requestStream.Length; and there was no compile error for this. But at runtime I catch an exception that is complaining about a missing method named get_Length(). What else could I do I see. You'll probably need to buffer the stream up to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Kitchen Sink War" Download !!!
Download "Kitchen Sink War" for the XBOX 360 and See Screenshots at ... http://games.archor.com This is My Second Entry into "Dream, Build, Play" ... http://www.dreambuildplay.com Have Fun ! It's funny that you went this direction. The first design that popped into my head when I saw the requirements for DBP was something like Toilet Wars where the two space ships were fighting each other to keep from falling down the drain. Very cool. ...Show All
Internet Explorer Development Bug: Valid XHTML+CSS locks up IE7
Hello, I have recently put up a new design for my personal website and it is causing some problems for my family/friends that use IE7. When trying to access the site IE7 locks up and is pegged at around 50% cpu usage (causing me to believe this may be an infinite loop issue). The site validates as valid XHTML and CSS. No javascript is used. Every other browser works fine. I have previously posted about this here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.internetexplorer.general&mid=804d7423-a551-4c6c-8fb6-25c28080fdc5&p=1&ntf=1 The address of my website is: http://www.programmer-art.org Proof that it validates: http://validator.w3.org/check uri=http%3A%2F%2Fprogrammer-art.org ...Show All
Visual Studio Express Editions void System::Array::Resize(cli::array<Type,dimension> ^%,int)
How can I return a cli::array's size on a specific dimension and how do i resize multi dimensionnal arrays If I understand correctly this is what you need: array < int , 2 > ^t = gcnew array < int , 2 >( bitmap.Height, bitmap.Width ); ...Show All
.NET Development TextBox and managing the double-click selection bounds
Hi all, how can I manage the selection within a TextBox when the user double-clicks in it I want to be able to break the selection extent (left as well as right) on a defined (set of) characters not just the (seeming default) of whitespace. Can anyone advise Try something like this: private void textBox1_DoubleClick(object sender, EventArgs e) { int start = textBox1.Text.LastIndexOf(' ', textBox1.SelectionStart); int end = textBox1.Text.IndexOf(' ', textBox1.SelectionStart); if (end < 0) end = textBox1.Text.Length + 1; if (end > start) { textBox1.SelectionStart = start + 1; textBox1.SelectionLength = end - start - 1; } ...Show All
SQL Server obtain the result of dynamic query with openrowset
im running a dynamic query with open rowset in it pseudocode: @CMD=declare @ RETURN SELECT @RETURN =SUM(X) FROM OPENROWSET(....) SELECT @RETURN EXEC @CMD This pseudocode dipplay the result of @return the problem: capture @return into @myvalue outside the dynamic sql scope something like Select @myvalue=exec(@cmd) I don't wanna run on ditributed transaction like this insert mytable exec(@cmd) thanks, joey Well, in 2005, you can direct EXEC to execute on a different server, but I think what you want to do is to use sp_executeSQL: You will have to configure linked servers, (as well as possibly MSDTC for the servers,) but that would be the direction I would hea ...Show All
SQL Server Howto use COM objects in CLR. NET programs
hi, i have a vb.net progi which i want to run under sql server 2005 as CLR. the prob is that when i want to create the assembly in sql 2005 it says that the create of the Interop.FC_COM.dll (this is the COM interop object) failed. when i try to create the Interop.FC_COM.dll as an assembly in sql 2005 it fails because this dll is not follwing the structure of a CLR dll. i've heard somewhere that MS is not supporting COM objects under CLR directly. is that true any comments welcome, thnx Permission set SAFE EXTERNAL_ACCESS UNSAFE Code Access Security Execute only Execute + access to external resources Unrestricted Programming model restrict ...Show All
.NET Development Trace.Refresh() call fails
Hello all. I am trying to catch changes in my app.config file and refresh Trace class on any change. I am using FileSystemWatcher class instance to be notified about any change. When the "on change" event raised i call Trace.Refresh(). However, i get exception each time it is happening. Exception says there is multiple access to the file. I tried to edit app.config from FarManager application's editor and from notepad. How i can refresh the Trace object without getting this exception Thank you Yes. It seems your guess was correct. I tested TraceSource instance with Trace.Refresh and it is updated. Very said news, since it forces me to create a single-tone object in the code while i have a built-in one. Hope t ...Show All
Visual Studio Express Editions Cannot see an attribute from the schema as a field in class
I am using Visual C# Express 2005. I have an attributeGroup (call it group1) in my schema which includes another attributeGroup (call it group2). The attributes in group2 are not showing up in my objects. Ideas Thanks. Can you explain a bit more Are you talking about XML serialization where some attributes are not deserialized -- SvenC ...Show All
Visual Basic How to cast to the parametrized type?
In my application, I have got a subroutine, which should retrieve the active window, check its type and return it in case of success. I wrote it with the generics syntax: Private Function ActiveWindow( Of T)() As T Dim f As Form = Me .ActiveMdiChild If TypeOf f Is T Then Return DirectCast (f, T) Else Return Nothing End If End Function But compiler says that System.Windows.Forms.Form cannot be converted to the type T. As you can see from this code, f can always be converted to the type T. I have found out really weird thing about that. If we modify the code in the following way, everything works: Private Function ActiveWindow( Of T)() As T Dim f As Form = Me ...Show All
