snohelty's Q&A profile
Visual Studio Express Editions VB.Net & WMI & BCD
All, I am trying to use enumerateobjects() in the BCD WMI programming and are having some problems. I have everything working except for this one function. If anyone has any experience with this please help. Here is the MSDN information on it. http://msdn.microsoft.com/library/en-us/BCD/bcd/enumerateobjects_bcdstore.asp My biggest problem is that I am getting a "Type Mismatch" error any time I pass a UInt32 into EnumerateObjects. That is what the value type is suppose to be but for some reason it is not working. I have tried to use Convert.ToUIn32(Cint(1)) and Convert.ToUInt32(CInt("1")) and even just use 1 and many different variations and I always get the same errors. I tried changing the type from UInt32 ...Show All
SQL Server Another Mysterious issue in SQL 2005 & SSIS
Explain this: Package runs successfully from BIDS It runs successfully in SSIS store It runs successfully when I manually execute the Job JOB FAILS EVERY FREAKING NIGHT TheViewMaster wrote: Jamie Thomson wrote: Scheduled Packages http://wiki.sqlis.com/default.aspx/SQLISWiki/ScheduledPackages.html Start by changing to the Operating system ( CmdExec ) sub-system. You should then get the full message output. How exactly are you suppose to change the Job subsystems When you setup the job step, select "Operating System (Cmdexec)" from the 'Type' dropdown box. -Jamie ...Show All
SQL Server sql login
I am just learning Sql 2000. I need to give access specific databases on a server to new users. When I right click on the database to create a new users,in Enterprise manager, only the server I am on shows up. The new users are not yet in the server. The dropdown doesn't give me access to browse to a company server that users are on. Am I missing something How can I give users access when I can't find the company server Please help. I misunderstood the question, but I think I understand now. Correct me if I am still missing something. The scenario is: You have a SQL Server 2000 instance on machine_a, domain_1 You want to grant access on this SQL Server to users from domain_2 You ar ...Show All
Visual C++ MIDL : how to declare a function returning a struct?
Hi! I'm new to MIDL and I want to declare a function that will return a struct. Here's what I tried: typedef struct MyStruct { int i; }; [ id (17), helpstring ( "GetMyStruct" )] HRESULT GetMyStruct([ retval ] MyStruct ret); Obviously, it doesn't compile; I get this error: error MIDL2281 : invalid use of "retval" attribute : [ Parameter 'ret' of Procedure 'GetMyStruct' ( Interface 'IInterfaceCOM' ) ] I wonder what is the good way to achieve that Any ideas Thank you for help! Thanks for your answer HCTwinJava! I tried what you proposed, but unfortunatley it didn't work... My interface already implements the IDispatch interface and my C# app can see it. What I want to do is ...Show All
.NET Development VS 2005 WebService Structers
In a VS 2003 web service I could create a public structure and have my web appliation use this structure and pass it along to the web service. In 2005 it seems it will not show this structure as a datatype in my web application, no matter what I try. Any ideas Thanks. (web service is below, the web service has many functions which I can run fine, but this structure is hidden) Public Class SWWS0001 Inherits System.Web.Services.WebService Public Structure StockStatusRptStruct Public pMgmtName As String Public pMgmtType As String Public pProductName As String Public pProductType As String Public pItemStatus As String Public pItemStatusMDX As String End Structure 'many ...Show All
SQL Server AdventureWorks Owner
Hi, I've installed AdventureWorks, attached it to SQL Express and wanted to see its Database Diagrams. When I click on the Database Diagrams, I get this error message: TITLE: Microsoft SQL Server Management Studio Express ------------------------------ Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects. ----------------------------------------------------------- I really see that in properties for this database there's no owner, while if I do sp_helpdb 'AdventureWorks ...Show All
Visual C# C# Or C++ .net?
Does C# Have The Power Of C++, Or C++ Still The Best I Am Talking From 3D Application Side If you plan on using legacy/existing C++ code via COM I would stay away from C#. You can't pass an array from C# to C++ via COM. This can pose a serious problem. If you decided to write certain speed critical parts of your code in C++ and call it from C# you can not pass in arrays. Keep that in mind. ...Show All
Visual C# Element 'ProjectProperty' is not a known element.
I have this problem: Element 'ProjectProperty' is not a known element. This can occur if there is a compilation error in the Web site. Can anybody help me! Thank's! frederikm wrote: hi i was under the impression that you are developping some extension for sharepoint 2007... otherwise, why would you be using the sharepoint dll I'm making a site whith the sharepoint 2007, but i didn't antherstand what is the moss ...Show All
SQL Server The merge process is cleaning up meta data in database 'xDatabase'.
Hi all, When I get this message "The merge process is cleaning up meta data in database 'xDatabase'." at distributor MS SQL 2005 replicator monitor on one of his suscription, this proccess generate so proccess charge to the suscriber that users note difference in performance. I wonder if exist a way to change some kind of parameter for this proccess run on specific schedule Any help would be appreciated. other info I had suscribers that only replicate in one way, maybe this metadata is causing this overcharge. Thank you Leo, I changed retention period since my suscriptions was expire without reason, and someone said that this is an error that would be corrected with SP2. ...Show All
.NET Development Any CPU and Managed C++
I have a C# smart client built using “Any CPU”, the application references a managed C++ assembly that I’ve compiled into both x86 and x64 dlls. Is there any way to redirect the assembly loader to load the correct dll given the client’s platform (apart from manually) Is there any way to configure ClickOnce to deploy the correct dll thanks, rich You are correct in your assumptions. As you already know there is no app config setting to redirect based on bitness. Also, you may bind to different assemblies at runtime than you built against. That include mixing 32bit and 64bit. In general if people are deploying any cpu entry points they are truly agnostic. Have you evaluated how managed C++ is being used Can you u ...Show All
Community Chat Virtual Intelligence, AI
People we need to talk about this. When people talk about this, they say its based on storing and retriving information. The learning process for the computer would be to save as much information as possible from its interactions with the environment. But when I think about this, I feel its a restriction to learning. Consider this, when we are small adding two numbers 2 and 3, would be done on fingers or on a peace of paper. But when we grow up we dont use the fingers or paper. So my point is: The input(add 2 and 3) remains the same, also the output(5) remains the same. So where did the process of learning go. Thus, I would suggest that a machine should not only learn and save in information, it should also learn to proce ...Show All
SQL Server How can I output subset of a table to a flat file in SSIS?
Hi All, I have a table A. I need output subset of a table A to a flat file using query, like: select A.* from A inner join B on... ..... inner join C......where left(A.id, 3) = B.sid.... AND B.num between 100 and 200). How can I do this in SSIS Which data flow item I may need Thanks Well there are several ways you could approach this. One possibility is to use a "Data Reader Source" item. In the Advanced Editor of this item, under the Component Properties tab, you may specify a SqlCommand. Another possible way is to use the "OLE DB Source" item. Double click the item to view the "OLE DB Source editor". Change the data access mode to "SQL command". Some cont ...Show All
Smart Device Development Select Image?
on a smartphone running .NET CF 2.0 SP1 (WM5), is it possible for an image control (Picturebox) to have it selected/focused As I navigate, I am unable to get its focus, however on PPC I can. If it is not possible on the smartphones, what other alternative is there so that the user can click on an image and I can handle the click event Can't you load the image onto a button Buttons are definitly selectable and you can learn to make ImageButtons for CF 1.0 here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/imagebutton.asp ...Show All
Visual Basic how do we know how a form s been closed
Hi, If I have a form with cancel button, accept button . .. I want to know how the for s been closed. the reason is I have a treatement that I should do only of the user s clicked Accept button. otherwise I should do another treatement. I want to detect how the form s been closed in the form code events itself and not the form that s loaded this form. Thank you well one way is to create a boolean value globally and set this to false. When the user presses the accept button, set this value to true. in the form_closing event (or wherever you are going to perform your action), check this value. If its true then you know the user pressed the accept button, otherwise its false therefore something else is closing it. Does this he ...Show All
Visual Basic Accessing functions
Hi, I'm wondering if there is a possibility that i can access a function from a seprate form, let's say DoThis() in frmMain. Can i access DoThis() in frmAnotherForm like the way we can access objects ex. MyNameSpace.frmMain.SomeObject I'd like to execute that function from another form heheh... Any ideas Please and thanks! Dave. One common way is to pass a reference to the form in the constuctor of the second form, so that from Form1 code: Dim F2 as New Form2(me) Then in form2: Dim Frm1 as Form1 Public Sub New(Frm as Form1) Mybase.New() Frm1 = frm End Sub Private Some Sub() frm1.DoSomething End Sub ...Show All
