Zeeina's Q&A profile
Visual Basic Superconstructors?
What's the general syntax for using inheritance in VB Say I've got ClassSuper and ClassSub, ClassSub inherits ClassSuper. How do you access the super constructor How do you access values in the super class joyner, You can only access one level up with MyBase.New(). If you want to call up many levels, use Protected Sub New's for the same effect. Protected means they can only be called by children. Here is an example: Public Class SubSubClass Inherits SubClass Public Sub New() MyBase.New("Special Functionality") End Sub End Class Public Class SubClass Inherits SuperClass Public d As Integer Public e As Integer Protected Sub New(ByVal arg As String) MyBase.Ne ...Show All
Smart Device Development How to remove or kill default phone application (cprog.exe) from WM2003 SE Phone
Hi guys! I have an application, which phone functionality for WM2003 SE Phone (T-mobile MDA III). The default phone app. of PPC - cprog.exe is very "insolent" and in some cases shows differnet UI elements! If I kill its process, after some seconds Services.exe starts it again! My question is: Is possible to remove or kill cprog.exe Regards This is officially unsupported. The guys at xda-developers.com might have solution for this. Have you considered tp negotiatiate a special contract with your mobile carrier that only allows to call numbers you authorize This is probably the easiest way to get this solved. ...Show All
Visual Studio Express Editions Did my install of SP1 "take"?
I just installed SP1 for Visual Studio Express C#. The install only took about 5 minutes (or less). I read where sometimes the install takes much longer so I am wondering if the install was really successful (despite the message from the installer saying that I am good to go). Is there a way to see if the service pack is installed on the help > about dialog Mine reports (SP .050727-7600) looks like its installed fine. since the express editions are small editions of the Visual Studio 2005 full version, you would no doubt expect a smaller file size as well as a lower installation time. ...Show All
Visual C++ error LNK2019
Hi I got error LNK2019 and error LNK 1120 on compiling the following code for sorting integers in accending order: How do i fix it #include<iostream> using namespace std; int max(int,int); int min(int,int); int sortarray(int); int main() { int i,c,temp,newarr ,finalarr ; int arr ={2,3,4,5,6,7}; finalarr =sortarray(arr ); cout<<"the sorted array is "<<endl <<finalarr ; } int sortarray(int newarr ) { int b,c,i,arr ; b=0; for(c=0;c<6;c++){ for(i=1;i<6;i++){ min(arr ,arr ); arr =min(arr ,arr ); newarr =arr ; b++;}} return newarr ; } int max(int a, int b) { if (a>b) return a; return b; } int min(int a, int b) { if (a<b) return a; return b; } You're quit ...Show All
Smart Device Development certificateProblem parameter values in System.Net.ICertificatePolicy.CheckValidationResult
Hi ppl, I am trying to access a SSL website using HttpWebResponse.GetResponse() method from a windows mobile 5.0 app. I have assigned my own policy for validating the certificate errors to ServicePointManager .CertificatePolicy by implementing ICertificatePolicy. The ICertificatePolicy.CheckValidationResult () definition is bool CheckValidationResult( ServicePoint srvPoint , X509Certificate certificate , WebRequest request , int certificateProblem ); http://msdn2.microsoft.com/en-us/library/system.net.icertificatepolicy.checkvalidationresult(VS.80).aspx where certificateProblem represents the problem that was encountered when using the certificate. ...Show All
SQL Server sql command oracle oledb connection - parameter issue
I need to extract rows using date as parameter... where source contains millions of rows but few thousands per date. I tried using SQL command in data access mode in OLE DB Source Editor but having problem with passing parameter... Anyone has solution Its not a workaround. Its a very very good way of doing it - the correct way in my opinion (though be aware of SQL injection). This may be of use to you: http://sqljunkies.com/WebLog/knight_reign/archive/2005/10/05/17016.aspx -Jamie ...Show All
Visual Studio two vs designer questions
I am using VS 2003. First, is there any way to include nontypable chars in a text property window, e.g. the text for a label control. I know how to do this with code but like to know if it is possible to do this using the Text property in the Properties window. Second, is there any way to true off the automatic event hander creation feature( ) in the form designer. Often I have to spend time cleaning up the mess created by this feature( ) when I am designing a form or control. I never use this feature and never will and would like it to be gone. I can't find any reference to either of these questions in the online help. For example, if you add a button to form in the designer and double-click it, an event handler for the button ...Show All
Smart Device Development fetching recipient in Pocket PC 2002
Hello, which API i use for fetching email recipient in pocket PC 2002 plz reply me. if u have code do paste it. Thanks -Salman This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forum for this type of queries.. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks & Regards Srikanth Bogadapati,. ...Show All
Visual C# Property accessors - overriding one, adding the other
Hi all, I ran into something odd today, and I feel like I must be missing something stupid because it seems so simple, but C# doesn't seem to give me a way to do it. I have an abstract base class with an abstract property with only a get accessor. Then, I have another class that derives from this base class. In the derived class, I want to override the get accessor and I want to add a set accessor. I can't identify any way to do this. Is it possible Thanks, Kevin Hmm... you can't, there is no syntax in the language that allows you to do that. An alternative would be to use an interface instead of an abstract class. That allows you to define a get accesor in the inter ...Show All
.NET Development how to pack dataTable? zip?
Hello!! I would like to put data in record size of 100B (name, surname, phone number, id etc). Now there would be about 10 000 records of 100B each. I would put them in the dataTable. My question is : How much this dataTable would take 1 MB or much more Can I zip it or rar or tar, i mean pack somehow to file that i could send it trhough internet It is very important for me, to pack is as much as its possible to improve my application performance in network Please, can anybody help me Best regards, Hi, In most scenarios, you will end up using compression libraries avaialble in .NET as Hayder said. One other alternative that I can think of, a bit wierd one, if you are exposing the data through web service is using h ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA framework for non C#
One of the great advantages of the .NET framework is that developers can work on the same project in different programming languages. As I'm reading about XNA, it seems that this will not be possible with the XNA framework. Will the only programming language that has access to the XNA framework be C# Michael Klucher - MSFT wrote: That's correct the XNA Framework is for Managed Code Development and runs on the Common Language Runtime which prevents a programmer from using unmanaged languages (C++) from using the XNA Framework. Managed C++, now called C++/CLI is something that could work with the XNA Framework. When you say C++/CLI, you mean the pure CLR mode Will C++/CLI mixing managed and native code work with XNA or not ...Show All
Game Technologies: DirectX, XNA, XACT, etc. getting actually used texture information from a .fx file using DX9
I am trying to get the names of textures that are actually used in a .fx file. I have the texture file name to D3DXPT_TEXTURE2D name mapping. but how do I find out which texture objects are actually used by the shaders I have a couple of sample .fx files which I compile with D3DXCreateEffectFromFile giving: Parameters: 3 D3DXPT_TEXTURE2D and 6 D3DXPT_SAMPLER in the ID3DXEffect D3DXGetShaderInputSemantics: 0 Shaders (VS) and 5 Shaders (PS). Another .fx file gives: Parameters: 7 D3DXPT_TEXTURE2D and 6 D3DXPT_SAMPLER in the ID3DXEffect D3DXGetShaderInputSemantics: 0 Shaders(VS) and 1 Shaders (PS). So, which textures are actually used P.S. This is an off-line tool creating a "null" device and must be compatible with DX9. ...Show All
SQL Server Convert varchar to date on a column
I have a table with a column defined as a nvarchar. The strings contained in the columns are in the form of YYYYMMDD. I searched the forums here and believe that if I have a date as a string then YYYYMMDD is the correct format for a date stored as string. However, I think I need to store the date as a Date type for selecting, sorting, searching, and indexing. What is the best method of converting the entire column to a Date type from a nvarchar type with the assumption that all the string dates are in the same YYYYMMDD format When I tried to modify the table using the Managment Studio Express, I get a warning: "Data might be lost converting column 'Date' from ...Show All
Windows Live Developer Forums layer icons
I read somewhere about using a different icon for each pushpin, is this possible when importing a layer via xml What I am doing is this: I have a Filemaker DB that I am exporting scheduled jobs, unscheduled jobs into an xml file and styling it to geoRSS with an xsl file. I have 7 installers, it would be nice to be able to have 7 different icons instead of 7 different layers.... is it possible to put the url of the icon in the xml If so, anyone have an example of how this might be done TIA Bob Actually - I'm not sure this is 100% correct - I believe you can only set a custom icon for every pin in the layer, not each individual pin. To do that you have to manually add each pin. Unless I mi ...Show All
Visual Studio 2008 (Pre-release) Error 403 when browsing to Service.svc file
I am trying to run one of the wcf samples. I am deploying the server to IIS 6 and keep getting Http Error 403 Forbidden when I try to browse to the service.svc file. The directory and files appear to have the right permissions set. I added a Default.aspx page to the same directory and it works fine. I changed to Basic authentication and the Service.svc file returns the 403 error before I am even prompted to login. The Default.aspx page prompts me to login and then displays correctly. I had the sample working fine on my Windows XP workstation it just won't run on Windows Server 2003. Does anyone know what else I can check to get this working Thanks, Matthew Try to open the service in the browser ...Show All
