Haydee's Q&A profile
.NET Development How to locate an loaded assembly?
I simply want to know how to resolve if an certain assembly (some *.dll file) is loaded (used) by other .Net application. AppDomain.CurrentDomain.GetAssemblies() gives you the list of all assemblies loaded in the current app domain. Michael Taylor - 2/7/06 ...Show All
.NET Development Regular Expression
Could anyone please provide an regular expression for the following scenario I have got a string as follows, \viewkind4\uc1\pard\cf1\fs22 1 \par I want to check whether the string ends with a rtf code like "\par" in this case. Some times the string can be as follows \viewkind4\uc1\pard\cf1\fs22 1 Thats why I want to check whether it ends a valid rtf tag The rtf's tag in the above string are as follows \viewkind4 \uc1 \pard \cf1 \fs22 Thanks in advance You -COULD- do a regular expression to check that, or you could use the .Contains method with the string and check if it has the RTF codes. ...Show All
Software Development for Windows Vista Vista's laptops wake-up duration versus Apple's iBook wake-up
Hi all, I am an XP users on Thinkpad It takes quite a while for putting my XP Thinkpad to sleeps (close the lid and wake a few seconds) and it takes some time to wake it up (like 8-10 seconds) It struck me that my friend's iBook can wake up instantly without much delay, like around 1 second / in a blink... I think this instant-wakeup feature is a very pursuable goal if Vista really wants to please the laptop / mobile users --- make Vista wakes up like the WindowCE does In some sense, this can be much more important than letting the users to have a sideshow display... Hope this can be achieved in Vista - So O ...Show All
Windows Forms Installing Services with Clickonce?
Hey everyone, I am in need of a solution here .... I am looking to install 5 Windows NT Services (and update them occassionally) through an install. The old method used MSI, but I like the looks of Clickonce, and it seems to satisfy all the other scenarios which I am seeking. Can anyone guide me as to whether it is possible to installed and update services through Clickonce, or am I better off just using MSI Thanks a lot.... I’m 95% sure that ClickOnce does not support services. It was developed principally for client applications ...Show All
.NET Development Visual Studio 2005 NEW Data Access Methods!
Hi, I've been using Visual Studio 2003 for a few months (having come from Java). I had just got used to using datasets and data adapters and stuff, then Visual Studio 2005 comes along and changes it all !!! It's supposed to be easier, but I dunno! My question, is this : - I have just created a datasource called PhonebookDS which is my single oracle table. I dragged a single field over to my blank windows form, and it created a TableAdapter and a binding source for me. All OK so far! But, HOW do I access the original SQL string so I can change it from 'SELECT * FROM PHONEBOOK' to 'SELECT * FROM PHONEBOOK WHERE SURNAME = ' ...Show All
.NET Development IStream.Read documentation
The msdn documentation for IStream.Read says the following about the pv parameter: When this method returns, contains the data read from the stream. This parameter is passed uninitialized. What does uninitialized mean here As far as I can tell this method does not work as expected unless pv is a byte array with length equal to the cb argument. If I use the interface from C# it wont even compile if I leave pv uninitialized. Instantiation is slightly different than initialization. You instantiate a variable when you create it using new or by simply using a declaration statement. However the initial v ...Show All
SQL Server Programmatically Render Report to PDF
Hello, I'm looking for an example on how to programmatically render a report to pdf in C#. I don't want to use a url with the rs:Format=pdf querystring. Any help would be much appreciated!! Hello, Have a look at this doc page: http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx There is a full example of how to render reports programmatically using the Render method. -Chris ...Show All
Visual C++ Error PRJ0019 : A tool returned an error code from "Performing registration" ProjectName
Hi, I'm facing one problem when compiling vc6 project into vc8 compiler. Error PRJ0019 : A tool returned an error code from "Performing registration" PantherConfig I have gone thru a number of links providing solution for this but couldn't get correct solution. I think it is having problem in registration dll but not sure. In Build log it is telling that "Cannot open the specified file testerinfoerrors.err for reading" while this file is existing. Please highlight some point over this. Thanks in advance. Madhur Does running regsvr32 to register your component on the command-line (outside the IDE) work at all If not, you'll need ...Show All
Visual C++ problem with CComBSTR::AppendBSTR, do not work properly
in my program, i have some codes like this void fun1(BSTR bstr) { CComBSTR combstr; combstr.appendbstr("something"); combstr.appendbstr(bstr);// <-- cant append // but if i use, combstr.addend(bstr), it works well } why AppendBSTR cant append a BSTR According to docs, doing such a thing is expected to work. Perhaps something else is wrong with your code; could you post your exact code http://msdn2.microsoft.com/en-US/library/d2kbdsy1.aspx ...Show All
Visual C++ C Program. Desperately seeking help.
This is a C program. In the program, I open the letter_u.ic, then zoom it twice. Then I'm suppose to save it into a packed file. The thing is I can't get it to save properly into an array and when it's opened, the letter icon comes out garbage. Also could someone tell me how I could create a new icon by manually drawing I am suppose to draw a 8 by 5 arrow icon. Can someone please help me And if can do some explanation Really appreciate any help. Thanks in advance. ============================================================== #include <stdio.h> #include <stdbool.h> #define MAXSIZE 512 /* the size limit f ...Show All
SQL Server SP_SETAPPROLE - Get Sql Err Message 15422 when activating application role
Hello, I am trying to activate the Application role feature in my C/C++ (MSVC 6.0) using ODBC calls. Every sample I've seen (only a few) uses VB, C# or T-SQL. I have trawled the net using a google search and have found nothing. I want to be able to track SQL user logins but have the security based on the interface I provide through my program. The Application Role feature is perfect for this reason. This is a snippet of C/C++ ODBC code I'm using. I have a valid statement handle allocated and is freed upon function return. sqlrc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, parmlen[0], 0, app, parmlen[0], &cb[0]) ...Show All
Visual C# single instance of form
hello, currently i have forms that are selected from a menu but multiple instances seem to be allowed. i would like to have only a single instance of each form allowed, but would like the user to be able to recall the form again after closing the form. other threads on this topic have code that successfully allows only one instance, but the object is disposed of after closing the form via the use of static members. (i decided to post because the search function of this forum is not working currently ) is there a toggle switch in the form design properties window that i am missing this seems like i ...Show All
Visual Studio Extending the class designer
I am looking into extending the CD to use it as the GUI for my code generation tools. I wanted to: 1) Add custom (code generation) objects to the class designer tool palate 2) When my custom objects are dropped on the designer surface I would like to provide a range of custom properties/actions on them 3) Support custom types of relationships between these objects 4) Interrogate the class diagram to extract the custom objects and their relationships Can anyone offer some advice on where to start I realise that the API's for the CD may not be documented, I plan to reverse engineer any relevant code and check it out this weekend t ...Show All
Visual Studio 2008 (Pre-release) UNIDRV.Dll
i'm in a big big probelm i need to install my printer which is hp dekjest 3420 but every time i try to do so i got a wrong message that 'UNIDRV.DLL" is missing i need a fast reply or how can i download these file notice : i don't have the windows xp pack 2 CD plz reply fastly Cool WPF problem… ;-) Here you get such a UNIDRV.Dll http://www.dll-files.com/dllindex/dll-files.shtml unidrv Maybe it helps you… ...Show All
Visual Studio 2008 (Pre-release) How to set a trigger on a single element based upon the property of a child element.
The SDK example demos how to setup a trigger in a style and tie it to a property of an object to which that style applies <Style x:Key="Triggers" TargetType="{x:Type Button}"> <Style.Triggers> < Trigger Property="Button.IsMouseOver" Value="true"> <Setter Property = "Background" Value="Red"/> </ Trigger > < Trigger Property="Button.IsPressed" Value="true"> <Setter Property = "Foreground" Value="Green"/> </ Trigger > </Style.Triggers> </Style> Let's say I want to ap ...Show All
