levyuk1's Q&A profile
Visual Studio 2008 (Pre-release) Circular dependency
Hi I have data contract classes A and B which inherite from a base class. I send the base class in my method, using the known types attribute (in the base class) to reference the derived classes. However, if the base class is located in one assembly and the derived classes in another, trying to do this will cause a circular dependency error (I can't add the reference to the assembly). How do I resolve this Thanks Interesting... I'll think about this some more, but for now - can you try one of the other mechanisms for adding known types For example, could you add the known types in the operatio ...Show All
.NET Development Passing Variables between forms.
I'm working on a game for school, need to declare a global variable and have every other form in the project be able to grab the value of that variable and alter or display it as nessecary. This should be a walk in the park. . . . but not for me. hahaha! Can anyone help Problem Solved! Met up with a programmer friend today. Joy! lol Created a module (only had forms in the project previously) and entered the following line: Public Score As Integer *where score is the name of the variable* I set the value of 'score' in form 1, so it resets everytime the program is run. And because the module is always running, but not visible to th ...Show All
.NET Development 64 bit compilation starts always with /D "Win32"
This might be a VS general issue but I decided to post it here: I am porting a project to AMD64 bit. After solving some poting issues I am facing the following problem: The compiler is started with /D "Win32" , although in the project configuration WIN64 is defined. I tried - to rebuild... no effect - to reload solution ... no effect In the vcproj file the defines are correct. I could upload a screeenshot if possible. The "by design" part refers to the issue of throwsing /D "Win32" to a 64-bit configuration. The problem we are investigating is the discrepency between the build command ...Show All
Visual Basic Initialization and Finalization of Modules and ClassLibs
Is there a way to cause Modules and ClassLibs to run code automatically under their own power when they load Or is there a better way to do what I'm doing Module A Public requingInitialization as someType ... End Module In some other systems I'm familiar with you can say Unit A ... Initialization ... Finalization ... End. which makes it very nice because the user of the "unit" doesn't have to worry about what it needs to do to provide its services. In the particular case that I'm concerned with I need a dictionary of lists for later populating comboboxes based on the tag of the combobox. What I'd really like to be able to do is combox ...Show All
Visual Studio Express Editions my app is invisible?
Hi I recoded a console server app to a form server app. I can run it and it works, but nothing shows. I cant see the form with my textbox in it that shows the log, so the entire app is invisible to me. Here is the code: ------------------------------------ Form1(only has a textbox in it for the moment) ------------------------------------ Imports System.Net.sockets Public Class Form1 Const portno As Integer = 500 Dim localadd As System.Net.IPAddress = System.Net.IPAddress.Parse( "192.168.1.2" ) Dim listener As New TcpListener(localadd, portno) Private Sub Form1_Load( ...Show All
SQL Server SQL Table size
Hello, If i want to know the size of table then how can i do it in SQL Server 2000 and in SQL Server 2005. -- how much amount of data can a table store in sql. -- On which thing the size of table depends. or Can anyone give me a introduction about the size of table in sql Hello Denis The data u have inserted in the table is insert into table1 values ( 1 , 'abc1' ) insert into table1 values ( 2 , 'abc2' ) insert into table1 values ( 3 , 'abc3' ) insert into table1 values ( 4 , 'abc4' ) insert into table1 values ( 5 , 'abc5' ) insert into table1 values ( 6 , 'abc6' ) ...Show All
Visual C++ LNK2028 error with VS2005 and /clr:OldSyntax
I posted a varation of this message over 2 weeks ago but never got a usable answer, so I am trying again. Please, someone who is knowledgable in using /clr:OldSyntax can you figure out what I need to do to get this project working I installed VS2005 and converted my C++ Web Service project. When I try to link I get a lot of errors like the following: > Error 1 error LNK2028: unresolved token (0A00000A) "extern "C" > void __clrcall ___CxxCallUnwindDtor(void (__clrcall*)(void *),void *)" > ( ___CxxCallUnwindDtor@@$$J0YMXP6MXPAX@Z0@Z ) referenced in function > "public: __thiscall CErrorWindow::CErrorWindo ...Show All
.NET Development How to Update Stored Procedures when they have changed
I have an VB.NET 2005 application and SS Express 2005 Database... I update the application via ClickOnce Deployment but have not found a way to update my Stored Procedures (or alter a table structure for that matter) via the automated update process! One suggestion was to "Suck In" the stored procedure as a whole into a SqlCommand.CommandText property and shoot it down the ADO.NET connection pipe Has anyone done this before Basically... I am trying to update all SP's and Functions (and possiblly modify a table structure) in my database from my application when it first runs after a ClickOnce Update. Any help would be ...Show All
SQL Server problems when processing the cube
if i download a cube in a local environment to make it some changes. and then process it.. it loses its roles lets say it has this administrator role and inside this in the memberships. i added some users on the network.. when one of this users donwload the cube in his pc to make it some changes.. and the process it.. when he atempts to donwload it again.. the cube just doesn`t appear in the wizard.. the in the server where is storaged. i check the role and it has lost its properties like memberships and options like full control and so on.. why does this happens I suspect the role memebership is getting lost at the moment when changes ...Show All
.NET Development DataSet constraint bug
I am using Framework 1.1. I have the following tables: Table1 consisting of Table1_ID Table2 consisting of Table2Name, Table1_ID (reference to Table1) Table3 consisting of Table3Name, Table1_ID (reference to Table1) Table 4 consists of Table4Name, Table1_ID, Table2Name, Table3Name (the last two fields are not required though one of them shall be filled ie the combination of Table1_ID and Table2Name or Table1_ID and Table3Name shall identify either a row in Table2 or a row in Table 3). However, if either of Table2Name or Table3Name is null, the dataset will look for a row in that table consisting of Table1_ID, NU ...Show All
Visual C++ App hogs CPU when mouse pointer moved over it
My MFC app hogs CPU when the mouse pointer is moved around over it. I'm using task manager to monitor the CPU usage. No othe app seems to do this. If my app has a modal dialog box up then it doesn't happen. The app is built with Visual Studio 2005. My main window is only handling WM_CLOSE, WM_ERASEBKGND, WM_SIZE and WM_SYSCOMMAND (none of which get fired when you just move the mouse pointer around over it). If you get furious with the mouse pointer then you the app's CPU usage goes over 60%. Any ideas anyone Mike MikeBzz wrote: My MFC app hogs CPU when the mouse pointer is moved around ov ...Show All
SQL Server Newbie - Querying SQL Server Express 2005 database from Excel
Sorry if this is a stupid question, but I created a database using SQl Server Express 2005 and I would like to query one of its tables from an Excel spreadsheet. Here's what I want to do in pseudo code. cell A2.value = select OLIGO_ID from table OLIGO where SEQUENCE = 'content of cell D2, a string' In other words, I want to search the database for a string that is in a cell and retrieve its associated ID number into another cell. I need to do this on many cells. Any help is appreciated. Thanks. I guess you can do that with VBA. As far as SQL is concerned I do something like that t ...Show All
Visual Basic ListView Column Limitation/Bug ?
I am not sure whether this has been reported before or this is the right place to report. I am using Microsoft Visual Studio 2005 Version 8.0.50727.26 (RTM.050727-2600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Basic 2005 55603-000-0000016-00187 Microsoft Visual Basic 2005 Cannot add more than 20 columns in listview control. Actually it will let me add more than 20 Header objects but when I try to add a listviewitem with more than 20 items, it errors out with follwoing exception. Item cannot be added to the listview I am also including a sample code to demonstrade the issue. Just add a VB application projec ...Show All
Smart Device Development Windows CE5.0: unable to hide command bar!!!
I developed an application for critical healthcare that must run in fullscreen mode. Now I'm trying to migrate to Windows CE 5.0, but I can't hide the bottom bar (command or menu bar ). I already tryied various combinations of CCommandBar SHFullScreen SHFindMenuBar CommandBar_Show ecc... this issue will jeopardize the entire project. Hope someone can help me...... Sorry, this isn't an answer but more of a uh yea..... I've also tried for about a month now to figure this out without any luck.... I've recently moved to a CView instead of a CDialogbox approach but I am running into many problems making the CView act and show ...Show All
Windows Forms VS2005 Beta 2 form designer problem: error while parsing EntityName
I can create and code 'user controls' or 'controls' directly inherited from Windows.Forms.Control. When I try to place them on a normal windows form directly from the toolbox I get the following error message:- Failed to create component 'componentname' An error occurred while parsing EntityName, Line 2, position 51 If I declare and instantiate the control directly in code it works fine. For some reason the form designer cannot display them. Thank you again, it was the & ... ...Show All
