code_junkie's Q&A profile
Visual Studio 2008 (Pre-release) screen to world coordinates
hi, I want to know if there exists methods to convert a point (captured by the mouse in a viewport) from screen coordinates to world coordinates in wpf. If not, how can I do the conversion thanks, pascal. Do you mean how to convert from device pixels to logical pixels then you should try this method: System.Windows.Media.Visual. PointFromScreen (Point point); Sheva ...Show All
SharePoint Products and Technologies MOSS2007 Office integration...good, better, best document.
Hi All Is there an update to the document located here: http://www.microsoft.com/office/sharepoint/prodinfo/officeintegration.mspx regarding Office version integration with Sharepoint. I need info on how well Office 2003 will work with MOSS2007 Cheers Mike Here's the unofficial list of SharePoint integration features (note that there are many other enhancements not related to SharePoint) that Office 2007 client products have that previous versions of the products didn't provide: Outlook 2007 · Ability to take SharePoint content offline: document libraries, contacts, calendars, and tasks. · ...Show All
Visual FoxPro Indexed field problem
hi generous friends, i m using vfp 6. I have a form with data environment having a table that is indexed on 3 fields with tagname reg_no, name, surname. my form has four record navigation commandbuttons viz. top, prev., next and last. When any navigation button is clicked I want to move the record pointer in sequence of the first tag i.e. reg_no. So i have given command "Set Order to reg_no" in the beginning of their click event. but it is not working as desired . So i inserted "wait wind set('order')" command to check the order of the table. wait window flashes the right tag name, but the sequence in navigation is not maintained. please give me a solution. sorry friends, ...Show All
Software Development for Windows Vista Debugging asp.net application gives a strange error
Hello - When i try to debug asp.net application (Framework 2.0) a strange error is logged in the eventviewer. EXECUTE permission denied on object 'sp_sdidebug', database 'master', owner 'dbo'. And I ensured that the Enable Sql Debugging flag is unchecked in the project properties Can anyone please help how to get rid of this error. Thanks- Shyam ...Show All
SQL Server How to Deploy the reports automatically in SSRS?
Hi, I am creating a application to show reports for daily based information. I have created the reports and i am changing the data source at run time.In order to view the updated reports, i have to deploy. So i need to deploy the reports automatically. can any one gave a idea to do this. thanks Hi, You can do this via the RS command. What you need to do is write a script (.rss) that would serve as an input file to the rs command. this script should loop through a folder and upload all extension with .rdl Create a folder in your D: drive for example called RS within that have your script and have a sub folder called reports which were you will have all your reports. once this has been done go to cmd and d ...Show All
.NET Development Active directory throws an error message while creating user account
Hi, I am using this code(.NET2.0 ) to create the user on the domain Controller which is installed on my machine: try{ DirectoryEntry objUsers = new DirectoryEntry ("LDAP://OU=Alcatel,DC=alcatalnsit,DC=com"); DirectoryEntry objNewUser = objUsers.Children.Add("CN=" + "txtFirstName" + "txtLastName", "user"); objNewUser.Properties["sAMAccountName"].Value = ("txtFirstName" + "txtLastName"); objNewUser.Properties["givenName"].Value = "txtFirstName"; objNewUser.Properties["sn"].Value = "txtLastName"; objNewUser.CommitChanges(); } Catch(Exception ex) { Console.Writeline(ex.ToString()); } on the second ...Show All
SQL Server pk constraint enforcement using SSIS to import data
Note: I'm running a bottom up design on this project as I won't know what data I'm really working with until I can get it imported and analyze it. Also, I'm not a DBA or developer, so please be gentle... I am importing 30k+ rows using SSIS (OLEDB -DB2- source to OleDB -2k5- destination). The import works fine, but I just realized that I need to set up a pk on the row emp_ids. The problem is that in the DB2 source, the emp_ids were removed (set to whitespace, but not null). So, I can't just uncheck the 'keep nulls' option and import the data. Any suggestions or links (using SSIS) on how to identify the rows where emp_id = "whitespaces" and 1) either keep them from being imported, or 2) remove them afterwards (I suppo ...Show All
Smart Device Development GetUserNameEx in coredll
I use this function to get user name on Windows XP, and it works: [ DllImport ( "secur32.dll" , CharSet = CharSet .Auto)] public static extern int GetUserNameEx( int nameFormat, StringBuilder userName, ref uint userNameSize); When I try to call the same funcion on Windows CE 5.0 it fails... [ DllImport ( "coredll.dll" , CharSet = CharSet .Auto)] public static extern int GetUserNameEx( int nameFormat, StringBuilder userName, ref uint userNameSize); GetLastError() function returns "87 The parameter is incorrect ERROR_INVALID_PARAMETER" I checked out each of EXTENDED_NAME_FORMAT value, with the same result. Any suggestion Thx, Ivana ...Show All
SQL Server (Select All) Checkbox As Default
All, When creating a dynamic parameter list from a query, Reporting Services graciously provides a "(Select All)" checkbox. How can I select this checkbox by default so that when a user generates the report, all of the values are selected Thanks The "select all" item is just a UI concept at this point. You could setup a default value for the report parameter that contains all values of the valid values list - but in that case all the checkboxes for individual items would be pre-selected, but the "select all" would still not be pre-selected. -- Robert ...Show All
Visual Studio Compiling a We Site to a dll
Can anyone tell me what happened to being able to compile the code behind pages to a dll ion Visual studio. I can't find anything that will allow me to do it, short of compiling the code in an command line complier Does ScottGu's blog http://webproject.scottgu.com/CSharp/UnderstandingCodeBehind/UnderstandingCodeBehind.aspx help you Cheers. Anand.. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Quake bin release 2
New release of my Quake port to XNA. This one as a lot of new features like player walk, weapons (axe and rl), teleports and items. I still don't have help on this so things move slow. http://perpixel.dyndns.org/~guillaume/xna_quake_release_0.02.zip Enjoy! It just launches an exception when I try to run the .exe Perhaps you're missing a few files, or redistributables And frankly, I'm not too interested in Quake XNA if we don't have access to the source code. I mean, I come here to learn, and usually through example. I'm not interested in merely playing a game :\ And jah congrats on porting Quake over to XNA :) ...Show All
Visual C# MEthods and functions.....
what is the diff. between methods in C# and funtions in C........ need good insight.... plz help Hi, As far as I understand, the function in C is called "function" because C is procedual language, it use function just as a function (like function in mathematics), so it called "function". While C# is object-oriented , every method is in class, so the name "function" not longer used, instead we use "method". (Class may has many methods) ...Show All
Visual C++ Specifying C++ dll function name in GetProcAddress
Hello coders, Can someone please explain this to me In a C++ dll I have defined __declspec ( dllexport ) LRESULT CALLBACK hookProc( int code, , WPARAM wParam, LPARAM lParam); After getting the dll's HMODULE with LoadLibrary, I try GetProcAddress(g_hHookDll, "hookProc" ) This fails I understand because hookProc's C++ name is mangled. Therefore I try, extern "C" _ _declspec( dllexport ) LRESULT CALLBACK hookProc( int code , WPARAM wParam, LPARAM lParam); GetProcAddress(..."hookProc") still fails. What works is GetProcAddress(g_hHookDll," _hookProc@12 " ), a name I got from a dll scanning utility. 1) Why is hookProc's name still mangled after it is declared exported as &q ...Show All
Visual Basic How To Format Part Of a String?
Say I have a string who's text is "Only the word ' bold ' is bold." Is there a way to format the string like this so that only the word 'bold' is bold Basically, I want to add to my program a feature similar to intellisense, which shows you the required part of a piece of code in bold when you go to type it. Thanks for any help. Thanks for your reply. Sorry I worded the question wrong, I meant to say is there a way to format only part of the text in a label, textbox, ect. in code. ...Show All
Visual C++ Edit and continue in VS2005
Hi, I just recently started to use VS2005. I am trying to use the edit and continue function, but for some reason it desn't work. I have it enabled in the project options (check mark). when I change the code during debug I get this message: "This source file has changed. It no longer matches the version of the file used to build the application being debugged." Then I have no coise but to click "OK" and forget about the change I just made What could be wrong Thanks! Thanks james and all, It was the project specific settings. I had some weird behaviour though: I created a function that does nothing but return true. Then, I set a breakpoint on the return tru ...Show All
