Dhiraj Prakash Gupta's Q&A profile
Windows Forms Create a Strong Name for Com DLL so ClickOnce will work
I'm having a heck of a time tryin to get this stuff working. Here's my problem: We have a 2.0 VB.NET desktop app that uses Com components from our phone system. When you make references to the COM components for the project, they create the Interop.xxx.dll files in the project's bin folder. Well, I'd like to figure out how to get them into the GAC or how to some how make them strong named so that they'll work when I try to deploy them with ClickOnce. I've tried to use regfree com to deploy them and that doesn't work (I can provide the error if it will help). I've also tried to drop the Interop.XXX.dlls into the GAC and that won't work because they're not strongly named. Now, maybe if I could figure out how to name them strongly it would wo ...Show All
Windows Forms i need to change the row position during run time using drag and drop method for data gridview
in my project i have an requirement to change the order of rows using the drag and drop method for a datagrid view containign about 40 rows can any one help me how to solve this problem 1. I set "AllowDrop" to true. 2. In the DragEnter event I put this... if (e.Data.GetDataPresent(DataFormats.Text)) { e.Effect = DragDropEffects.Copy; } else { e.Effect = DragDropEffects.None; } 3. In the DragDrop event I put this... this.dgvMyGrid.CurrentCell.Value = e.Data.GetData(DataFormats.Text).ToString(); You may add your logic here You can also refer to this http://www.codeproject.com/csharp/DataGridView_Drag-n-Drop.asp ...Show All
Visual Studio Days of Week and Color Names instead of data
I'm new to CR with VS 2005. All I'm trying to do is to create a report from the fields of a table in an MS Access db. I used the wizard and selected all fields. Of the fields I have A_Number, which is a number up to 13 characters. When this is displayed in the report it shows days of the week instead of the actual A_Number data. I also have a field for Record which shows up with color names, like Fuscia for example, instead of the actual data. After reviewing the rest of the data in the table and what is displayed in the report none of the data displayed is correct. It is as if it is getting it from thin air. Any ideas By any chance are you doing any sort of record selection in the report And a really sil ...Show All
Windows Forms Changing Form size at run-timeI
When i change the size of my form at programmatically according to a selectedItem in my combobox. There's a little flicker on the form ... the form contains lots of usercontrol. It isn't smooth... How can i fix this DeborahK wrote: Are each of your user controls though setting this as well (Check the designer file...) yup .. well... i did for everypanel that contains the usercontrol ... something like this .. SetSizeFct() { this.Suspendlayout(); this.panel1.SuspendLayout(); .... //change form Size ... this.panel1.ResumeLayout(); this.ResumeLayout(); } Or did i have to do it for everything controls in the panel as well ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Camera support
Are there any plans to support the 360's forthcoming cam and standard PC web cams with XNA One of the great things indie/hobby developers do is come up with new ways to use hardware devices. It would be really great if MS could open up this avenue. [)amien There's nothing been announced, though several folk have asked. Add a request to connect following these instructions: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682921 There appears to be no exisiting requests so after you add it please post the ID back here to help other folk find it and vote for it. ...Show All
Visual Studio 2008 (Pre-release) My solution for Or
Hello, Inspired by some posts on this forum I'm trying to create a set of metods for building query with mulitple alternative conditions. This is what I achieved so far. Helper class used for passing the base expression and sequence between conditions public class OrCondition<T> { private Expression expression; public Expression Expression { get { return expression; } } private IQueryable<T> sequence; public IQueryable<T> Sequence { get { return sequence; } } public OrCondition(Expression expression, IQueryable<T> sequence) { this.expression = expression; this.sequence = sequence; } } Extention methods 1. Starts the set of conditions: adds a condition ...Show All
SQL Server Merge Join question
Hi, All, In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service TIA, With other popular ETL tool, in one transformation, you can do both "join" and "where". But in SQL Server 2005 Integration service, you have to use two transformation to finish the task. ...Show All
SQL Server Export to excel issue
I Have a report, in SQL Reporting servies. THE report has a field where the value shows up as an integer ie 0. However, when the report is exported to excel, the field value shows up as a decimal ie 0.4. How do i keep the number to show as an integer only ie 0, when exported to excel. Are you specifying a format code to only display the integer, or is the underlying value actually an integer If it is the former, what is the format code you are using Ian ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# Performance Problems
Hi, I recognized, that my framerate is very bad in comparison with some C++ examples. After removing all "catchs" in the render-methods i got 100 FPS instead of 20. Exceptions seems to be really, really slow. Are there some other performace problems in C# which i have to have in mind Cache cache and more cache. Object creation is a fairly expensive (relatively speaking). So try not to create objects needlessly. When passing around structs use "ref" otherwise they will be passed by value. If some fields need to be accessed a lot but only by the classes in your assembly make them internal and let classes directly access them instead of through properties, because encapsulating them adds a ...Show All
SQL Server Homophones and Synonyms
Anyone knows if Sql Server supports homophones and synonyms in the full text search on eastern asian languages such as Japanese and Chinese if so can you provide some link or some tip to getting started TIA Seems that Homphones aren't supported by sql server "Hope that helps :)" Carlo Pagliei . sw developer . www.carlop.com ...Show All
Visual Studio Express Editions noob question: what do windows applications use as a db?
sorry but I have this totally noob question. I'm completely new at writing windows applications, and want to learn. I have a book (sams learn in 24hours), and it briefly goes over ADO. My question is, besides writing to a flat txt file, what do windows applications use as a database Obviously your standard XP desktop doesn't have a db server, so how do programs save information I'm basically creating a database, but want it to be an installable program, not an MS Access db. But I'm having trouble figuring out what to do in regards to a DB. I see you can use localized db's inside VB, but I keep reading that the user would still need sqlserver express or is that wrong spotty - from the impression ...Show All
Windows Forms ClickOnce and Application Block
Hi, I am working on an application which is using Application Blocks. I published it by using Clickonce, seems that it the publish process went smoothly. But when I tried to install it in customer's computer, I received error "Can not find the configuration file ...... dataConfiguration.config. You must check the 'path' attribute in the section 'dataConfiguration' at ...", Does anyone know how to fix this problem Thanks in advance. Can you post the full message I think it because after you publish the application the application get installed in a weired place so the path may be wrong or they way you are accessing the file inside may be pointing to a wrong directory. There are too many p ...Show All
SQL Server stocked procedure (which returns plenty of rows) inside SELECT statement ?
Hello, I want to recover rows returned by a stocked procedure into a select statement, something like this: select * from (exec sp_helpuser) us where UserName like 'dbo' This syntax is false. Is there a way to do this Thank you Mugambo: As I worked on this issue, I made several major changes : I don't need to drop the table, since its structure isn't going to change. Instead, I just include it as part of the script which creates the procedure. ==> create table UsersTable ( ... ) Each time the procedure is called, I empty the table ==> delete from UsersTable refill it ==> insert into UsersTable exec sp_helpuser do my query ==> select GroupName from UsersTable where UserName like CURRENT_USER then rollback. I ...Show All
SQL Server MDX MTD Calculation for Given Day In Month
I'm trying to get a MTD calculation up to a given day in a month for current and previous months. This is for a Reporting Services report. The columns will be Total Calls and Total Calls Through {X} Days in Month. The rows will just have the months listed. I was able to do this in RS 2000 using the following dynamic mdx statement: = "WITH MEMBER [Measures].[ParallelPeriod] AS " + " 'Sum({[TimesDaily.Calendar].CurrentMember.[1]:[TimesDaily.Calendar].CurrentMember.[" & Now . Day . ToString () & "]}, " + " [Measures].[Calls])' " + " SET Months AS " + " 'LastPeriods(" + CStr ( Parameters ! monthsback . value ) + " , Tail({[TimesDaily.Calend ...Show All
Visual C++ how to hook the message?
i want to hook the message when i shut down the machine.why it do nothing the full code as follow: #include "stdafx.h" #include "minikit.h" #ifdef _DEBUG #define new DEBUG_NEW #endif HHOOK msghook = NULL; DWORD dwThreadId=0; DWORD WINAPI hookthread( LPVOID lpParam ); LRESULT CALLBACK JournalRecordProc(int code,WPARAM wParam,LPARAM lParam); BOOL WINAPI HandlerRoutine(DWORD dwCtrlType); void resume(); CWinApp theApp; using namespace std; int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { int nRetCode = 0; if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) { // TODO: _tprintf(_T("error: MFC initial failure!\n")); nRetCode = 1; } else { CreateThread(0,0,hookthread,0,0,& ...Show All
