DaveSmith's Q&A profile
Visual C++ warning C4273: 'MyClass::MyMethod' : inconsistent dll linkage
Hi - I'm cleaning up some code and would like some feedback on link warning C4273. Here's the scenario... I'm referencing unmanaged code in a C# win app via a C++/CLI wrapper. The wrapper wraps an unmanaged Win32 dll. So I have 3 apps - MyCSForm.exe, ManagedWrapper.dll, unmanaged.dll (and .lib). The warning occurs in the ManagedWrapper.cpp code as follows: ManagedWrapper.hpp class __declspec(dllexport) ManagedWrapperClass{ public: bool myMethod(); } ManagedWrapper.cpp bool ManagedWrapperClass::myMethod() { /*call unmanaged code */ }; // C4273 warning here. The unmanaged.dll also has its classes declared with __declspec(dllexport). I reference the unmanaged.lib in my linker. The ManagedWrapper.dll is inclu ...Show All
SQL Server Wrong Totals in Calculated Measure
Hi, I am using SSAS 2005 and the backend relational database is Sybase. We have a very very huge number of rows daily. The dimensions itself contains about 100 attributes. I created calculated measures using the 'calculation' tab in BI studio. The calculations contain an IIF condition and arthimetic addition's of two or more measures. The formula can also contain another calculated measure created similarly. These calculated measures are viewed on a natural hierarchy, like country,state,city.etc. Although the lowest level granular row values of the calculated measure are perfectly correct, the Totals of each level in the hierarchy column at the bottom displays incorrect values. For some the value is displayed as zero (0) or ...Show All
.NET Development framework 2.0 install error on Windows 2003 SP1 server / Exchange 2003 SP2
After installing the .net framework 2.0, the error appeared in the event log: Event ID: 1064 Failed while creating files and directories in \\.\BackOfficeStorage\tpri.com\MBX\aspnet_client. Error code: 80070003 Failed while creating files and directories in \\.\BackOfficeStorage\tpri.com\Public Folders\aspnet_client. Error code: 80070003 This error sepcifically prevents me from mounting my Public Folders share for exchange. I have posted here and not on an exchange forum due to the fact that this only started happening after I installed the .NET 2.0 framework. After searching the internet for this error, I have found information that the error code corresponds to denial of access but could not find any more troubleshooting i ...Show All
Visual Basic Please will someone give me a code for a webcam?
Please will someone out there send me a code so i can view my webcam on a windows form. Please , Please , PLEASE! Thank you everso much. Looks like some code. From the description, its 1.1 framework stuff developed using 2003 but as the original poster didnt provide any specifics about equipment and development environment. I suppose this should give them something to work with. Guys/Girls - when you post a question - try to provide as much specific details as possible. If your looking for assistance we need to know specifics to give you a good answer. The more specifics you give the more likely you are to a. Get an answer b. Get an answer with addresses your specific question c. Get an ...Show All
Windows Forms DataGridView and ComboBox binding
I have a datagridview in a form (I bind that grid to a collection (collection that implements IList interface) I also have a detailed view in the same form. Inside that detailed view I have a combobox (I bind this combobox on a form load event from a different data source). When user clicks on a row of a datagridview I want to bind it to the appropriate combobox value I can easily bidn to to a textbox like txtComments.DataBindings.Clear() txtComments.DataBindings.Add("Text", MyObject, "Propertyoftheobject") How to bind combobox to datagridview. (When user navigates the grid appropriate value should be selcted in the combobox) combobox has the databindings too. It seems that ...Show All
Architecture generating classes from UML
Hi, Sometime back ,i read somewhere that newer version of vs.net gives the functionality of making classes from uml diagrams(like class diagrams), but i have not encountered this kind of facililty in the vs.net as per now. Can you people please confirm on this. Also if there is any other tool available to do this for creating classes,interfaces etc in c#, please let me know. Regards Diego Dagum wrote: VS diagrams has two priorities: To document a .NET application (more than any other kind of application) yes but class diagrams only tell part of the story - and if you are working on that level (code) you might as well stick to the code itself Diego Dagum wrot ...Show All
SQL Server Replication Error 28559
We have a PDA application (Net CF 2.0) which uses sql mobile and synchronises to a SQL Server 2000 database (merge replication). We were using SQL CE 2.0 on the PDA earlier and moved to using SQL mobile recently. Since this move we are getting error 28559 (SQL Server Mobile encountered problems when opening the database - says in the documentation). The error does not happen regularly. When it occurs the device needs a soft reset to recover from the error / close the application and start again. Problem happens more frequently on XDA Exec (http://shop.o2.co.uk/shop/handset/O2/XDAExec:3G) running WM5 compared to devices running Windows Mobile 2003 2nd Edition for Pocket PC phone edition. I had a chat with one of the Micro ...Show All
Windows Forms Binding an Array of objects to a DataGridView
Now I think the DataGridView is the best control to use for this, if I'm wrong let me know :D I have an object that has a property that returns an array of "PackageDetails" (custom object). This object has 10 public properties that I would like to bind to the DataGridView. I am very used to the DataGrid/Repeater/DataList etc. in ASP.NET and I'm having some trouble with WinForms. Any help on this would be great. Hello; I use Visual Web Developer. I couldn't see Binding Source. The thing i want to do; get folders name ona treeview and when i click treeview, selectednode returns me files of the current directory. i want to fill to a string array the files name. it goes image url. i have a datalist on the ...Show All
SQL Server Performance issue on SQL 2000
Queries are performing much slower on production server - configuration 8 GB RAM 4 CPU and database size 500 MB Same database and application works much faster on development server - 4 GB RAM 2 CPU and copy of production. Compared one of the most important query and found - both servers are using different query plans - cleard the cache - Compared all settings of sp_Configure - they are all same. Same version of patches. Same edition. Production it takes 18 seconds and dev/test it takes 1 second. Production has awe enabled - thats only enviorment difference. Can someone tell me what else to look about this slowness Thanks for all help in advance Manoj That looks hideous. I assume all the items in the query a ...Show All
Smart Device Development Mobile 5 SDK for Pocket PC install hangs
Tried for hours to get Mobile 5 SDK for Pocket PC to install. The original problem was that my McAffe was stopping various scripts from executing. The install hung after McAffe stopped the scripts. Then, after I turned off the McAffe script analyzer, the SDK tried to rollback and attempt another install, but those installs eventually hung. By "hung" I mean the install wasn't using disk or CPU, there was nothing after the word "status" above the "progress indicator", and the "progress indicator" didn't progress. The "remove" option also hangs. Help I'm glad it worked out for you. You should see WM 5.0 specific projects in VS 2005 if SDK was installe ...Show All
Visual C# Best C#/OO practice for this issue
Hi, This might be more of a general OO question, but there could be specific ways to do this in C#. I have a simple class (PersonName) with 3 main properties (FirstName, MiddleNames and LastName - all strings). For each of these strings I want to create some meta-properties, like this; string FirstName // <---- main property bool FirstNameIsRequired bool FirstNameIsValid bool FirstNameIsDirty bool FirstNameInvalidCausesException; string FirstNameInvalidMessage; int FirstNameMinLength int FirstNameMaxLength The problem is, each of the other name strings also need these meta-properties. When I see repeated coded, the code-reuse alarm bell rings. How should I go about this Should I derive from string and create a new type of st ...Show All
Windows Networking Development Questions about QOSNotifyFlow
In the MSDN API , It says that the QOSNotifyFlow function registers the calling application to receive a notification about changes in network characteristics, such as congestion. But I have a question about how to receives the notification. Is is an event or anything else How do I receive such notification in the program Thanks fo any help... When you call QOSNotifyFlow, you pass one of the following operations: (i) QOSNotifyCongested, (ii) QOSNotifyUncongested, (iii) QOSNotifyAvailable. If you were to call this function without specifying an overlapped parameter, it would return when the selected operation occurs. For example, if you were to specify QOSNotifyCongested as the operation, the ...Show All
Visual Studio error MSB4018: The "GenerateResource" task failed unexpectedly
I have a Smart Device application that is generating the following errror when I attempt to build. I would appreciate any feedback in how to debug this error, or what might be a typical cause of this problem. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) C:\WINDO ...Show All
Visual Studio Express Editions how does one copy a dataset table to an array
Hi! I have a dataset with 1 table: 2053 rows X 12 columns. I want to copy it into an array of the same dimensions. I've tried using dataset.rows(i) and dataset.columns. But I'm not understanding how to combine the two. Is There an easier way why do you wish to copy it to an array why can you not work with the dataset/datatable directly :-) you would just be making life that bit harder for yourself the datatable contains the DataRows collection, which is an array in itself and is what is actually holding the rows. you can also index the column you want. This is the array you could use ...Show All
Visual Studio Error : Project Type Not Supported
Hi, I installed Visual Studio 5.0 into a new machine. When I tried to open an ( vb project ) existing project it came with the following error : " The project file cannot be opened. Project type not supported by this installation " The version of Visual Studio that I am using is : Microsoft Visual Studio 5.0 Version 8.0.50727.42 (RTM.050727-4200) Can someone please help me with this problem. Thanks. Found the solution to my problem. Had to install an update and a plugin for VS2005 to support WebProject Applications. To include support for Web application projects you will have to install an update and add-in as specified in the following article http:/ ...Show All
