GrayMatter Software's Q&A profile
Architecture Code Generation - MyGeneration, CodeSmith, GAT/GAX or DSL?
I am looking to generate code based on a database structure. I want to start with a base template and add things I need to it. My goal is to auto generate the boring repetative code so I can focus on the most important areas. I have been looking at CodeSmith and MyGeneration which both have starting point templates that use Enterprise Library but I wanted to see what Microsofts approach was. Is it Guidance Automation or DSL If so does anybody have an example of how to generate DAL classes and entity classes from a database using these tools Fellas, I’m sorry but I insist: aren’t we facing the issue from the solution perspective without considering what the problem actually was The original issue ...Show All
Visual FoxPro how to shutdown the OS without error
good day to all. i use my Net monitoring system developed in VFP at my net cafe for almost a year now, and so far it works fine. But there is a little problem that although it don't bothered the user and me but it much better if it does not shows-up. When i shutdown the workstation or restart it from the server, before it will totally close there is sometimes that a VFP error message will pops-up, which will prompt to send the error to MS. How could i prevent such error as if there is still missing in my shutdown code, clear events, clear dll's, etc and etc they've all there already. it seems that the PC can't wait any longer to shutdown. Thanks for any help regarding this matter Madix_t wrote: Good morning to all, i try th ...Show All
Visual C# how to check if remote user has administrator privileges? (WMI?)
Hi all, I can't seem to find an answer to this problem. I thought WMI would provide a way to check this, but it seems like it doesn't. I need to be able, from C# (or even from C++), to check, given the username, if that user is an administrator on that computer. It needs to be fast (around 1s at most). Any ideas Thanks in advance, Cosmin. We actually don't have an action to perform. It's just a peeking operation, to do a small check on wether or not a user is admin. Also, we need to be able to check if a given password is the admin's password. Or we could just use WMI to perform an operation that needs admin privileges and leaves nothing behind (like accessing a specific directory or something). ...Show All
Visual Basic Do I need an addin to print barcode in VB2005?
I'm looking into purchasing VB2005 will I need more purchasing to be able to print barcode (128) Where can I find sample codes for doing this Hi, Take a look at these screenshots.>> get the program demo from >> http://www.tec-it.com/asp/main/startfr.asp LN=1 under the downloads section. It can deal with loads of barcode styles, not just CODE128 http://i13.photobucket.com/albums/a272/u-might-want-this/Barcode_Prog_View.jpg http://i13.photobucket.com/albums/a272/u-might-want-this/Barcode_Site_Pic.jpg You can print off samples only one at a time in different widths and heights, with or without the number shown above or below the barcode. Only it has the wor ...Show All
Architecture O/R Mapping and visual controls
Hi I'm rather new to .Net: what is the best way to link persistent domain objects with data-aware visual controls What I'm trying to do is to use a rich domain model, get an O/R mapping tool/framework (e.g. NHibernate) to take care of persistence but still be able to use Girds and other DB controls. Any help would be greatly appreciated. Andrei. Thanks for the prompt reply Patrik. As I said I'm rather new to .Net so perhaps the answer to my question is quite obvious... Let's say we have a class Person class Person { public String Name; } which has NHibernate mapping and can be loaded / persisted from/to DB. How would you get it displayed in a grid (I mean one obvious and very naive solution would ...Show All
Visual C# Missing a Cast ??
I have a function something like this... private IList < CPhone > Numbers { get { IList < CPhone > numbers = new List < CPhone >(); } } When I try to call it....something like this contact.Numbers = Numbers; I get an error message saying Error 2 Cannot implicitly convert type 'System.Collections.Generic.IList<CPhone>' to 'System.Collections.IList'. An explicit conversion exists (are you missing a cast ) There is a return statement, I think I just deleted it with unncecessary code for the forums its there something like return numbers; ...Show All
.NET Development - Are there 4 ways to access the current authenticated user or am I misunderstanding the whole idea
( I don t think I got the security in ASP.Net anyway) 1- System.Security.Principal.WindowsIdentity.GetCurrent().Name and by using: 2- HttpContext.Current.User.Identity.Name 3- Thread.CurrentPrincipal.Identity.Name 4- System.Web.Security.FormsIdentity So what s, pls, the difference between accessing the current user by using each of the methods listed above and when do we use each of them and why we should use one method and not the other from hose I copied above. Thanks a lot p.s: let me kn ow if i am supposed to post this question somewhere else Replies: 1) Correct, you cannot directly reassign the Windows identity, but you can create another Windows identity token by using the LogonUser API in conjun ...Show All
SQL Server File and Spreadsheet Frustration
Hi, Two problems / questions I could do with some help on please...... 1). How do you clear a spreadsheet before loading it I am sending a spreadsheet by Email on a regual basis. Each time I run my SSIS package the data is appended to that of the previous run. I need just the contents of this data load to populate the spreadsheet each time. I have tried various methods / techniques for achieveing this so I just need to know the accepted method. Sorry if this is very basic ( as it should be !) but I seem to be missing the point somewhere. 2). I have tried to resolve issue 1 above by having an empty 'template' spreadsheet and copying that one over the top of the previously populated one. I get an error saying that the source spreads ...Show All
Smart Device Development Data Applications - Feedback Required
Many of us develop Smart Devices data applications that require some or most of the following: a. Access to the backend server database from your device application. b. Caching frequently used data within SQL Mobile on devices thus enabling offline scenarios where SQL server connectivity is not available. c. Use RDA, SQL Merge, Web Services or hand-crafted mechanism for synchronizing SQL Mobile with backend SQL Server database. I’m working on certain features that provide out-of-box support for writing offline data applications on devices that can be easily synchronized with the backend server database. Many developers are writing such applications however the current synchronization mechanisms are ei ...Show All
Windows Forms Retrieving information from a DataBase populated DataGrid
Hi I've searched and searched for an answer to my question without any luck so I thought I'd post it. I have a MS Access DataBase of the Top 40 singles. What I want to be able to do is list the Title of all the songs in a dataGrid and then be able to click on a song title and display the artist name on a label (or anything else for that matter). My code so far gets the information from the database and sticks the list in the dataGrid all I need to know is how do I click on the Title to find the artist. Any help is much appreciated. Pom. OleDbConnection * connection = new OleDbConnection(); connection->ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Music.mdb"; try { connection->Open(); } ...Show All
SQL Server How do I pass values to my Stored Procedure in Remote Report Mode
Hi, I have created an report by selecting stored procedure as dataset data source. Now when I run the report, it is asking for the parameter values for my stored procedure, but I want to pass the values from another .aspx page. Could any one please let me how do I pass values to the stored procedure parameters in the report. I tried doing the Local method of reports, but the printer icon is not appearing in that, if I use Reportviewer control of my own. When I use the Remote method of reports, I am facing this problem. Please could any one help me in this. Regards, Sudhakara.T.P. Are you calling the report in a HTML frame Then you can pass the parameters using URL parmetrization. HTH, Jens K. Suessm ...Show All
Visual Studio Express Editions cannot launch Microsoft Visual Basic 2005
Went to this site and obtained the vbsetup http://msdn.microsoft.com/vstudio/express/vb/download/default.aspx Everything seems to set up correctly, in the c:\program files\microsoft visual studio 8\ folder there is a \Microsoft Visual Basic 2005 Express Edition - ENU folder, and a \VB folder, with others. There is no program group created, no desktop icon, no quick launch icon. How do I start this thing thanks, very much for any help please do not create duplicate/similar topics - stick to this one: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=692373&SiteID=1 I have now merged the threads together ...Show All
Software Development for Windows Vista When I run Windows CardSpace,It show a System.ExecutionEngineException!
When I run Windows CardSpace,It show a System.ExecutionEngineException! Why I'm afraid you would need to post your question to the correct forum: http://forums.microsoft.com/windowsonecare/default.aspx siteid=2 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Game Studio Express/Framework is ready!
Get it here: http://msdn.com/xna/gse XNA Dev Center (going live soon) will have the readme file along with an updated FAQ. Enjoy! ...Show All
SQL Server REINDEXING?????
I have a big table with more than 7583117 records. The table is updated every day during the End of the day activity. There is a job running a query on this table for updating another table. The table is not reindexed and the job running freezes on the EXECUTING state many times is it because of not reindexing the indexes Thanks in advance Jacx When you say it "freezes" what do you mean, where are you seeing it "freeze" Have you run the Profiler to see what is reallly going on How are you updating the table and selecting the records Are you doing: INSERT INTO XXX SELECT ...... If so, that is probably expanding tempdb when you see it "freeze" because it writtes the entire sele ...Show All
