Buda56's Q&A profile
Smart Device Development Resource access problems using DLLs
I'm trying to write an application with multilingual support using dlls that contains resources like strings and dialogs templates specific for each language. In order to use the resources in the dll I have found a solution, which consists of loading the resources from the dll and in setting them as default resources: HINSTANCE hInst = AfxGetResourceHandle(); // Get current resource AfxSetResourceHandle(AfxLoadLibrary("somedll.dll") ); // set dll resource // code which uses the resources from the dll AfxSetResourceHandle(hInst); After having used the resources in the dll, I reset the resource handle in its original state, since I also have resources in the exe file. I'm looking for an alternative solution, which let ...Show All
SQL Server how to group ?
Hi, How to display the table in the below format Table1 City Customer AMount Chennai Raja 5000 Delhi Ravi 2000 Bombay Jambu 4500 Chennai Raghu 1500 Bombay Siva 2000 Delhi Jas 5000 OUtput Chennai Customer Amount Raja 5000 Raghu 1500 Delhi Customer Amount Ravi 2000 jas 5000 Bombay Customer Amount Jambu 4500 Siva 2000 HOw to do that This is certainly possible in SQL, but the formatting of data in such a manner isn't really what SQL Server is suited to. However, you could easily generate such a report using Reporting Services and render the output to a suitable format, e.g. XLS or HTML . Would this be a possibility ...Show All
Software Development for Windows Vista Using RuleConditions on Designer Hosted Apps
Hi. I have a wf designer hosted in my win32 app. I'm trying to use the IfElseActivity on that application. I've created a form that allows the user to edit their Then / Else conditions and then, with that info, I create a new RuleConditionReference, and assign it to the IfElseBranchActivity, like this: RuleConditionReference reference = new RuleConditionReference (); RuleDefinitions rules = ( RuleDefinitions )(( CompositeActivity )container).GetValue( RuleDefinitions .RuleDefinitionsProperty); if (rules == null ) { rules = new RuleDefinitions (); (( CompositeActivity )container).SetValue( RuleDefinitions .RuleDefinitionsProperty, rules); ///container is the workflow } rules.Conditions.Add( myRuleCondition ); / ...Show All
Visual C# Get all server exception...
Hi, Is there a way to make a page to handle all exception thrown by a web application LIke timeout, functions exception, cause I want to receive these errors by mail, but from only one page. Thanks Thanks... Can you give me an example of "Alternatively you can handle it at the page level by deriving all classes from the same base class. Within this class you can override the OnError method to do any handler logic" ...Show All
Visual Studio Express Editions Messages From site
Hi All, Does anyone have anyideas on how to display latest news from a website into a vb.net app basicly I want to keep people updated when a new playlist is availiable etc. ive looked at rss, but dont need loadsa catagories etc. Is it possible to display a txt file on a server for example in an app Hope someone can help, Stuart Sure, debate is good. I just use my SQL server to stop the table from wobbling . Seriously, both approaches have merit: it really depends on some factors such as: how extensive is the updates list, are multiple users going to be updating it, how often, how many downloading, etc. My feeling is, get it working in some way to see how useful it is then if it's proving t ...Show All
Visual Basic How to print additional table's data in EXcel tab (Windows application)
Using VB 2005 To all Users: I have this problem when i using vb and transfer data to excel to print. The problems comes as the 1st table is able to print while the rest of the table tab do not have data.. Could anyone help me with this asp I will be greatful Pls provide sample code/links asap ya! i mean is that i have more than 1 spreadsheets. But the data is not filled up! Could u help me with this ...Show All
Visual Studio 2008 (Pre-release) Access Database Connectivity in WPF Applications
Hi everybody ... i am building a WPF application and i want the application to access a database that i made using Access 2003. string myConnStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\Folder\\Dbase.mdb; User Id=admin; Password=" ; OleDbConnection myConn= new OleDbConnection (myConnStr); myConn.Open(); uptil now there is no problem and if check myConn.State --> it gives opened :)\ Now i want to start displaying records and manupilating them , so i wote : string myQuery = " SELECT Name From User" ; OleDbCommand cmd = new OleDbCommand (myQuery, myConn); OleDbDataAdapter da = new OleDbDataAdapter (cmd); DataSet ds = ...Show All
Windows Live Developer Forums VEMap.FindLocation Suggests Addresses That Don't Geocode
Example... do a search using: map.FindLocation('Chicago, IL', FindLocationCallback); The FindLocationCallback function receives an array of two VESearchResult objects that contain the addresses of 'Chicago, Illinois, United States' and 'Chicago (river), Illinois, United States' If you use either of these values and call the function again: map.FindLocation('Chicago, Illinois, United States', FindLocationCallback); the FindLocationCallback receives the same array of two VESearchResult objects. Since the VEMap.FindLocation is suggesting these addresses, shouldn't they be able to be geocoded by the same function without ambiguity ...Show All
Visual Studio Express Editions How to Plot a Line Graphic in the form?
Hi, how to plot a line graphic realtime in the form Could you please be more specific If you mean how you can specify the location of the points used the draw the line, you should learn the basics of the programming..... ...Show All
Software Development for Windows Vista Printing a Canvas
Here is a code snippet that demonstrates several issues I am having creating an XPS document from a canvas and its children. The canvas is displayed on screen and eventually I wish to print the display. // First I find the displayed canvas I wish to print Canvas c = FindElement(g, "ProductBar" ); // I setup my XPS document and writer string fullPath = "c:\\temp\\pudding.xps"; xpsd = new XpsDocument(fullPath, FileAccess.ReadWrite); XpsDocumentWriter xpsdw = XpsDocument.CreateXpsDocumentWriter(xpsd); // Next, I found that I had to give all the elements unique names to stop XpsDocWriter routines // from complaining about duplicate names. // Is this strictly necessary i nt i = 0; UniqueElementName ...Show All
.NET Development SQL index question (C#)
Hello, im quite new to MS SQL. My question is how to generate indices MySql has an attribute AUTO_INCREMENT, but MS SQL doesn't seem to have this. Example: I have a user table with [Id] und [Username] and a mail table with [UserId] and [Address] If I want to add a new user, can the database generate the new Id itself. And if, where do I get this new index from for adding a mail address Or do I have to generate the new index myself If yes, how resolve the next index number extra query before the insert, to get the last index thanks and greets from germany! Dirk And when I do the INSERT from a managed stored procedure int index = (int)sqlCommand.Parameters["@@identity"]; ...Show All
SQL Server Facts with infinite measures
Hello! I was wondering if there exists convenient ways to handel infinite measures in SSAS. In my exmple there are facts describing software licenses. Normally, licenses grant the right for a specific amount of installations. However, as for something like a site or enterprise license, the allowed number of installations is unlimited. Of course this can workarounded by a separate measure counting those unlimited licenses but it adds more complexity and inconveniance to analysis. Thanks in advance for ideas, Regards, Alex Hello Mosha, I will do my very best to make it more clear. Here is an example source table "Licenses" from the data warehouse: DimOwner | DimSoftware | [Allowed Installations] | [Al ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! Have you guys seen this http://www.codeproject.com/ce/TVRemote.asp It's a C++ example of Pocket PC remote control for Sony tv. Seems pretty specific to that device though (t ...Show All
Visual Basic Copy Folder to new location
Help. I am trying to setup a sample application code I got from someone to copy a folder of a persons choosing from a dialog box, to a new location that is chosen from another dialog box. Currently this application works, but does something I don't want to happen. When the files are copied, it recreated the entire root structure to the folder instead of just coping the folder selected. Example: folder selected was c:\documents and setting\user\my documents\labels Copy to: c:\documents and setting\user\desktop The application created the file structure documents and setting\user\my documents\labels on the desktop instead of just the "labels" folder. Any insite would be grateful. The code at the top wi ...Show All
Visual C# How to Save/open data to/from a file
Hi, I have a Rich Text Box and I want to save the text in that Text Box to a file. What I want is when the user finish entering data in the Text Box, then they press the "Save" button, then the SaveFileDialog would popups and let the user save the data to a text file anywhere they want to. The user can also re-open that file and then the data would populate the Text Box. How do I go about that, please help!! Thanks Jason you can use the RichTextBox LoadFile and SaveFile methods to save the content. So.... this.theRichTextBox.LoadFile(theOpenFileDialog.FileName, RichTextBoxStreamType. TypeHere ); this.theRichTextBox.SaveFile(theSaveFileDialog.FileName, RichTextBoxStreamType. TypeHere ); the RichTextB ...Show All
