Eric Cann's Q&A profile
Visual Basic Passing by Reference
Hi, I have a subroutine (InitNotes) that has a form as a parameter by reference. This subroutine calls another sub that fills by couple of comboboxes on that form. This InitNotes is being called by 2 forms. When I upgraded the project from vb6 to vb.net it gives me the following error "Control cboNoteType could not be resolved because it was within the generic namespace Form." and the same for cboNotePriority. What should be done to resolve this Here is my vb6 code Public Sub InitNotes(frm As Form) NoteCboFiller frm.cboNoteType, frm.cboNotePriority InitNotesGrid frm End Sub Here is the .net code after Upgrade Public Sub InitNotes( ByRef frm As System.Windows.Forms.Form) 'UPGRADE_ISSUE: Control ...Show All
SQL Server Configure Report services
HI, I am having SQL Server 2005 express edition, how can i configure report services Try the Reporting Services forum. http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&SiteID=1 ...Show All
Visual Studio Express Editions Installed Microsoft Windows SDK & now cannot build a thing! What's going on?
One time trying to build a Forms project I got this error message amongst others: error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup Debug\Rtry070118.exe : fatal error LNK1120 Then New CLR project and many other variations The ONLY source file in the project was this .cpp file! /* memset example */ #include <stdio.h> #include <string.h> int main () { char str[] = "almost every programmer should know memset!"; printf(str); getchar(); memset (str,'-',6); puts (str); printf(str); getchar(); return 0; } Build a CLR emty project with the above code and I get "Unable to start program 'c\documents and settings\dosrelic\my documents\visual studio 2005 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compile in Release
I am in a huge rush right now. Between VS2003 and VS2005 they moved where you choose whether you compile in Debug or Release mode. Where is it now I have manually added the drop-down box to the tool bar, but it's grayed out. This is extremely frustrating and critical to testing DirectX stuff. A fellow MVP gave me this info: > IAC, go to Tools/Options/Show All Settings > Then Projects and Solutions/Show advanced build configurations. > > The docs say: > > Show advanced build configurations > When selected, the build configuration options appear on the Project > Property Pages dialog box and the Solution Property Pages dialog box. When > cleared, the build configuration o ...Show All
Visual C# Passing values into EventArgs when a button is clicked
I am currently building a shopping cart application using C # in VS2005 where there are 10 items to select from. There are 10 "Add to Cart" buttons, when clicked, will trigger a single method. That single method will either add a row (new item), or update the quantity (old item). In my existing code, i loop through each row in the DataSet to determine whether i should add a row or update a row. Is there a way to store the item information (name, description and price) in EventArgs so that when the "Add to Cart" button is clicked, the item information is passed to the single method using EventArgs I am aware that i can create my own EventArgs class that inherits the EventArgs class but is there any way to store my it ...Show All
Software Development for Windows Vista StateMachine invoke SequentialWorkflow
Hi together, I am using a state machine workflow which invokes another sequential workflow. The sequential workflow gets called but after the sequential workflow has finished, the parent workflow (which is a state machine) switches to the completion state. Example: Sequential Workflow ^ | State A ---> State B ----> State C ----> Completion State As you can see in the sample "State B" invokes "Sequential Workflow". And now when the sequential workflow gets finished, the parent state machine switches to the completion state instead of "State C". Any ideas what's wrong here Cheers, Franz Serge, Your advice is extremely good. I went and ...Show All
Visual Studio Express Editions will vb express do what i need ?
i haven't downloaded vb express yet as i just want to check that it will do what i want or if i need a more professional package. can someone tell me if i can use it to make a type of diary/scheduler/reminder program which allows for user input, the details of which would be held on an 'index card' if anyone can advise i would be grateful - thanks absolutely! VBExpress is limited to things like not allowing Windows Mobile development, having a full setup and deployment package installer but only publish/clickonce, 1 IDE for this language alone. I can't seem to find the limitation list but once found itll be posted. However for what you seem to ask, it's perfectly ok to use VBExpress to do thi ...Show All
Software Development for Windows Vista Compiling a Custom Activity
Hello. I'm trying to compile a custom activity in xaml (not a workflow, just an activity) using the WorkflowCompiler class, but I get the following error: "Cannot compile a markup file which does not contain declaration of the new workflow type". Here's my code: ///Create the custom activity to serialize and compile. ActivityLibrary1. Activity1 act = new ActivityLibrary1. Activity1 (); act.MyText = "!!Hola Mundo!!" ; ///Serialize the class WorkflowMarkupSerializer serializer = new WorkflowMarkupSerializer (); XmlTextWriter writer = new XmlTextWriter ( "c:\\temp.xoml" , Encoding .UTF8); serializer.Serialize(writer, act); writer.Close(); ///Compile it WorkflowCompiler compiler = new ...Show All
SQL Server Doing a keyword search inside the contents of the stored procedures of a database
Is there a way in sql to do this: To get all the stored procedures of a given database, then either - (1) put all the stored procedures contents (all the scripts inside the SPs) in a single file or - (2) Put all the scripts that constitute all the SPs in a single big string. Then search that file (if case 1) or that big string (in case 2) and check if it includes a given input pattern (for example check if includes: mySearchedKeyword) Thanks a lot another question pls: I wanna customize the code: SELECT ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_DEFINITION LIKE '%mySearchedKeyword%' to search all databases and not only the current one. Thanks. ...Show All
Visual Basic vb.net school project
I am a vb newbie and am doing a very simple school project involving the calculation of volume for various shapes. If i can explain my problem properly, i hope that someone can easily answer it. so here goes: "...the calculation should be performed and a message box displayed to indicate the inputs and ouput in the following format: The volume of a box with a length of 1.00 feet, a width of 2.00 feet, and a height of 3.00 feet has a volume of 6.00 cubic feet." my problem is i can't figure out (either thru my book or online help) how to make the messagebox.show method output the inputs and answer (which are all variables) using the info the book has given me. this is what it looks like now: messagebox.show("The ...Show All
Visual Studio Express Editions Few questions about VB Express/excel...
Hello, How do i make form1.vb and form2.vb share a variable I put the variables in the top in the public declarations section but its still only available to the form it is in.. how do i make it available to all forms Also slightly unrelated.. can i make excel sheets formating apply to new sheets that are created so.. if the text in A1 on sheet1 is red, when i click new sheet i want the text in a1 on sheet2 to also be red.. i have my program working with excel and creating new sheets but once the sheet is created it loses the formating, or if you have an example of how to edit/format cells in VB Express i will just work it into my program however atm i do not know how to manipulate the cells format with VB Express. Hope ...Show All
.NET Development Used memory in task manager after restoring from minimization
Hi all, If one windows applications written in C# consumes 200 MB memory (shown in task manager), we minimize this application, then restore it, the memory this applicaiton consumes will reduce to around 10 MB. But if we check the available physical memory (shown in task manager as well), there is no such a big memory release. Any comments/hint on this Is the memory release of minimization-restoring a REAL release Thanks, Yifei That's a great explaination Michael. For further reading, check out http://getdotnetco.web119.discountasp.net/GdncStore/free/Articles/The%20Memory%20Mystery.htm -Chris ...Show All
SQL Server SSAS Poor resource usage
Our users use Excel 2003 pivot table to analyze data on our SSAS 2005 database. They experience poor performance as soon as the products dimension is involved (800.000 leaf members), query performance is worse than with AS2000. At the same time, we notice that msmdsrv.exe only occupies 350 Mb of memory at the peak, and only 25% of processor time (bursts above 25% of processor time do occur, but are extremely rare). This is on a dual-core x64 Opteron, effectively a 4-way processor, with 16 Gig of memory. Why is msmdsrv waisting time constantly allocating and freeing-up memory at the 100 to 400 Mb level, where we have about 12 Gig of memory on that server sitting idle How can we make msmdsrv aware of those available 12 Gig and 7 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Working with buffers in 2D
Hello all, I've been trying to figure out how the system with backbuffers work. In all examples I have found people are clearing the buffer before they draw something new. graphics.GraphicsDevice.Clear(Color.Black); ...draw some sprites... graphics.GraphicsDevice.Present(); I guess that when you enter the Draw method you are working with the backbuffer, so the clear() and the sprite draw() will affect the backbuffer. After that you call the Present() to draw the recently made backbuffer on the screen. My problem is that this is not how I would like to do it in my case. Everytime I enter the Draw() method I would only like to add some new things, and not clear anything. The easiest way to do this is to not have any backbuffer at all, but I ...Show All
Windows Forms Webbrowser keypress event
Hello everybody, I'm just playing with the new webbrowsercontrol of .NET 2.0 and I would like to capture the keypress event of that control, but it seems that the control doesn't have that event... I've got a webbrowser control with designmode="on". Now I would like to capture the keypress event (for inserting a line break when enter is pressed) On the internet I could not find any solution, so therefore I hope that there is someone here who knows a solution. THanks in advance Hi Any solution to this problem I tried it using the AttachEventHandler() function for 'keypress' event. But the event arguments are null in that case. So i dont get to know which key is pressed. Any other way to do th ...Show All
