Software Development Network Logo
  • Windows Forms
  • Visual Basic
  • Visual Studio
  • SharePoint Products
  • Microsoft ISV
  • .NET Development
  • Windows Vista
  • Visual C++
  • Game Technologies
  • IE Development
  • Audio and Video
  • VS Team System
  • Visual C#
  • Visual FoxPro
  • Smart Devicet

Software Development Network >> Programm3r's Q&A profile

Programm3r

Member List

abuja
Santhoo
Jeremy Jarrell
rlnd
swingme
Abbasi
Arjun B
Leedrick
dtsn
zackasan
Nathan Kerr
YeeBoon
vixenish77
NDG - Nico De Greef
ctssoms
RajivB
Jehan Badshah
surfguy0021
kWazar
StevenMM
Only Title

Programm3r's Q&A profile

  • Visual Basic VB 2005 Express false compiler error

    I have a VB 2005 WinForms Project which is giving what I think is a false error. On the Designer screen for the main form (which normally displays the form layout etc.) I get: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. '.ctor' is not a valid identifier. Hide at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService.ValidateMethodName(String methodName) at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSeriali ...Show All

  • Visual Studio 2008 (Pre-release) Extension Methods / Property conflict when they have the same name

    I have a question regarding how properties of the same name as an extension method are resolved. In the following example, i'd like q3 to compile. I understand the compiler might have issues with the name conflict, but there is a valid extension method, and the compiler is getting hung up because there is also a property. It can resolve it if i explicitly supply the generic type as in q4 - Why can't it be smart enough to do it for q3 List < int > nums = new List < int > { 0,1,2,3,4,5,6,7,8,9 }; int q1 = nums.Count; // works - uses the property on List<T> int q2 = nums.Count(); // fails: 'System.Collections.Generic.List<int>.Count' is a 'property' but is used like a 'method' - doesn' ...Show All

  • SQL Server Cannot Connect Remotely to HTTP EndPoint

    Dear all, I appologise that incarnations of this topic have been posted several times on this forum, however I cannot find a scenario that is the same as my own so I've resorted to starting a new thread. I can successfully create and connect remotely to an HTTP EndPoint on my Windows 2003 machine using Integrated security, the administrator username and password via my static IP address. I have read that Windows XP SP2 supports HTTP EndPoints, and it would be much more convenient for me to be able to create EndPoints in XP, and connect remotely. I have created the endpoint like so... CREATE ENDPOINT sql_tvr10 STATE = STARTED AS HTTP( PATH = '/sql/tvr10', AUTHENTICATION = (INTEGRATED), PORTS = (CLEAR)) FOR SOAP ( WEBMETHOD 'Stor ...Show All

  • Smart Device Development Porting full framework GDI+ custom button to Compact Framework

    Is it impossible to port a full framework custom button like http://www.codeproject.com/cs/miscctrl/RoundButton_csharp.asp to the Compact Framework My modified round cornered button uses GraphicsPath which doesn't seem to exist in the compact framework. Porting a full GDI+ custom control to the .NET Compact Framework is possible but may be (due to limitation in .NET CF) a non trivial task. In some cases it is easier to rewrite some parts instead of porting the code. The entire painting code usually falls into this category. XrossOne Studio has a library with GDI+ support for Windows Mobile. This might help porting your component. ...Show All

  • Visual C++ TextOut() and LPCWSTR

    in win32 project i have a code: char buffer[80]; static int wm_paint_count=0; . . . case WM_PAINT: hdc = BeginPaint(hWnd, &ps); SetTextColor(hdc, RGB(0,0,255)); SetBkColor(hdc, RGB(0,0,0)); SetBkMode(hdc, OPAQUE); sprintf(buffer, "WM_PAINT called %d times. " , ++wm_paint_count); TextOut(hdc, 0,0, (LPCWSTR)buffer, strlen(buffer)); EndPaint(hWnd, &ps); break ; When i run this program there is no normal text... I see hieroglyphs, not letters and digits... What i must to do that TextOut work correctly you should use ( LPCSTR ) in lieu of ( LPCWSTR ). because LPCWSTR uses multi byte per char, while LPCSTR use 1 byte per char. ...Show All

  • Visual C++ Make drive mapped to USB mass storage device read only

    Hi I need to make the drive that is mapped to USB mass storage device to read only. I spent hours together to have this done, but in vain. The aim is to make these removable drives read only once they are plugged in the machine, so, files from fixed drives cannot be shipped outside. I need sample/examples in VC++. Thanks in advance. Thanks. I dont know if there are any VC++ solutions for the query... but I managed to find one alternative... find that below. Windows XP Service Pack 2 (SP2) introduces a new registry subkey that lets you mark USB-based storage devices such as memory sticks as read-only devices. This is a useful security capability that can prevent users from copying data from their systems and taking tha ...Show All

  • .NET Development 2006

    Could you please suggest a good book/resource which help me to master web services. Vin Dear Vin, If you're a beginner, "Microsoft .NET XML Web Services Step by Step" is a good choice. A little bit more advanced could be: "Programming .NET Web Services" and "XML Web Services in the Organization" Rgds, Rodrigo ...Show All

  • Visual Studio 2008 (Pre-release) visualstyles for WPF window in xp

    Hi, I am using .Net 3.0 RC1 on XP. I found that WPF window applications are not using any kind of visualstyles. How do I enable it In .Net 2.0, we are using Application.EnableVisualStyles(), is there any equivalent in .Net 3.0 I'm not sure I fully understand what's going on in the line setting the ResourceDictionary Source - I can't see any folder called component/themes/ - the only place on my hard disk where the aero.normal.color.xaml file is, is in Program Files\Microsoft Expression\Blend 1.0 Could anyone shed any light on this I've tried changing the line above to: < ResourceDictionary Source = " /PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyTok ...Show All

  • Community Chat Full multi-tier ASP.NET code generation solution?

    Any recommendations   ...for a full multi-tier ASP.NET code generation solution Thank you, Michael. Anyone looked at Iron Speed Designer   http://www.ironspeed.com/products/ This is one product we're seriously evaluating (i.e. this isn't a plug in disguise). Michael. ...Show All

  • .NET Development Conversion failed when converting datetime from character string.

    ms visual studio 2005 sql erver 2005 I originally posted this question at experts-exchange without resolution http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_22069012.html http: / / www. experts- exchange. com/ Programming/ Programming_ Languages/ Dot_ Net/ VB_ DOT_ NET/ Q_ 22068922. html I get the following error when trying to insert into db from web app have tried.... txtrequireddate.Text.ToString("dd-MMM-yyyy ") reqrddate = Convert.ToDateTime(txtrequireddate.Text) reqrddate= CDate(txtrequireddate.Text) Server Error in '/' Application. ---------------------------------------- ---------- ---------- ---------- ---------- Conversion failed when converting datetime from character string. Description: An unhan ...Show All

  • Visual C++ native C++ to CLI

    I am having some code written in C++, I want the code to be managed though, or the interface managed at least. The author has no experience with CLI (I have no experience with either!) and I want to persuade him to go this route. It seems to me that if the /clr switch is set and because of “It just works”, then he can pretty much retain native style programming techniques. I am right about this If not is it that much of a learning curve to adopt CLI Thanks for you help in this matter Julian Yes, the /CLR switch will compile your native style code into a mixed image of native & managed. Before moving to C++/CLI, it would be great if yo inform us about t ...Show All

  • Visual Studio 2008 (Pre-release) Cyclic object structure - ServiceModel.CommunicationException

    I'm having a problem similar but slightly different to the problem mentioned here . I've got a class structure that has cyclictic properties within it that I use in one environment. However I am opening up these classes to be used as a data contract to a WCF Service. When the service gets called it throws a ServiceModel.Communication exception with message of: Object graph for type 'SomeType' contains cycles and cannot be serialized if reference tracking is disabled.'. Please see InnerException for more details. The inner exception is missing from the trace log, but I do know that the object SomeType contains a child property of SomeChildType that have a property that point back to SomeType. I've been able to serialize this ju ...Show All

  • .NET Development Yahoo IM

    i want to send my an IM to yahoo messenger friends from a web page. i want to write my Yahoo IM ID and a mesage send to all of my friends like a PM. does anyone have an idea ...Show All

  • Software Development for Windows Vista vista blocks application at startup

    Hi, I'm a software developer and I have a question about Vista. Our application (a .NET 1.1 app) requires Administrator access and we have the "requiresAdministrator" access level defined in the application manifest. That part is working fine. However, our application needs to startup when the computer boots so we have it in the "startup" folder. For some reason (I can't imagine why) Vista puts it in the "blocked startup programs" list and the user needs to manually launch it. This is not acceptable for us. Is there any way to circumvent this problem And by the way, why is there no way for the user to say "I want this app to run every time I reboot so stop blocking it!" On a side note, I not ...Show All

  • Visual C++ Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib'

    When I upgrade a vc6 project with Com dll into a vc2005 project, After I fixed all the error, there is one remaining which confuses me as follows: Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib' TctrumForm Can you tell me how can I solve this problem I am here to thank you in advance. You need to use #include <iostream> instead of #include <iostream.h> ...Show All

©2008 Software Development Network