Khenat.Ram's Q&A profile
Visual Basic Limits on Memory Use?
Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All
Visual Basic Noob Database question
Hello, please excuse this question from a total Noob! Im quite happy programmign away in the VB.net 2005 application that im developing, and i am displaying fields from my sql 2000 database, in data grids, in text boxes and all is well. But my question is this. how can i manipulate data fromt he database that isnt shown in test boxes on the screen, i.e id love to load some variables with values from the database is this possible the syntax is elluding me at this stage. many thanks and i look forward to some advice on an article that may help, Google just gives me back so many misleading articles! Ok im still stuck it seems. Ive got an undertsanding of how to Bind d ...Show All
SQL Server Confused on funcion Raiserror!
My error handle in store procedure is : Error: Begin If (@errno > 50000) Begin Raiserror (@errno, 16,1, @errarg1 ) --- @errno is 50023 now. End RollBack Transaction End Where the SqlException is below, I am confused by the Number and the message of the SqlException! Message: Error 50023, severity 16, state 1 was raised , but no message with that error number was found in sys.messages. If error is larger Number :18054 Thank you! The error number you passed to RAISERROR is a custom error number isn't it So it can't find the number in the sys.messages table. Instead you can pass your own error message to RAISERROR RAISERROR('A big error has occurred.. alert the president', 16,1) WITH NOWAIT ...Show All
Visual Studio Team System How can I permanently delete files in TFS ( Like purge in VSS ) ?
I only know the delete command, but the file is not really purged... Thanks, Eli. Eli, there isn't a purge/destroy equivalent in v1. see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=440727&SiteID=1 ...Show All
SQL Server Display Report Description within Report Body
Hi all. I wanted to use the Report Properties|Description within the report.I thought it would be something like Globals!Description, but it seems not. Has anyone else found the syntax to use that (or Author) within the body I'm pretty sure that when i tried to do this I was advised that The author and description properties are not available to textboxes. Therefore you need to either hard code the values into a textbox(es) or to add the information to a table and pull it into the report using a dataset. ...Show All
.NET Development Can I delegate the responsibility of implementing an interface?
Hello. I've got this idea, and I seem to recall having seen it possible in Delphi 7, and wondered whether it is possible: I want to have an application that implements an interface. The thing is, I do not want the application main class itself to implement the interface, I want its children to do so. For example if I have an interface ISomething, and an application SomeApp.exe, I want to be able to say, that if the SomeApp class inherits from ISomething, then obviously it implements it somehow: Perhaps SomeApp's mainform implements some of the properties, perhaps a subform implements others, and two controls implement three different methods each. The thing is, no single class implements the interface in its entirety, but on ...Show All
Visual C++ C++ class definition error C2061
I just learned C++. All the book examples worked well on my Visual C++ 2005 Express Edition. Now I correctly built a large C project that I got from somebody else. I wanted to add a simple C++ file to it defining only one class: class HK { public : HK() {} // Constructor ~HK() {} // Destructor static int Ones(); }; int HK::Ones() { return 1; } This class compiled correctly when done separately. But as soon as I wanted to build it togeter with the correct C code, I got the C++ class definition error C2061. Now, I tried to find the reason, seriously. I have printed 200 pages of Microsoft documentation so far, but have not discovered what this is Help! What could be the reason an ...Show All
Visual Studio Team System Team Explorer connecting to the wrong hostname?
Hi Guys, I've installed VSTS to a rack server we are renting from a hosting company. The computer name was assigned to us with some internal name used by the hosting company. We have configured DNS etc. etc. on the box such that for all intents and purposes it appears on the web as a normally resolving internet hostname. However, when I attempt to add a New Team Project through Visual Studio to the VSTF Server, it seems to be putting this onto an incorrect web address. So instead of the site being http://www.something.com/sites/ProjectName it is being added as http://servername/sites/ProjectName , where servername is the name assigned by the hosting company, and as such does not resolve over the web. It fails stating that it cannot connect ...Show All
SQL Server Scoped calulated measures for unrelated dimensions
Hi, I am not sure if this is a correct way to design this, Here is my scenario: We are migrating an existing databwarehouse application from vb, which used to pull out records using the criteria provided in the input screen. The input conditions are many and multiple selections and combinations constitute the final data that is returned in excel format. Most of the input conditions specified are filters or slicing of data, which we have modelled as dimensions, and they were existing tables in the database. other filters for dicing the measures which is modelled as the fact were also existing tables. There are some input conditions that are not dimensions at all, meaning there are no tables which exists for them. One fo ...Show All
Smart Device Development System.ComponentModel
Hi guys, I'm writing a custom control using CF as well as the full framework. With the full framework, the following works just fine: [System.ComponentModel. Category ( "Custom Properties" )] [ Browsable ( true )] [System.ComponentModel. Description ( "Set the number of lines to view" )] But try this on CF and it gets an error: Error 1 The type or namespace name 'Category' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference ) Any ideas on how to use these settings in CF Many thanks, Millie For NETCF V1 you'd need to create separate design time assembly, see this . For NETCF V2 attributes like this are in a ...Show All
SQL Server SQL CREATE and INSERT INTO database creation scripts
I have used the internal tools in SQLServer 2005 to create the scripts to rebuild the database (tables, SP and Views), but I see no automated process to export the data from some tables. We develop a database that needs to be "rebuilt" once instaled at the clients environment. I know we could detach/attach but not the best was to maintain the database on-going. So any help on how within SQL Server 2005 - how to build INSERT INTO (data) scripts Gary There is no builtin thing for that, you can use the link from here to create the data scripts: http://vyaskn.tripod.com/code.htm#inserts HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# log file time stamp validation
My program is reading large log files that contain lines with times stamps and also line with log data. The data information following a time stamp line is either on one line or many, so I cant anticipate weather it's reading a time stamp line and a data line. So I need an efficient way to tell whether a line is a valid time stamp or data. Anyone have a good idea of how to do this Here is an example of a log file: 07.07.2006 17:32:13 ERROR ******************** Database access failed. New connection to database needed. 07.07.2006 17:32:18 Warning******************** Could not find name Path inaccessible .... ... ... ... Thanks It could have been better if you had marked every entry in the log file with ...Show All
SQL Server Programatically setting the sub-report to load
My system uses a variety of invoice templates for each client, so 'Bank A' would have one invoice type sent to it, and 'Bank B' would have another etc. Each invoice template is a report, and they can vary quite substantially. Each month the accounts team need to print out all the invoices for a month. I would like to create a report which has the invoices as a sub-report, so they can all be exported together and printed together. However each sub-report could obviously be a different invoice-template. I notice that the sub-report selector field is one of the only fields that doesn't take an expression. Is there a way to programatically set which sub-report is used   ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! No idea sorry. Guess you could do some trial an error to see if its your import images, number of points you marked etc. Best bet will be to email the guys that wrote it. I'm not sure they will ever find this thread otherwise. Sorry I can't be more help. I can say that for me using a PDF I had no issues. John. ...Show All
Software Development for Windows Vista Add a rule conditions programmatically in an activity
I'm almost exploding here... please help me. I am trying to create an activity that implements a lot of functionality so that the user can just drag it on his workflow and not be concerned about the implementation of certain tasks. My activity dynamically adds a ConditionedActivityGroup, for which rule conditions are needed. I have tried three ways to add the conditions to the workflow: Add a .rule file to the activity files by manually adjusting the project file. The problem is that the runtime does not seem to find the embedded file. Create and add the conditions programmatically and add them in the constructor of the activity and add them using rootActivity.SetValue ( RuleDefinitions . RuleDefinitionsProperty, ruleDef); . The problem ...Show All
