Saravanan.Chinnusamy's Q&A profile
.NET Development Help with Raw Socket
Are there any example of how to construct a raw icmp packet Mariya Atanasova - MSFT wrote: If you're just looking for Ping, there is a Ping class already in the System.Net namespace. http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx Mariya No hes looking to Learn ICMP ...Show All
Visual Studio Express Editions MSXML XMLReader trouble
II have run into a problem in the following line of code. xmlReaderPtr->parse(_variant_t(&bstrDirectoryTreeXML); xmlReaderPtr is a 'ISAXXMLReader *' data type. As best I can tell the parse function requires a 'const _variant_t&'. bstrDirectoryTreeXML is a BSTR data type. I checked on the MS website and it say's that the parse function can accept a VT_BSTR. I don't really know what that means I took it to mean a variant with a BSTR inside but I guess I was wrong because that's what I sent it and it gave me an invalid argument exception. If anybody can help me in any way please help I am stuck here. _variant_t dirXML = (bstr_t)bstrResponseText; hr = xmlR ...Show All
SQL Server sql select command
Hello,everyone,i have a problem:(about BOM caculation) The BOM is B--87700 has one outside service,and two children parts:z--877,and s--877 i have a table,this table which contains columns like this: part_id description price(unit price) quatity B--877 FD 82.36$(service price) 1 Z--877 Roughcast 2.36$ 4 S--877 the same 8.36$ 12 and i want to get a result of this: part_id description price B--877 FD (82.36+2.36*4+8.36*12)=192.12(just the result 192.12 is okay) how can i achieve this target How do I know that B--877 is the parent of the other two And are ...Show All
Visual Studio Express Editions Reading text from a txt file. Problem with ignoring polish marks inside
Hi, I learn VBE 2005 from a book. I got a program which load txt file and shows it in text box. Problem is in displaying polish marks inside box. Program simply ignores them and I got my text files cut from polish marks. I have a polish windows xp pro. Please help! Here is code I use ( works fine with all english marks ) Public Class dialogs Private strFileName As string Private Sub btnOpen_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click With OpenFileDialog1 .Filter = "Pliki tekstowe (*.txt)|*.txt|Wszystkie pliki (*.*)|*.*" .FilterIndex = 1 .Title = "okno dialogowe otworz" End With If OpenFileDialog1.ShowDialog = Windows.Forms.Di ...Show All
SQL Server Microsoft.Jet.OLEDB.4.0 has not been registered. ??
Hi folks, We've got SQL2005 April CTP i64 running on Win2003 with SP1 appied (Itenium Proc). Last week, one of developer sent me an email with error msg, : Msg 7403, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered. I ran Component Checker against that box and it found that MDAC2.8 with SP2 installed. I also found from MS site that Jet 4.0 SP8 i64 version available but the installation aborted due to newer version installed on the box. I am stucked. Any advice would be appreciated. Sunny Sunny, It sounds like the developer is executing code in a 64-bit application, and is looking for the Jet OLE DB Provider. There is no 6 ...Show All
Smart Device Development VS 2005 Smart Phone Tool and SDK Mobile?
I have been developing apps in VS2005 for Mobile 5 Devices. There are a lot of tools in the toolbox for mobile devices. Now I am trying to create apps for Smart Phone Devices Mobile 5. I have noticed the toolbox is pretty empty when it comes to tools for smart devices. Is there a place I can find tools that work with VS2005 for smart devices (phones like treo 700wx). I see a lot of really cool apps out there for them and carious what people are using seems like VS2005 lack a lot on tool and complexity. I have installed both en_windows_moblile_50_Dev_resource_kit.msi and en_Windows_Mobile_50_Smartphone_SDK.msi. I suppose I am so use to a lot more tools and a lot more functionality with PPC and normal app development. Thanks for the pos ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Clarification on device creation, resetting, and deletion...
I come from C/C++ and DirectX 9 where the defacto standard (at least with their early examples) was an InitDeviceObjects()/DeleteDeviceObjects() pair of functions and an InvalidateDeviceObjects()/RestoreDeviceObjects() pair of functions. It all seemed pretty clear cut as to when any of those functions ever got called. The Init/Delete functions where called for device creation and deletion. The Invalidate/Restore functions were/are typically called for device reset etc. Within those functions -- if you had static device assets (i.e. MANAGED memory pool) -- you could create and delete them inside of the Init/Delete functions. For device assets that needed to be recreated due to the fact that they don't persist across a device reset (i.e. DEF ...Show All
Windows Forms Deployed install wont run application
Hi folks; I've built a data application in VB 2005 which uses sql 2000 on a remote server. I've created a setup and deployment project in the solution folder for the app -- as explained in the help files walkthrough -- added the dependencies and all the required steps as explained. The application installs and runs perfectly on my development machines, but after installing to a client machine, the exe (or short cut) simply will not initiate the application -- no errors or log info -- when we try to run it. We get an hour glass icon for a second or 2, then it simply stops without any kind of other behavior. I am using some 3rd party controls, and the latest version of Crystal 11.5. It's also important to note ...Show All
Windows Forms Form to form data passage.
I have two forms. The first form, Form1 has a read only text box on it. The second form, Form2, has a editable text box on it. The user will click a button on Form1 that launches Form2. In Form2, the user will enter some data into the text box. They will then hit the "Apply" button that is on Form2. What I want to do is send the text of the editable text box on Form2 to the read only text box on Form1. I was wondering if there was a way to access the control itself from another form. Meaning: IN FORM2: Form1. textBox1 .Paste(this. textBox1 .Text); Where the text box in blue is the read only text box in Form1, and the green text box is the editable text box in Form2. The second method I was thinking of using was a way for Form1 t ...Show All
SQL Server Server options are not being executed from local programatically code??
Dear all, For example, executing a DTSX stored in a server, execution is fine and successfully but the log file attached to that DTSX is not created at all after the execution. Otherwise if I'm going to execute from the server everything is fine: log file is created and gathering the usual information. Let me know if exists any option for to enable this from the own DTSX. If I run local packages log files are created without problems. Thanks in advance, hi again, srvdesasql2005 is our development sql25k SSIS package: \\ srvdesasql2005\AdminSQL\My Documents\Visual Studio 2005\Projects\ABS-CAJEROS\probaenric.dtsx Or, the same that: "C:\Documents and Settings\AdminSQL\My Documents\Visual Studio 2005\Projec ...Show All
Visual C++ Conversions string <-> int in C
Hi everyone! Does anyone know how to convert a string to an int and vice versa in C (not C++, only in C) I need it because I have to create txt files incrementally, whose names are 1.txt, 2.txt, ...etc. Thank you very much! Yes, it works, but the program crashes if I try to put the file into a folder (that already exists), like that char filename[ 10 ]; int number = 190 ; sprintf(filename, "output//%i.txt" , number); pFile = fopen (filename, "w" ); // pFile is a FILE* for (i= 0 ; i< 2 ; i++) { for (j= 0 ; j< 3 ; j++) { fprintf(pFile, "%f " ,*(ARRAY+ 3 *i+j)); // ARRAY is a matrix pointer } } fclose(pFile); It gives no problem if the filename is for in ...Show All
Software Development for Windows Vista Location of contact.h/icontact.idl?
Are contact.h and/or icontact.idl present in Windows SDK I need to use Windows Contacts and to access IContact interface I need contact.h or icontact.idl. Thanks for the inquiry. Icontact.idl and IContact.h are not in the current version of the SDK. They will be included in the September CTP release of the SDK. Mike ...Show All
SQL Server Question transport-level error
Hi all, I'm having a little problem with my sqlserver 2005. I'm trying to crate a user in Microsoft SQL Server Management Studio throug a query. Like this: ------------------------------------------------------------------------------------------- USE [master] GO CREATE LOGIN [MYUSER] WITH PASSWORD = N 'MYPASSWORD' , DEFAULT_DATABASE = [MYDB] , DEFAULT_LANGUAGE = [us_english] , CHECK_EXPIRATION = OFF , CHECK_POLICY = OFF GO ALTER LOGIN [MYUSER] ENABLE GO USE [msdb] GO CREATE USER [MYUSER] FOR LOGIN [MYUSER] ; GO GRANT EXECUTE ON [sp_start_job] TO [MYUSER] GO EXEC sp_addrolemember 'db_datareader' , 'MYUSER' GO EXEC sp_addrolemember 'db_datawriter' , 'MYUSER' GO EXEC sp_addrolemember 'SQLAgentOperatorRole' ...Show All
Visual Studio LaunchDebugTargets2 fails with error code 0x89710016
My debugger launches perfectly under XP32 and Vista32 but fails with the above error code on both Vista64 and XP64. What does the error code mean and what's the problem I'm using using VS2005 with SP1. Dermot I've finally tracked this down. It's due to the debugger CLSID not being in the right place. On x32 systems, this is HKLM\Software\Microsoft\VisualStudio\8.0\CLSID\{...} for x64 systems this has to be HKLM\Software\Wow6432Node\Microsoft\VisualStudio\8.0\CLSID\{...}. I'm not sure if this is the whole story because there's Vista 'vitualization' to consider as well. But explicitly putting it in the Wow6432Node did the trick for me. The error code is confusing though - it looks like a privilege probl ...Show All
SQL Server Report Builder Question
Please help!!!! We have recently implemented an SQL Server 2005 and when i click on the report builder button (reporting services) for the user i am getting the message "Application Download did not succeed. Check your network connection or contact your system administrator or Network Service Provider" This is actually performed while the user has administrator privledges. If someone has this problem or a solution, could you please post. Thanks This sounds like at authentication problem. If the logged-in user's default Windows credentials are not appropriate or sufficient for authenticating to the report server, then ClickOnce cannot download the application. In these cases (i.e. whe ...Show All
