Bailey's Q&A profile
Visual C++ How to convert string object to char array?
Hello, I am writing MFC program. There is a string object that needs to give its content as char [] array. Is there anyway to extract string object as char Array Thanks, vcboy Hi, if you're talking about the string from the STL then all you have to do is call the c_str() method that returns a pointer to the first char in the string: std::string str("test string"); char* s = str. ...Show All
Visual Basic WebBrowser Control DocumentText Failure
I have a problem that the HTML I load into a WebBrowser control does not display sometimes. Here is the situation: I have a parent child relationship, and I use a webbrowser control on the form to display the child detail nicely formatted. I use a specific subroutine to format a string which I then assign to webbrowser. documenttext. The subroutine seems to work just fine, but if it is the first time I am doing the display, it does ...Show All
.NET Development Setting DNS suffix through .NET?
I'm trying to see if a machine has a domain suffix and if not add that suffix to the computer. I have something like this: System::Net::IPHostEntry ^rHostInfo = System::Net::Dns::GetHostEntry(System::Net::Dns::GetHostName()); String ^rHostName = rHostInfo->HostName->ToLower(); if(rHostName->Contains(".mysuffix.com")) { } else { rHostInfo->HostName = String::Concat(rHostInfo->HostName->ToString(), ".mysuffix ...Show All
Visual J# [J#] Problem with changing text in textBox & socket communication
Hello! I have a problem - I'm trying to create an application in J# (Visual Studio 2005) - it's connected with socket communication - 2 aplications - client and server. In console I didn't have any problems and I think that I understand the mechanism. But now I'd like to create my application in graphical environment (GUI). And here I have a problem. So what's the point - I have 3 classes: 1. Form1 2. Server (it extends Form1) ...Show All
Visual Studio 2008 (Pre-release) Espresso sample: Dynamo
I would just like to have a clear definition of what Dynamo is all about. And also, what is the definition of the Binding. Is Dynamo only for anonymous types Does a binding represent a Property and the expression that represents its value Dynamo = new { ... } Binding = the "OrderCount = c.Orders.Count" in new { OrderCount = c.Orders.Count, ... } expression Oh! I should have realised. But, ... it just goe ...Show All
SQL Server How i could connecting to Analysis Services from BI Intelligence Studio with server authentication?
Hi: I have been working at client work station with BI Intelligence Studio but i want deploy the project in server machine, but my windows credential don't have sufficient privilege for do it. However i know the server credential for do it but i can't find the project settings for do that. The account you connect to the AS server as will need permisions to deploy the database. In the Windows Start menu, ...Show All
Software Development for Windows Vista ASP - StateMachineWorkflow started but not starting?
The following code works in a winforms app, but not in asp. WorkflowRuntime workflowRuntime = new WorkflowRuntime(); //only creating 1 instance of this in asp ExternalDataExchangeService svcDataExchange = new ExternalDataExchangeService(); workflowRuntime.AddService(svcDataExchange); svcDataExchange.AddService(new MyServiceNamespace.My_Service()); workflowRuntime.StartRuntime(); Wor ...Show All
Windows Forms How to get the textbox value of other form
With VB 6 there was no problem getting a value of the control on other form. Now I failed to do it. I think the following simple code should work but VB.NET won't get me the value. I have a textbox1 on a form FrmA and I  ...Show All
Visual Studio Tools for Office VSTO Editions
Doesn't VSTO come with VS 2005 Professional I downloaded the VS2005 Pro DVD from MSDN and didn't find the installer for VSTO. Thanks. Mike, I have a MSDN subscription and have downloaded and used VSTO. Other employees in my company do not have a MSDN subscription and would also like to start using VSTO. They have already purchased VS 2005 Professional. All we can seem to find is for them to purchase the ...Show All
Architecture Who is the appserver in .NET?...IIS, the OS, BizTalk, SQL Server?
Some days ago, a coworker ask me the following question: Who is the appserver in .NET ...IIS, the OS, BizTalk, SQL Server ...after thinking for 5 seconds, I decided to anwser...well...it depends...could we all of them or neither. What do you think about An application server typically provides the following services: Application connectivity Transaction management Component life cycle management ...Show All
Visual Studio Express Editions Reference an Array using a String Variable
I want to be able to pull an array using a string that I built. Is there any way to do this Here is my example code: dim ary1() as string dim ary2() as string private sub test() dim totalLength as integer dim i as integer totalLength = 0 for i = 1 to 2 totalLength = totalLength + getAryLength(i) next i end sub private function getAryLength(i as integer) dim ary as string ary = "ary" & cstr(i) 'This is the part wher ...Show All
Visual Studio Express Editions New VB user questions
I am an experienced programmer in QB but new to VB. I have VB 2005 Express and am trying to get up to speed. For a learning project, I have a simple Windows form that calculates a Cylinder volume. The form has labels and test boxes for input, a results box, and 3 buttons (Calculate, Next, and Exit). Functionally, all works correctly so far. Question 1 - How do I set up to use keyboard navigation for data entry going to the next field or bu ...Show All
SQL Server SSIS package BLOCKS at opening.
Hallo, I'am relatively new to SSIS-programming and experiencing a serious problem with a package (6618 KB large) containing 5 dataflows. These dataflows all start from a datareader-origin and flow trough multiple transformations. While editing the fifth dataflow the developmentenvironment suddenly became unworkably slow. After any modification made to the dataflow it takes several minutes before I can continue editing. Meanwhile in the task ...Show All
.NET Development My program hangs until SetProcessWorkingSetSize is called or app. minimized
Greetings Full description of the problem you can see here: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=16535 My program generates "phantom" thread (neither one of my threads, nor one of async completion threads) after a few hours of normal work, and that thread consumes 100% of CPU time until program window is minimized or a call landed to Process process = Process.GetCurrentProcess(); SetProcessWorkingSetSize(process.Handle,-1,- ...Show All
Visual C++ refactoring not available in 2005?
I tried out the VC++ express a while back, and loved the refactoring. I am now trying out VS2005 Pro, but I don't see any refactoring support. I am doing C++ coding. If I right click on a class member, I do not see anything about renaming /etc. I don't seem to see anything in the drop down menus either. Do I have to turn it on Thanks, ~S Unfortunately, refactoring is only available for the lesser la ...Show All
