Mark Simon's Q&A profile
Visual C++ Display an int in a MessageBox?
Hi, I'm new to C++, have started to use VC++ 2003 at work and dont know much about it because i have only used Java and VB before now. I cant use the debugger for reasons that arent relevant here but all i want to do is use a MessageBox to display an int! I cant seem to do this no matter what i try. I dont care if i have to use the AfxMessageBox function instead but please some one tell me how its done! I'll give you the example below int back_color = 2; how do i display that 2 or rather back_color in a messagebox thats all i am asking! Many thanks Will Yes, format is a me ...Show All
SQL Server Threading in Custom Components and Script Components
Ok so its reall easy to use threading in .net. But what about doing it properly especially in SSIS. The following are my questions, Are there any implications of adding rows to a buffer from multiple threads How can the script components be written to close any spawned threads when running in Dtexec. It seems that only the top level thread is aborted leaving spawned threads running Is this an issue with dtexec Which of the core components use multiple threads i.e. does the multi flat file, I understand the sort does Cheers Simon I think your statement is not precise. It is easy to start a thread in .NET but that doesn't mean i ...Show All
Visual C# location of a program
hi , i need to retrive the data of the location of a program. for example you can choose the folder (maybe craeate it) when you install a software program to your computer. i need location of that path the info of the path may be in registry in that case i need to readdata from registry so need to know how to deal with it. thanks in advance Environment .CurrentDirectory; Gets the fully qualified path of the current directory (the directory from which this process starts) ...Show All
.NET Development Who uses an assembly in the GAC?
Every once in a while I put one of my assemblies in the GAC because I am using it in several of my programs. But then I forget about it for several months. Later, while browsing the GAC assemblies, I am startled to see something I have put there. I say to myself, "I wonder what program I wrote uses this assembly." Do you know an easy way to find out what programs use a particular GAC assembly I am afraid I would have to write a program that would scan every program on my computer and check its manifest to see what its dependencies were. Is this the best I can do Or maybe there is a convenient registry key that contains this inform ...Show All
SQL Server System::SourceID
Hello, If I am using many packages that are called using "Execute Package Task" is there any guarantee that System::SourceID will be unique for all containers across all of the packages Slightly similarly...all packages that are created from the same package template have the same package ID. This is BAD. Does it need raising as a bug Thanks Jamie It's weird because even variables and connection managers have unique GUIDs. May need to be fixed. ...Show All
Visual Basic How to put a picture into a picture box fetched from a website using WinHttp
Hi, I need to fetch an image from a website and put the image into a picture box using WinHttp in VB. I referred to the article in the following URL. http://msdn.microsoft.com/library/default.asp url=/library/en-us/winhttp/http/about_winhttp.asp It has the following code.But the code gives error. The lines that give error are marked in bold as follows. Private Sub Form_Load() ' Create an instance of the WinHTTPRequest ActiveX object. Set WinHttpReq = New WinHttpRequest End Sub Private Sub Command1_Click() ' Create an array to hold the response data. Dim d() A ...Show All
Visual C++ Working with bytes and bits
I'm writing a program (to be more exactly it's a DLL) that comunicates with some machines through the serial port, so I need to read 17 bytes from the buffer, get the first byte and split it into 7 bits (the serial port configuration specifies that will be 7 the number of data bits). - How can I get this value from the BYTE array and split it into an array of bits - I'm getting the value from a position of the BYTE array a writing to a file to see what the program(VB6) is receiving. The first time it receives only one byte, the other times, it receives the whole BYTE array. Why I'm using fputs like this: char cSWA = buf[0]; fputs ...Show All
.NET Development HTTP-GET through a proxy
Hey I am working on a proxy testing program as a personal project for a friend of mine, and for the life of me I cannot figure it out. I have searched the forums and MSDN till im blue in the face for something I figured would be very simple. maybe you can help, all I need to do is do a HTTP-GET to a specified URL ( his website ) through a third party proxy ( my proxy ) from c# application. Can anyone point me in the right direction Thank you very much for your help. I was able to get the application to work using the "new Network Credential" line. However, I was surprized that the .UseDefaultCre ...Show All
.NET Development hi everyone, please help me
i use generic like below to define a class: public class RelaProperty<T> { ... } the type T maybe is class X1, class X2 etc.. so we assume the class X1 has a static method such as XXX() i try to call the method XXX like below in the class RelaProperty: T.XXX(); but i fail to compile it.who can tell how to do i can reach my goal public class RelaProperty<T> where T : MyInterface { ... } public interface MyInterface { void XXX(); } And then whatever you use for T, implement MyInterface ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). I am having the same problem. Happens in both Visua ...Show All
Windows Forms richttext box doesn't scroll aotomatically
when i add texts in the richttext box in code ,and when number of lines overload the visible lines number (depending on control size) in control it doesn't scroll aotomatically. what can i do for this problem thank alot RichTextBox has a ScrollBars property which you can set to allow scrolling. ScrollBars is set to enum RichTextBoxScrollBars ...Show All
Visual Basic Setup Project: Can't set registry values using Textboxes Dialog
I'm trying to allow users to modify a filespec at installation time using the Textboxes Dialog in a VB.NET 2003 Setup project. I set the values according to this page . After the program is installed, the registry settings are not taken from the Textboxes dialog's textboxes. Can somebody offer a quick rap upside the head to get me going Thanks! Mark Maybe more info is needed. On the User Interface Setup page, my Textboxes window is placed after the Welcome window. Edit1Label = Internet Explorer Path Edit1Property = P1 Edit1Value = D:\Program Files\.......\iexplor ...Show All
Visual Studio Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' ...
I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now. Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build the solution after just opening it in VS. But all subsequent build attempts fail with this same error. If I exit VS and reopen the project then I can again build one time and al ...Show All
Visual Studio Team System What does TestID mean? How to get this information?
Hi all, When I create a bug, there is a field under Test tab named "ID". What does it mean In the bug.xml file, I find it is "FieldName="Microsoft.VSTS.Test.TestId". Can I know a test case's TestID before I run it It sounds a test case's attribute, but I cannot find its value in a test case's property. I know if I create a bug it will automatically have a TestID valut inputted in the bug. But if I do not create a bug from a failed test case but manually, how could i know the TestID Anybody helps me out Thanks, Leon Hi Leon, Scenario: When people run an existent test case and find a ...Show All
Audio and Video Development Plug-in support with iHD?
I noticed in the HD DVD Programming Guide included with the Microsoft HD DVD Interactivity Jumpstart that there's an <object> tag in the scripting API. Where can I find more information about this tag I'm curious to see if 3rd party plug-ins/extensions will ever be a possibility with iHD, such as Flash Player. The <object> tag is not extensible in the same way that HTML's <object> tag is. The list of things you can put in an object tag (and then animate) include: * A static or animated image (JPG / PNG / MNG / captured frame / etc.) * A sound effect * A "clear rect" which causes the main (or sub) ...Show All
