Ben Vanik's Q&A profile
Smart Device Development Connect Pocket PC to Oracle database without using web service
Is it possible to connect a docked Pocket PC to an Oracle database without using a web service If so, how Examples would be greatly appreciated. We have a Pocket PC 2003 application (Visual Studio 2005 C#) that currently uses a web service. New PKI security certificates have been added to our web server and we are unable to connect anymore. We thought we could put the certificates on the Pocket PC and connect as we did before but our security people have nixed that idea. We need a way to connect to our Oracle database where all the security is on the desktop. Hence, our desire to connect without going thru a web service. Any ideas Sure is possible, after all that 3 rd party software does just th ...Show All
Software Development for Windows Vista When will SideShow drivers be available for my Windows Mobile 5 device?
I'm dying to run SideShow gadgets on my WinMo 5 pocket pc. When will drivers be available and will there be any hardware-related restrictions on what type of gadgets will run Thanks, Scott We (Microsoft) had an internal prototype that we started showing back at MEDC 2006 for Windows Mobile. Currently we are evaluating our options for productizing this. At CES, we were demoing an implementation from i-mate for Windows Mobile, and as far as I am aware they are still expecting to be able to release this in Q1. Those guys have done a pretty good job on it, too :) Dan ...Show All
Windows Forms Setup file creattion using c# and outlook Add-in
I have created two projects, i developed one project using c#,and another one i created in outlook Add-in using VSTO. Now i created the setup files for c# project and the outlook adding individually. But i want to create only one setup file. it should include both means the c# setup and the outlook setup file. how to create hi Thank u very much for u timing help. my setup file is working fine. i had put outlook express setup file into my c# project setup file. First i created my outlook express setup then i had include my project setup file. ...Show All
.NET Development Question
OK, I am working on a code encripter to hide letters a-z and convert them to a special symbol that the program can read. How do I open txt files and read and change charater by charater on the program hi, here is sample but not tested: using (StreamReader sr = new StreamReader("c:\\source.txt" )) { char[] c = new char[1]; if (File.Exists("c:\\target.txt") File.Delete("c:\\target.txt"); using (StreamWrite sw = new StreamWriter("c:\\target.txt")) { while (sr.Read(c, 0, 1) == 1) { // do some encription; sw.Write(c[0]); } sw.Close(); } sr.Close(); } ...Show All
Windows Forms Comparing two strings with String.Compare()
I'm trying to compare two strings to see if either one or both is equal in Case. Can anyone tell me how I can do this using Compare() And what value it returns and how to get it Thanks in advance....... For case sensitive comparisons you can use: string.Compare(stringA, stringB, StringComparison.InvariantCulture); If you want the comparison to be culture aware and use the current culture you would use: string.Compare(stringA, stringB, StringComparison.CurrentCulture); and if you want to ignore all forms of culture comparisons and do just straight byte comparisons you would use: string.Compare(stringA, stringB, StringComparison.Ordinal); Check out the documentation on string.Compa ...Show All
Windows Forms Problem setting size of Windows Form.
I have a form that contains a DataGridView, and the form comes up too small for the user to see all the grid. How do I set the size of the form so that the entire grid (or, at least its width) is displayed I've tried the following: 1. Setting AutoSize to true. 2. Set the size in the Load event: private void MyForm_Load ( object sender , EventArgs e ) { this.Size = new Size(myDataGridView.Width, myDataGridView.Height); } and, private void MyForm_Load ( object sender , EventArgs e ) { this.Width = myDataGridView.Width; } No matter what I try, I get the same results. Thanks for any suggestions, Mike Try removing theDataGridView.Dock = Fill setting from y ...Show All
SQL Server Connection Manager Deployment with master/detail package
Hallo, I'm currently strugling with the setup of our packages for deployment to a new environment. We are working with a master/detail package setup. One master package is created that will call all child packages. In the master package we don't have any connection towards our source and/or target databases/sourcesystems. Everything works fine, however, starting to deploy the whole set of packages, it seems that we don't have the option to set specific properties of our detailed packages, e.g. connection properties. But this is just what we need. When we are adding a job in the Job Agent for our master package to be scheduled, we want to be able to set all different connection manager properties, not only the one from the mast ...Show All
SQL Server CLR Procedure error with third party .dll
I have a CLR procedure with the below code calling a third party .dll in the system32 directory of the SQL server: using System; using System.Collections; using System.Data; using System.Data.SqlTypes; using System.Runtime.InteropServices; using System.Text; using Microsoft.SqlServer.Server; public class CorrectAddressProcedures { [ DllImport ( @"C:\WINDOWS\system32\CorrectA.dll" , EntryPoint = "FindCityCounty" )] public static extern int FindCityCounty( StringBuilder zip, StringBuilder cityname, StringBuilder state, StringBuilder countyname, StringBuilder countynum); public static String Space( int len) { StringBuilder str = new StringB ...Show All
Visual C++ C++/CLI problems/issues
I have some questions on C++/CLI issue. Let me explain my situation: I have an existing native COM dll that contains my logic. It has been tested and works fine with native C++ client using CoCreateInstance. I would like to add a new logic and notice that BCL has a class that I can use. So I add a new source file and header which I compile with /clr since I need to use one of BCL classes (actually, at this point, it is just an empty shell). When I tried to CoCreateInstance in my native client, it couldn’t create. But if I go back to my COM dll project and take out the /clr in my new source file, it works fine. After some debugging, I found out the problem and have been able to fix the issue. However, I would like to get more detai ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How To Draw Torus(Mesh)?
i couldnt draw a torus.can u please help me im using C# 2.0 and DirectX 101 thanks a lot, i have used Mesh.Torus but,the camera is showing in the mid of Torus.How can i show a Torus with 3rd person view i think my problem is all about the location of camera. thanks again Take Care ...Show All
Windows Forms Numeric Only Cell/Column in DataGridView
I need a numeric only cell/column for the DataGridView. I'm guessing that I'd need to create a custom column inheriting the DataGridViewTextBoxCell. Are there any examples of this or has someone already created it Thanks, Kyle The is a sample numeric updown control column here . ...Show All
.NET Development how to get bounced email information
i am writing a window service that will send emails and will record there status... i.e. which email is bounced and which is delivered...etc... how can i do this........ i know how to send email by system.web.mail in 1.1 or system.net.mail in 2.0 but how to get these bounced info etc..... i don't kow please help me..... Does anyone know if there exists any easy-to-use open-source-component with an in-memory POP3 server and a notification .NET API The component does not need to persist any incoming email, but only listen for incoming mails and send notifications when an email bounces back. The kind of API that I am looking for could be something like this: Code Snippet IDeliveryFailure failureCallback = new MyConcre ...Show All
Visual C++ Which of these classes does what I want??
Here I have two classes: const int ADDITION = 1; const int SUBTRACTION = 2; const int MULTIPLICATION = 3; const int DIVISION = 4; public value class CalculationOperators { public : static array < const int >^ calculationOperatorList = {ADDITION,SUBTRACTION,MULTIPLICATION,DIVISION}; }; public value class CalculationOperators { private : array < const int >^ col; public : property const array < const int >^ calculationOperatorList { array < const int >^ get( void ) { this ->col = gcnew array < const int >{ADDITION,SUBTRACTION,MULTIPLICATION,DIVISION}; return this ->col; } } }; Now I wanted a const array with values you se at the ...Show All
Software Development for Windows Vista "bad certificate active X blocking" issue
hi, what is the possible solution to resolve an issue "Bad certificate active X blocking" while accesing the web pages in IE7 how to fix the "CSS fixes" issue that come when we ty to access the yahoo and other sites how to block this issue thanx divya Hello divya mittal, Can you please provide an exact error message and/or hex message that you are getting when you receive that error. Thanks! Matthew Braun ...Show All
Visual Studio Express Editions Fail to install c# express
When im trying to install c# express i got message that the Background Intelligent Tansfer System is disabled (this service i cant run on my comuer even manually), How can i install c# express Please Help Thanks Ron And this error may occur when the BITS service is disabled, does not exist, has been deleted from the services application, was stopped while download was in progress, or if any service that BITS depends on failed or was deleted. The error message for this problem is "BITS service must be enabled before you start the installation process. Enable the BITS service and run setup again." Reference to: http://msdn.microsoft.com/vstudio/express/support/troubleshoo ...Show All
