ShâD's Q&A profile
Smart Device Development Export C++ class and use in .NET C#
Hi all, I have a serious issue that relates to eVC++4.0 and C#. I have a class that I want to export using eVC++ 4.0 code and use it in C# later on. How to do it e.g #ifdef MYCLASS_EXPORT #define EXP_CLASS __declspec(dllexport) #else #define EXP_CLASS __declspec(dllimport) #endif class EXP_CLASS Test { public: Test(); ~Test(); int DefaultNum(); }; Question is how to use this class in C# What all steps I have to follow Your help will be appreciated Hi all, I have a serious issue that relates to eVC++4.0 and C#. I have ...Show All
Visual Basic Vb2005 - ReleaseCapture
Might anyone have working VB2005 code for ReleaseCapture After a lot of playing with this and looking at many different methods, I decided that following would work best for me. I did not use the vb2005 cursor.position because it's a shared method and requires a lot of agony. As much as I dislike it I resorted to an API routine GetCursorPos and a keydown sampling interval of 20 milliseconds. It works very well. For those of you familiar with api programming there are a couple of important notes here: 1.) The PointAPI structure has been redefined 2.) GetCursorPos returns an integer instead of a long. No Marshalling is required. Impo ...Show All
SQL Server SQLServer Express 2005 and VS.NET 2003
I would really like to be using SQLServer Express 2005 for some desktop database applications and replace MSDE. However, I am using VS.NET 2003 and so far I have not been able to discover if that combination will work. Thanks, Sid. Yes that will sure work. You can use the ADO 1.1 provider like you did before. If you want to use on of the new features like MARS, you have to use the SNAC client. If not, you should be fine will the old-fashioned provider. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Email Trigger in SQL 2005
I am new to developing as will be evident from this post. Your help will be greatly appreciated. I am developing an intranet for our company using ASP.NET with a SQL backend. I am currently working on a suggestion box form. I would like to have an email sent to specific persons when a new entry is made in the suggestion table. I have been able to configure the trigger and generate the email (This was easy). Formatting the email has proven more difficult to resolve. The format I would like is somewhat as follows: F_NAME L_NAME submitted the following suggestion: IDEA BENEFIT APPROVE | DECLINE The items in RED are ...Show All
Visual Basic How to determine if you are at a new record???
I am new to VB .NET. I am designing a windows form and would like to be able to determine if the form is at a new record. Is there any way to do this. I searched through the forums and could not find anything on this topic. Any help would be greatly appreciated. Example... 1. If you have a bindingnavigator and you were to press the "Add New Item" button. or 2. BindingSource.AddNew() These would be what I would call a "New Record". I am new to the terminology. I am used to VBA for MS Access. Hope this is enough of an explanation. ...Show All
Visual Basic Minimum Permission Requests?
Using VS2005 RC1, every time I create a project and add a reference to a DLL or control that resides on a different drive I get the following error either when attemting to run the program or when I first attempt to add the reference: ... Could not load file or assembly ... Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) I'm an administrator- equivalent user and have full create/modify/destroy on both my local drives and all network volumes. This seems to be the case when I create the project on my local C: drive and attempt to add a reference to something on a network mapped drive and when I create ...Show All
.NET Development server objects in web services
hi! i have kind of a newbie web service question (i am not sure if this is possible with a web service at all). i have a server program that intializes a tagweb (class object) and sets all the data from the db as in-memory objects in a central tagweb instance. now i want to have users interact with the tagweb in a flash application. i was wondering if i could use the flash WebserviceConnector to do so. My problem now is: how do i get the webservice to work on the one central tagweb object that was initialized by the server. to handle the threading traps i made a function ...Show All
Visual C# Hiding the vertical scrollbox on a multiline textbox
Is there a way in c# to hide the scrollbox (on the right hand side of the control) on a multiline textbox In order to remove all of the scrollbars, set the ScrollBars property to ScrollBars.None. To remove just the one on the right and leave the one on the bottom... set the ScrollBars property to ScrollBars.Horizontal. ...Show All
Windows Forms How to set the tab order of columns w/in a DatagridView control
How do you set the tab order for columns in a datagridview VS2005 B2 Columns in a DataGridView do not have tab order. Tabbing goes to the next column and at the end of the grid it wraps to the next row, first column. You can set StandardTab to true and tabbing will not tab through the columns but to the next control. You can adjust the display order by changing the DisplayIndex property. Hope this helps, -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio 2008 (Pre-release) Delete entire object graph
Hi, I've hit a snag on my smaple mailer. I have agents and messages. A message has many reviewers who are agents. I've mapped this in the DB (primitive i know - it's a test): CREATE TABLE [dbo].[MessageAgentReview]( [MessageAgentReviewID] [int] NOT NULL, [MessageID] [int] NULL, [AgentID] [int] NULL, CONSTRAINT [PK_MessageAgentReview] PRIMARY KEY CLUSTERED ([MessageAgentReviewID] ASC) WITH (IGNORE_DUP_KEY = OFF) ) GO ALTER TABLE [dbo].[MessageAgentReview] WITH CHECK ADD CONSTRAINT [FK_MessageAgentReview_Agent] FOREIGN KEY([AgentID]) REFERENCES [dbo].[Agent] ([AgentID]) GO ALTER TABLE [dbo].[MessageAgentReview] WITH CHECK ADD CONSTRAIN ...Show All
SQL Server Problems with Service Pack 4 for Analysis Services
Hi All, I just installed Analysis Services SP 4 on our database server. We are having major problems with our DTS packages and our OLAP cube processing. Anybody got any ideas I did have to apply the "msmdsvr.exe" fix before installing Analysis Services. This is documented fix by which the msmdsrv.exe file is renamed prior to the installation of AS SP4. Symptoms: Cubes not completing processing or taking much longer than before. ...Show All
Visual Studio 2008 (Pre-release) DHTML and XAML
Hi All, I have seen the ironpython demo of dynamiclly creating xaml objects to a window http://www.longhornblogs.com/rrelyea/archive/2005/11/25/IronPython_and_WPF.aspx and i was wondering if it is possible to do something similar with DHTML. I have created xaml demo gadget for live.com http://microsoftgadgets.com/forums/1585/ShowPost.aspx but i was wondering how far can it go. If the xaml code was on the same server could we access the the DOM on the XAML iframe and dynamicly add elements via DHTML Has anyone tried this thanks slyi ...Show All
Visual C# Copy of a class
Hi, i want to do a value copy of a class. Have i to implement my own valuy copy method or exists any method in c# that does it for me Thanks You can implement ICloneable interface. In the ICloneable.Clone Method implementation create new instance of class and fill it's fields equal to current instance fields. From MSDN: Clone can be implemented either as a deep copy or a shallow copy. In a deep copy, all objects are duplicated; whereas, in a shallow copy, only the top-level objects are duplicated and the lower levels contain references. You can decide what copy algorithm you need. ...Show All
Visual Studio MS Access and VSS 2005
Hello All, We are about to setup source control for the first time, and the majority of our development is in MS Access (2002). Will VSS 2005 work with the Access add-in for VSS I would like to give it a try if it's possible. Otherwise, we have to go with the current VSS which isn't so friendly for developers working at remote locations. Thanks, -Tom Hey Jeremy, We have been using VSS 2005 with Access 2002 (XP) for over 9 months now, and, with some caveats & frustrations, it's basically been working very well. (It has satisfied our goal of allowing 5 developers to work collaboratively on this proj ...Show All
Smart Device Development library with events that throws events
So I think this is more of a general .NET question, but since it's for a compact product I figured I'd ask it here. I'm developing an app that will support multiple types of barcode scanners. I would like to modularize the bar code scanning so that I can have a single interface that is used and is just implemented differently for each piece of hardware. The key is that this interface needs to be able to handle events (hardware key presses, valid barcode scanned, etc), but also needs to be able to throw events to the parent (i.e. barcode scanned). I've looked all around but can't seem to find anything that shows how to do something like this. ...Show All
