Studix's Q&A profile
Architecture When to factories and interfaces in a component
Hello everyone. When developing a component should I always handle creation of objects with a factory Should the objects that my component contains always be fronted with an interface For example a component to manage a user account database being consumed in-proc by an ASP.NET web app. Which do you think a better design in most cases for the UserMgr component : 1.) using UserMgr; public void Page_Load { IUsers users = ...Show All
.NET Development Changing charset of runtime so that kernel pinvoke resolved to unicode versions
Hi, I was experimenting with the File IO methods, and seem to notice that the .NET, by default, uses the non-unicode pinvokes of many of the win32 file io rountines. Is there any way to invoke the unicode version without writing my own pinvokes/dllimport Which file IO methods and which Win32 APIs are these What makes you think that the A version is called (assuming you're running on an NT system) ...Show All
Visual C++ Why doesn't this code work?
Why doesn't this code work Using C++ .NET 2005: // MSS.cpp : main project file. #include "stdafx.h" #include "stdio.h" #include "iostream" using namespace System; int main( array <System::String ^> ^args){ struct tnode { int count; System::String ^ word; } ; tnode smth; smth.word= "Sometext" ; Console::WriteLine( smth.word ); } Hi MsFiT, Could you be a bit more specific please What error di ...Show All
Visual C++ msvcr80.dll not found
I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny feuerste that's an excellent point (I'm "bottom posting" this reply so it will appear at the ...Show All
Software Development for Windows Vista BizTalk Server and WWF integration
Will BizTalk Server 2006 have Windows Workflow Foundation (WWF) integrated with it Thanks, Sudheesh From what I have seen so far (from Biztalk and WWF), it seems that Biztalk is used more to tie different very disconnected applications together to perform a workflow operation. WWF is more of internal, you write individual applications around WWF. For example, you won't find a Sequential Workflow Console Applic ...Show All
Visual C++ LNK2019 unresolved external symbol...
I am using MSVC++ .NET (2003) and the following error ( blue ) occurs when buildung my project source ( black )... Hope you can help me to find a solution! :) test-winrar.obj : error LNK2019 unresolved external symbol '_RARCloseArchive@4', referenced in function '"void __cdecl ExtractArchive(char *,int)" ( ExtractArchive@@YAXPADH@Z)' #define STRICT #include "stdafx.h" #include <windows.h> #include <stdio.h> #include <ct ...Show All
Windows Forms Hidden parent, visible child, VisibleChanged
I have a container that is to be displayed only when child controls are visible. I hook the VisibleChanged event to detect the child controls transition from visible to not visible to hide the container but if the container is invisible, I cannot detect that the child has become visible. Is there a way to detect a child has become visible from the parent when the parent is not visible The VisibleChanged event does not provide an argument (I was ...Show All
Visual Studio Team System Unit Testing Web Service that returns DataTable type
I am trying out the team testing facility in VS 05 against a web service and am not sure what the intended use is, and can't find a good example. I have a webservice with one method which returns a data table, and have used the "Create Unit Test" option to generate a test method which has created the proper web reference in my test project, providing generated class to interact with the service. The response from the web service method is ...Show All
.NET Development The connection's current state is Closed??
Hi all, I'm trying to use a sqlDataReader to load data into a DropDownList on a .aspx page, but get the following error: Server Error in '/YLCPDTdb' Application ExecuteReader requires an open and available connection. The connection's current state is Closed. But havn't I opened it with the conn.Open(); statement Here's my code: private void Page_Load( object sender, System.EventArgs e) { ...Show All
.NET Development Sqlparameters open or close
anyone know for sqlparameter could be open or close No, the SqlParameter object doesn't have the concept of state, where it could be open or closed. Is there a particular scenario that you have where this would be useful Could you provide more background on what you are doing that is prompting you to ask this question Maybe there is another way to do what you need to do, without such functionality. Thanks ...Show All
Visual Basic GDI+ Questions
I have this beloved old VB6 program that has been converted to a sleek new vb2005 program. It's name is "Color" Color is a utility. It will sample pixels color anywhere on the desktop. It also gives me the x-y coordinates for a given location. It gives me the RGB color value in hex and decimal. I find that I used Color to measure dimensions a lot. and that I'm always having to(x1-x1) and (y1-y2) and awful lot. It's natu ...Show All
Windows Forms Asynchronus WebService call Progress Bar
I have a WebMethod that I'd like to call asynchronusly and be able to display a Progress Bar. What's being sent to the WebMethod on the WebService is a byte array. I'm fairly new to asynchronus calls and was wondering if this is possible& ...Show All
Visual C++ How to Create a New Instance of MyApp ???
How Can Io Create a New Instance of my Application.. You can use FILE_FLAG_DELETE_ON_CLOSE This is a godd link that describes everything: http://www.microsoft.com/msj/archive/SF9C.aspx ...Show All
Visual C# About Conditional Compilation Constants ?!
Hello all, I will transfer the project from VS2003 to VS2005. Is there any Conditional Compilation Constants has difined for VS2005,so we needn't difine it and use it directly. I hope some one has been write the code like this: VS2005 is defined by me in the properties of the project #if VS2005 //comiple with VS2005 #else Compile with VS2003 #endif A better way is to do this with project templates. ...Show All
Visual Studio What is wrong with this code!
Hello, I am using the following code to retrieve my report. I am using Asp.net(version 1.1) & sql 2000 & Crystal Reports 9. My query is retrieving exact result to the xml file, but crystal report is not retrieving the exact result, it's not taking the condition of the query, it simpy shows all teh recrds in the table. Can you please help me to solve this Thanks Ceema crpt = New BlueRegisterEnglish 'crpt = New Form1A '******** ...Show All
