Juraj Oprsal's Q&A profile
Visual Studio Use DExplore to show help of .NET Framework 2.0 SDK, FAIL
Hi all, I want to use DExplore to show the help for classes in the framework or members of these classes when my customer install .NET framework SDK. I have implement it with .NET Framework 1.1. But after changing to .NET Framework 2.0, it fails. In framework SDK 1.1, the URL is quit simple. e.g.: ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrf SystemObjectClass Topic.htm is URL for System.Object . But in framework SDK 2.0, the format of URL is changed. :( e.g.: ms-help://MS.NETFramework.v20.en/ cpref2 /html/ T_System_Object .htm is URL for System.Object . Oh, yes, I can build the URL. But the hard problem is: Please compare the following cases: ms-help://MS.NETFramework.v20.en/ cpref2 /html/T_System_Object.htm ...Show All
.NET Development read binary, import into sql server 2005
I would like to import data from binary files into sql server. Can that be done with ADO.NET Also, the files are from a legacy custom db and nobody at the client's facility knows the format. How would one go about determining how the data is laid out in a binary file rwbogosian wrote: I would like to import data from binary files into sql server. Can that be done with ADO.NET Yes, Public Structure SqlBinary Member of: System . Data . SqlTypes Summary: Represents a variable-length stream of binary data to be stored in or retrieved from a database. rwbogosian wrote: Also, the files are from a legacy custom db and nobody at the client's facility knows the format ...Show All
Visual C++ Problems with delay-loading DLLs
Hi. I have a DLL module.dll and I want my application to use delay-loading. The idea is that the module may be missing and the app should detect that and continue with limited functionality. I'm using the example from here: http://msdn2.microsoft.com/en-US/library/8yfshtha.aspx However I'm seeing 2 problems: 1) The __HrLoadAllImportsForDll function uses memcmp instead of stricmp to compare the argument with the list of delay-loadable modules. It turns out the string in the table is "module.DLL". So how do I know in advance what is the correct case Is it guaranteed to be that, or can it sometimes be "Module.dll", "MODULE.DLL", or something else Where does the case come from 2) Contrary to the exa ...Show All
Visual Studio Express Editions one last question with a boolean
well i have one last question on my program like before. the idea of it is to type in a child's last name and it will read from a txt file with all its info and bring out the info in a rich txt box. otherwise it will say "child not found". well right now no matter what i put in im getting "child not found" Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim strChildFirstName As String Dim strChildLastName As String Dim chrChildGender As Char Dim strParentLastName As String Dim strParentFirstName As String Dim chrParentRelationship As Char Dim decAnnualIncome As Decimal Dim intParentAge As Integer Dim intNumberOfKids As Integer Dim Readfile As System.IO.StreamRe ...Show All
SQL Server copy subscription
I have to insert a lot of subscription, that look very similiar. How can I copy one subscription to another Or is it possible to use a subscription as a template Thanks ...Show All
SQL Server Unexpected result set from query with multiple columns in the order by clause
I want to select the ten most recent articles in my database. So I start out with a query like this. SELECT TOP 10 * FROM Article WHERE Publish = 1 ORDER BY PublishDate DESC However the PublishDate is only specific to the day and contains no time information. In the cases where two articles are published on the same day they should be additionally ordered by the date/time that they were created. So I modified the query to look like this expecting the results to be what I intended. SELECT TOP 10 * FROM Article WHERE Publish = 1 ORDER BY PublishDate, CreatedDate DESC However, now I seem to get back the earliest articles in my database based on both the PublishDate and CreatedDate columns. What am I ...Show All
.NET Development RemotingException: "Attempted to call a method declared on type 'xxx' on an object which exposes 'yyy'"
I've got a an abstract base class: public abstract class daDataFactoryBase : MarshalByRefObject , IDisposable {blah blah blah} in assembly 'Bmt.Shared.DataAccess.Factory'. I've got a bunch of concrete classes that inherit daDataFactoryBase, e.g., public sealed class daActorFactory : daDataFactoryBase {blah blah blah} in another assembly, 'Bmt.InOurLeague.DataAccess.Factory'. When I call a concrete method called Create() on the remote class, I get a RemotingException that tells me "Attempted to call a method declared on type 'Bmt.InOurLeague.DataAccess.daActorFactory' on an object which exposes 'Bmt.InOurLeague.DataAccess.daPersonFactory' (stack trace is below). The 2 classes do in fact bot ...Show All
Visual C++ Help please urgent
This is a currency class i am so lost on how to do the empty constructors and methods please help!! [code] Currency::Currency():_dollars(0),_cents(0){} Currency::Currency( const Currency& curr) { _dollars = curr._dollars; _cents = curr._cents; } Currency::Currency( int dollars, int cents):_dollars(dollars),_cents(cents){} Currency::Currency( float curr) { } Currency::Currency( const string& curr) { } int Currency::getDollars() const { return _dollars; } int Currency::getCents() const { return _cents; } void Currency::setDollars( int dollars) { this ->_dollars = dollars; } void C ...Show All
SQL Server Calling MDX query in TSQL Stored Procedure to Pass Parameter
Hi; I would like to know if it is possible to call MDX query from TSQL Stored Procedure to pass parameter Can I create MDX query dynamically If it is possible then can anyone provide some examples. For more details; let say I have one MDX query which has parameters which I would like to call from a TSQL stored procedure and pass that parameter from Stored procedure. Any help would be apprecaited. Thanks M. Essa Mughal Yes...you can send MDX from SQL but for this one method that I know is to create a linked server to the OLAP database. after that you can use openquery to pass the MDX. ex: Select * from Openquery(<Linked_server_name>, 'select [measures].[v ...Show All
Visual Studio Express Editions can't find solution
I'm trying to send the solution of a website to someone but I can't find it. I used the search folders option and it's not there. I have three websites saved on VWD and only one of them has a .sln file. I don't know why the other two don't. Is there a way I can create a .sln file for a website Thanks. VWD and ASP.NET projects in VS 2005 do not use project files and instead are stored in a directory tree much like a website would be on a server (in other words they don't have solutions). If you are trying to send a website you should zip up the folder where the website is stored and send the zip file out. Let me know if this helps! ...Show All
Visual Basic FlowLayoutPanel
Hello All, I am trying to use the FlowLayoutPanel control, but I'm having a real challenge. I am dynamically (at runtime), trying to add text boxes and NumericUpDown controls to a FlowLayoutPanel. Formatting is my problem. In one cell, I want to add a textbox followed by a space or 2 and then the NumericUpDown control. I can’t seem to come up with the right combination to format this. Any ideas Thanks very much. As an alternative, you may want to check out the datagridview. The table layout panel is a great tool, but depending on what you are trying to do, the datagridview may be a better match... Best regards, Johan Stenberg ...Show All
Visual C# Generic type parameter constraint is not enforced correctly
or at least it doesn't seems... Hello, I'm working on a weird but really usefull design that allows to write static methods in generic type using the type parameter. The type parameter is then infered, so the FxCop team told me it was a design that could bypass the DoNotDeclareStaticMembersOnGene ricTypes rule. To make it more understandable, here is a short code sample : public abstract class BaseGenericClass <T> where T : BaseGenericClass <T>, new () { private static T instance = LoadInstance(); public static T Instance { get { return instance; }} ...Show All
Visual Studio No HyperLink event in WebForms ReportViewer?
Why oh why isn't the WebForms ReportViewer exposing the HyperLink event I need it in order to invoke a method on my page based on information in the link in the report. Any way around this Thanks in advance! The hyperlink event is always handled by the browser, so there is never a postback that would fire an event. There can also be a problem depending on the HyperlinkTarget. If HyperlinkTarget is "_blank", to cause the link to show in a new window, then displaying that new window as a result of the page reloading will usually be blocked by pop-up blockers. You can work around this problem by using a bookmark instead of a hyperlink. Set the bookmark to the url you want to use, then handle ...Show All
SQL Server [cross-column & cross-row consistency]Transaction Consistency In Sql server 2005 sp2.
(The previous edition of this post has some written errors which can make what I say unclear .Now those written errors are correctd.) [cross-column & cross-row consistency] Transaction Consistency In Sql server 2005 sp2. How are cross-column and cross-row consistency in SQL SERVER 2000/2005 Now there is a table named T,and its structure is as follow: T(value , twice_value), which means [twice_value] is twice of [value]. I filled it with some rows ,then it looks as follow: -------------------------- value |twice_value -------------------------- 1 |2 32 |64 78 |156 -------------------------- Then I run the statement: ---------------------------------- Update T set [value] = [value] * 2 ,   ...Show All
SQL Server Security to Create .Net Database Assemblies
If a user is NOT in the SSAS server role but is a database administrator on a particular database, should he be able to add a .Net assembly to the database I cannot make this happen. Even when using "Safe" permissions and when using the credentials of the current user. Can anybody tell me if this is by design or no I can't find it in the MSDN docs either. That is correct: In Analysis Services 2005 only Analysis Server administrator can deploy .NET assemblies. Hope next version of the product will give you more flexiblity. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
