Manojit Paul's Q&A profile
Smart Device Development Resource DLL still active
Hi all, We made a .Net DLL that is the managed end of an unmanaged - managed bridge. There is nothing in the DLL besides the wrappers to the unmanaged function calls and the P/Invokes. When I terminate the program the managed DLL stays active. Any ideas on why it would stay in memory Do you have to terminate a managed DLL in some way Alex, Nope. Everything is a command-response call, no threads. I did notice that it's only when I am debugging and the debugger terminates in an abnormal fashion, like an uncaught exception. It does not seem to occur when I run the program outside of the debugger or the debugger terminates the app normally. ...Show All
Visual Studio Express Editions mathematical operations combining the data from richtextboxes
I am having difficulty adding two richtextboxes and putting the result into a third. I cannot find how to change the data from 'string' to 'integer' so that the result will be correct. I am trying to write a program to play a mathematically involved board game, and want he program to perform the math functions automatically. HELP!!!!!!! krhoover wrote: I tried this method and got a formatException that stated my input was in the wrong format. Would it help if I changed the RichTextBoxes to standard TextBoxes Yes ... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives bugged?
Hi everybody! Does anyone know if DrawIndexedPrimitives is bugged I read about people having freezing problems or getting blank screens. I have something completely different: I am trying to draw two triangles with just one shared vertex and the DX function displays just the first triangles!!! Here is the code for the VertexBuffer: private void VertexDeclaration() { vb = new VertexBuffer ( typeof ( CustomVertex . PositionColored ), 5, device, Usage .Dynamic | Usage .WriteOnly, CustomVertex . PositionColored .Format, Pool .Default); vertices = new CustomVertex . PositionColored [5]; vertices[0].Position = new Vector3 (0f, 0f, 0f); vertices[0].Color = Color .White.ToArgb(); vertices[1].Position = ...Show All
Windows Forms How do I get data from a combobox?
Hello I have just started to program and I am making a web browser for my school. I have the UI done it looks great for a novice I suppose! Here is the thing though I only want it to be able to browse pages that I designate. So my solution for this was to add a toolstrip with a toolstripcombobox I added in the data: Grades 1-8 Grades 9-12 Now what I am wondering is how to associate a URL with each one: Grades 1-8 = someschool812.edu Grades 9-12 = someschool912.edu I do not want to display the URL in the combobox just the name, anyway to do this -JJ there is a way. you could do this way.... have a collection of url's in an array. when the user selects a value from the combobox, ...Show All
SQL Server how to save filename as columnname in Flat File Dest config
I have created a SSIS pkg (datasource and flat file destination) I need to have the flatfile renamed after each exec to a column name that exists in the table I am running the pkg against. Where does the code get put to make this change after the file has been created Basically if I could run T-SQL after the file creation, I could make it work. thx.. Use an Execute SQL task to retrieve whatever you need (the full file name) into a variable, using a ResultSet of 'Single row' in the General node and mapping the output of the task to a variable in the 'Result Set' node. Then, rename the file using a File System Task to the variable retrieved in the Execute SQL Task. Do so by setting the IsDestinationPathVariable property ...Show All
Visual Studio Team System Work Item Customization - Security Problem while Importing a New Work Item Type. After specifying the <Transition for> attri.
I am importing by customized Work Item Type "Task.xml" using witimport. I added the below Transistions for my WorkFlow: < TRANSITION from = "" to = " Assigned " for = " [VSTSLab]\Contributors " > < REASONS > < DEFAULTREASON value = " Assign " /> </ REASONS > </ TRANSITION > When I import the xml, I am geeting error. TF26171: User/Group '[VSTSLab]\Contributors' is not found Also I added new group to the Team Project and tried ussing that Group, but still it is not working. I read on certain blogs that we need to refresh the security cache manually, but how. Please provide me the Details ASAP. Thanks and Regards Nasir The problem is that you mu ...Show All
SQL Server Jump to URL: to open Word doc??
I'd like to use the Jump to URL feature from within a report to jump to a Word doc. This seems to only be possible if the Word doc name is a single word i.e. "foobar.doc". If there are spaces the URL substitutes '+' between words. Is there some easy workaround Adding the Word docs to the project and attempting to open them as 'Link to Report' is not supported. The ability to store and browser-open Word docs as of a doc repository is a great feature of SSRS. ...Show All
Visual Studio 2008 (Pre-release) winfx wizard framework
Hello, I'm using WPF to develop a wizard to guide users through a setup process. I'm trying to follow the vista guidelines. I came across a few postings on 'WINFX WIZARD FRAMEWORK'. So far I've gathered that it is a mix of WPF and WWF, sound very cool and useful. Would someone please explain what it is When is it going to be released. Is it already part of the CTP I want to know if I should wait for it or go ahead and hand code the wizard. Thanks Houman I had created a basic wizard for adding users using PageFunctions in the "Building WPF Apps" hands on lab for PDC 05. You can look at the sources here . Of course, this does not use Windows Workflow but doesn't have ( ...Show All
Windows Forms DataGridView with a RichTextBox Column
Can anyone point me in the right direction for declaring a RichTextBox column within a DataGridView... I know there are a few examples revolving around the Calander control... but... these examples all revolve around editable controls... the displayed control remains a TextBox until it is clicked... which is no good for me... as I want to display each cell as a RichTextBox. I assume my only option is to derive from DataGridViewCell and override Paint... but my c# is little weak and I'm struggling. In addition, I may be using a hammer to crack a nut... as all I want to do is to display text in a column which may have some words underlined... from my limited understanding of .net controls... I can only do partial underline with a R ...Show All
Software Development for Windows Vista error while adding web reference in C#
Hi , We are using the webservice 2.0. While i am trying to add the web reference i got the below error. Unable to import operation <method name>. The datatype ' http://sql.java:Timestamp ' is missing. Please help me to resolve this. When you add any web reference, it creates the STUB at your client side. This seems to be datatype mismatch problem, The data type on the Web Service is java TimeStamp, and on the client it will create with C# time stamp. Try to look on to this issue. May this help you. -Rahul ...Show All
Smart Device Development How to use database for pocket pc application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, Actually, 9 minutes for 20K records is very fast – you’ve d ...Show All
Smart Device Development Free/opensource zip component
Hi I have tryed to find some free or opensource zip components to .Net Compact Framework on Google, but I havent could find any. Is there really not any free zip components to Compact framework The only zip components I can find on Google, it costs from $100 to $400, and I dont have that money. I have found some posts here on MSDN forums, and also the C# article link (I work with VB.Net) http://www.codeproject.com/dotnet/mscompression.asp but I cant see how(if it can) to do the following things: The only functions I should use is: 1. Zip/pack a .txt file to an zip file 2. Unpack an .zip, where the zip file contains a .txt file I really hope there are someone there can help me with this. Thanks. ...Show All
Smart Device Development Querying from my PPC to a Desktop Database
Hi, I would like to ask what are the things needed to connect a pocketpc to a desktop database server so it can query to it. What I mean to ask is, what pocketpc OS, database server and visual studio must be used Is it even possible without any CE Database on the pocketpc Im trying to develop a program that will help waiters in restaurant to place orders using pocketpcs. The main objective of the software is for the waiter to input the order of a customer and the data will be passed to the database to make the order. Any help would be greatly appreciated. Thanks. Jup To add reference, click References/Add in solution explorer and choose System.Data.SqlClient.dll. If you don't see it, please run a sys ...Show All
SQL Server CASE with WHERE
I want my where clause to be changed based on my parameter check FROM [dbo] . [Product] P WITH ( NOLOCK ) WHERE P . SellerStoreID = @SellerStoreID AND CASE WHEN @AlbumType = 'mp3' THEN P . SellerProductID not like '%AL%' and P . SellerProductID not like '%-WAV%' WHEN @AlbumType <> 'mp3' THEN P . SellerProductID like '%-WAV%' how can I do this Frankly, as a relational programmer, I feel the same way (with a few less asterisks perhaps :) about functional/OOP programming languages. But they both serve vastly different purposes, and we need them both. SQL does in one line of code what can take thousand ...Show All
Visual Studio VS2005 not processing IF statements
Hello all, here is my issue. While stepping though the code below one line at a time the VS process the if block and then the else block IF TRUE then 'process some stuff ELSE 'prcess some other stuff ENDIF We are sure the expression evaluates to TRUE and we have actualy put in code IF TRUE. It goes into the true part and then executes the else part right after. Has anyone ever seen this It has happened to use twice already, the first time went away and we are not sure why. This time it is not. Thanks Shawn I have indeed seen this when debugging release or optimized builds. Under these scenarios the generated assembly can be rather different in structure than ...Show All
