koder monkey's Q&A profile
.NET Development Generate a class at runtime and use it
Hi All Is it possible to create/declare a new class (not an instance) at runtime I would like to load from xml tha wanted class name and the wanted properties and to generate the needed class. of course, then I would like to use it in the project. Thanks Avi You can use CodeDom NameSpace to perform this task. or Microsoft.CSharp. CSharpCodeProvider NameSpace. Where you can dynamically generate a Class file. Compile the class file and then use in your same app. ...Show All
SQL Server Design advice for an education data warehouse
I’m not sure whether this ought to be in the Architecture or SQL Analysis Services forum. I am after some initial advice about a suitable structure for a data warehouse which will be used to build OLAP cubes AS2005. I work in a county education department. Each year we create/update a set of reports and procedures which provide schools with online access to many of the statistics for their school compared to district wide and to national targets, etc. After this year’s, which is my second at creating these report/data, I can’t help but think that the whole thing is screaming out for a Data Warehouse and Cube data to report on. I may be wrong on that, as I’m still only doing the learning regarding AS2005 and ...Show All
Visual Basic Form1's MenuButtons open Form2, 3, 4, 5....
Hello, Is it possible to create in VB Express a Form with Buttons which open other Forms and close any or all these Form without shutting down the application Kind regards, ------------------------------------------------------------------------------- This newbie can't talk and can't walk. Embarrassing . Dim TmpFrm2 As New Form2 TmpFrm2.Show() 'To show it TmpFrm2.Visible = False 'To hide it TmpFrm2.Close() 'To close it Hope this helps a bit. ...Show All
Visual C# Not finding a web proxy class that should be auto-generated
I'm having difficulty running my web app. It was working correctly, but I had to move the project files around. After moving them, I added the web site and service back into the project. My service works perfectly but my site can't seem to find the class UserService.UserService (which I believe is auto generated by my web reference). I tried removing the web reference, closing VS, opening and cleaning the solution, closing, then adding it back in and deploying - but no luck. The disco, discomap, and wsdl files are added to the project correctly. Here is the exact error message C:\philipd\Visual Studio 2005\Projects\...\Global.asax(5,5): error CS0246: The type or namespace name 'UserService' could not be found (are you missing a using direc ...Show All
Visual Studio Team System determine user number
how would i detmine the user number in load test/webtest ~Todd If you follow the New Load Test Wizard, click "Next" two times, and under the "Edit load pattern setting for a load test scenario", you will be able to choose between a constant load of x users, or a step load (load that will be increasing) of y users (where x and y are numbers you can specify). For more info on this, please take a look here: http://msdn2.microsoft.com/en-us/library/ms182574(d=ide).aspx Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
Windows Forms combobox autocomplete on double click
using vb2005 i have turned on autocomplete on my comboboxes with SuggestAppend method. it all works ok, its just that i'd like to have the suggestappend window pop up if i double click on the blank area on the combobox. much like clicking on the down arrow, but im trying to mimic for example browser behavior when i double click on an entry form textbox and my history of typing appears (this happens in firefox for example). thanks try setting the DroppedDown property to true. Is this what you are after However this will show all the contents of the combobox, even if you are using the autocomplete feature. I am unsure as to how to do it the way Windows does ...Show All
Visual Studio Express Editions Saving VC++ directories across logins
I need to set up VC++ in a student lab environment. I've gotten everything done except I'm having difficulty saving the VC++ include and lib directory settings (under Tools > Options, In the tree on the left Environment > Project Settings > VC++ Directories). In my specific case I need the platform SDK and fltk there by default. I know what I need to put in to get it to work, but can't get it to save the settings. I've tried updating the mandatory profile several times (i.e. log in, make the change, then use copy to). Hopefully someone here has a clue what I'm talking about and knows just what needs to be done. I think what would help me the most if finding out exactly where this information is stored so I can go in with a t ...Show All
SQL Server Corrupt cubes in Analysis Services 2000 due to missing roles
I have a Analaysis Services database with two cubes, shared dimensions and several roles defined (the cubes are small so the multiple roles do not use up all the memory). Unfortunatly I cannot open the cubes anymore. The editor gives an Error like: Unable to open the cube Financieel. An unexpected error occured. Please restart the application. I deleted all the rows, but still it didn't work. Then I tried to migrate the database to SSAS (2005). During the migration I got the error: The accountmanagers1 role referenced by the accountmanagers1 permission does not exist in the TestCube database. This role accountmanagers1 role is not available in the manage roles dialog. How do I repair these cubes M ...Show All
Visual C# Protection of C# source code
How do I protect my C# source code when it gets distributed in MSIL which can be readily disassembled I have a commercial application written in Visual Basic 6 which I would like to migrate to C#, but not if the code can be disassembled, allowing users to either run the programs without paying licence fees or even re-distributing the programs as their own. Can I compile the prgrams to native code or is there another way of protecting my IP you can use the Dotfuscator Community Edition tool that ships with the Microsoft Visual Studio. This tool obfuscate .NET Assembly which can not be disassembled. ...Show All
Visual C# SqlConnection.Open() OutOfRangeException - Need Help!
Hello! I am trying to open a connection between my programe and a mySQL server with the SqlConnection.Open() method. My connection string looks like this: " Data Source=tcp:myservername, 3306;User ID=****; Pwd=******;Pooling=false;" As soon as I call the SqlConnection.Open() command I get the following error message: "None-negative value needed. Parameter Name: count" (I have translated it from German into English so it can vary from the original message) I have no idea why this happens and as you see I have already disabled Pooling but no chance. Has anyone got any idea Thanks in advance! veryxRV You can't use sql provider to connect to mySql database. ...Show All
.NET Development .NET HttpRequest timeouts
Hi, I am new to the .NET world and am having problems. I have create a simple HTTPWebRequest and am using the GetResponse method to see the result. However, this ALWAYS timesout. I have even downloaded the MS example and that app doesn't seem to have access to the web either. My browsers and stuff works .. do I have to explicitly give .NET accesss to the NET I am using Windows XP SP2. Many thanks, BinCoder. Problem solved. I had set IE up to use my little app as a proxy. I didn't release that the app would use the same proxy settings that IE had. So, setting the req.Proxy to null solved the issue. Thanks for all your suggestions. Regards, MArk ...Show All
Windows Forms DataGridView Flicker not suppressable
Hello, a read-only DataGridView flickers entirely when updating the style members of a single cell. for further info pls. see my previous post at: http://www.windowsforms.net/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=19859 Even if there is no documentent telling that the DatGridView is suited for realtime applications I rather treat this as a design error than a bug. Regards, Martin Hi I have a similar issue with real time datagridview flickering whenever bound ob ...Show All
Visual Studio Express Editions VB 2005
Hi: I copied a sample from MSDN (TCPListener and TCPCLient), I'm able to run the sample. But When I tried to place the data into TextBox, It hanged ! My Question: How do I pass value to Control like Textbox or Label if the Sample code is in Class... I'm new to this (but i'm hard core VB6 User), so my question may sound stupid. Thanks Simon I don't think it work. It will passed an error. Try run this Example from MSDN: you need TCPClient and TCP Listner. Dim server As TcpListener server = Nothing 'On Error Resume Next Try ' Set the TcpListener on port 9000. Dim port As Int32 = 9000 Dim localAddr As System.Net.IPAddress = System.Net.IPAddress.Parse("127.0 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What does creators club include right now?
I'm a little puzzled about what the creators club actually includes, I've checked the FAQs and can't really find an answer. I have however managed to find the following: "The XNA Creators Club is available on Xbox LiveR Marketplace for $49 (U.S.) for a four-month subscription, or $99 (U.S.) for an annual subscription. Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." I signed up for a year because it sounds like quite a good package, however there seems to be no information provided on ...Show All
Windows Forms Exception from HRESULT: 0x8007007e
hi everybody; i when from toolbox usercontrol drag-drop to win-form i get the error message follows: Failed to create component 'myUControl'. The error message follows:'An unexpected exception occured. Type: System.DllNotFoundException, Message: Unable to load DLL 'cwbdc.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007e) why i get this message please help me. how can i You are getting this message because the IDE cannot find a DLL named "cwbdc.dll", needed by the toolbox component. I assume this is a native DLL, not an assembly. The IDE wouldn't know that it needs to copy that DLL too when you put the component in the toolbox. Try copying the DLL to a folder that's on the ...Show All
