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

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

CalinMac

Member List

davidw
braymond
hlj16
RankoNS
Bobby110uk
KrishnaUNISYS
Netmaster0000
Pramod S Kumar
stswordman
qrli
HD Land
sticksnap
lm089
Heinz Krug
CodeButcher
LasseJ
Brendan Grant
Kimo9909
Lee Whitney
Grant Carthew
Only Title

CalinMac's Q&A profile

  • Visual Studio 2008 (Pre-release) UserNamePasswordValidator and custom authentication

    Hello, All! I have a service that is based on BasicHttpBinding. It also exposes metadata, so others can see its WSDL. Now I want to apply custom authentication that will be based on HTTP basic athentication. The problem is that my custom validator is not being called, to perform validation ( authentication ), and client gets 403 error. So, I setup my BasicHttpBinding, like so httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic; httpBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly; Then, I've setup ServiceHost to perform authentication. The code is: //setting the credentials behavior ServiceCredentials sc = new ServiceCredentials(); Validator validator = new Val ...Show All

  • Windows Forms Client Area of MDIParent should not be sunken

    Hallo, i have an MDI Application in which all Childs are plugged in the MDIParent without Border. Now i want to change the look of the MDIParent client area without raised border and not sunken. Did you have an idea how i could manage this. Thanks Arnold I think you want regular a parenting instead of MDI. You can add form to the parent contrl collection as if it's a user control. ...Show All

  • SQL Server Looping through an excel spreadsheet

    Being new to SSIS I wish to loop through a series of excel spreadsheets and within each workbook loop through each sheet. I am aware of the For Each container but how can the each sheet in the workbook be referenced Steve You need to use an ADO.NET Connection Manager, the Jet Provider, and on the All page of the editor, enter "Excel 8.0" as the value of the Extended Properties argument. -Doug ...Show All

  • Visual C++ trouble with scrollwindow...

    Hi all-- I have a problem with the scrollwindow function. I basically wrote a test program that draws 100 lines of numbers from 0-99 and want to scroll it. But the problem is, when I check the SB_LINEDOWN event and call ScrollWindow(hwnd,0,-cychar,TRUE) it fails to repaint the numbers below what was visible in the window even though I'm drawing all the strings in my WM_PAINT event, not just the ones that would be theoretically visible... here is my code (I apologize...I can't make it stop double spacing the code!!! (even when I switch out all the <p></p> with simple <br> in the html code!): #include <windows.h> #include <string.h> #include <math.h> #include <stdio.h> ...Show All

  • Visual C# Username and passwords using C#

    Hey I wrote a Password manager IE plugin using C#. Now its fillinf up usernames fine everywhere. It also fills passwords well for many web pages but for some pages the passwords do not get filled at all. I am using HTMLDocumentClass.all.item("Email",0) etc. to fill usernames and passwords. Here is the code: string selectedItem = comboBoxChooseService.SelectedItem.ToString(); string password = AuthenticatePassword.getPassWord(selectedItem); string username = AuthenticatePassword.getUserName(selectedItem); HTMLDocumentClass doc = new HTMLDocumentClass(); doc = (HTMLDocumentClass)this.Explorer.Document; Object input = doc.all.item("email", 0); if (input == null) ...Show All

  • Visual Studio Express Editions New Vs Override ?

    What is the main difference between the New and Override keywords Under what conditions must you use new and when must you use override http://msdn2.microsoft.com/en-us/library/435f1dw2.aspx The new modifier instructs the compiler to use your implementation instead of the base class implementation. Any code that is not referencing your class but the base class will use the base class implementation. http://msdn2.microsoft.com/en-us/library/ebca9ah3.aspx The override modifier may be used on virtual methods and must be used on abstract methods. This indicates for the compiler to use the last defined implementation of a method. Even if the method is called on a reference to the base class it will use the implement ...Show All

  • Windows Forms DataGrid

    Dear all, I use DataGrid (NOT DataGridView) to bound to datasoure (Sql Server). and use column.format = "c2" to fomat column that present a price. but I don't know how to parse this column to save them back to data source Thanks you Hi, Thanks you your answer. I am sorry that I didn't describe the question clearly. I use dataAdpater to fill the dataset and bind the dataset and table to DataGrid. My question is : when I use column.format="c2" to format the column. I can not change the cell value.For example, There is a cell value "$2.12", I want to change to "$2.14". When I changed and leave this cell,the cell value come back to old ...Show All

  • Visual C++ Problems in debugging

    I encountered the error message below: First-chance exception at 0x7c812a5b in mda2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f764.. Unhandled exception at 0x7c812a5b in mda2.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012f764.. Any possible answers Am I out of memory It occurred at this line m1pos [ i ] = new int [m1[0]+1]; //allocate new array where m1pos is an array of pointers. When my input file is small, there is no error. When my input file is large, I will have this error. when the error occurs, m1[0] is 3 and m1[pos] is an null address, something like dxdxdxd, since it is pointing to nothing. my debugger breaks in the new fu ...Show All

  • Smart Device Development Building a socket connection - help needed

    Hello, I'm doing some research on a new project and got a bit stuck. Basically I'm trying to get a data connection from a mobile phone to a pc. The connection should be wireless and has to be instantiated by a call. So I want to create the connection by calling the pc. I'm a bit lost here, because I don't know where to search. The mobile and the pc should both be able to send and receive data. A socket connection would also be great, but how do I do that Even just some links to read a little bit about that thing would help a lot. Thanks! Hello Webstar, Would you please tell me in details on what here wireless means Wireless can be Bluetooth, WIFI, GPRS, Infrared, and etc. Furthermore, could you let ...Show All

  • Visual Basic Save data from a listbox to a .CSV file.

    Hi, I am pretty new to Visual Studio, but know enough about SQL. I am working on creating some applications with VB to access my SQL database. I created a listbox that is extracting some data from a table. I am trying to Save that data to a .CSV file, but I am having major issues. I would really appretiate it if someone could help me and explain why my code is not working. I used examples to get to this code, but lack of experience is helping me to get stuck at this point. Thanks!!! Code: Try With sdlgTextFile .AddExtension = True .CheckPathExists = True .CreatePrompt = False .OverwritePrompt = True .ValidateNames = True .ShowHelp = True .DefaultExt = "txt" .FileName = filename .Filter = _ "CSV Fil ...Show All

  • Windows Forms Aoolication Icon

    Does anyone know how to make the application icon show up in the control panel/ add-remove programs I couldn't find it under publish It does show the proper icon in the short cut and while program is running but not in the control panel. Any ideas Thanks. ...Show All

  • Windows Forms ListView size limit?

    I'm using a list view to display several properties of a typed list of items, where the typed list normally contains several thousand items. When the size of the typed list is beyond 3 or 4 thousand, I get the following error message: "Collection has reached its maximum capacity." The items that I am trying to list are culled from a larger list of as many as 50,000-60,000. The original data in this scenario is coming from an xml file in the application's startup directory(for when the application's regular database is not available), but I am also using the same process for when the database is live. Code Sample: foreach ( TestInstance a in TestInstances){ lvTestInstances . Items . Add(a . TIID . ToString()); ...Show All

  • .NET Development SIgnedXml, Envelodped signature, .NET 1.1 and WSE 2.0.3.0, .NET 2.0

    Hello All, I have spent some time on this one. Here is what I have learned and would like to know if anyone can confirm or provide proof to the contrary. In .Net 1.1, using direct calls to the CAPICOM dll I can create signed xml with an enveloping signature using the SignedXml class and an X509 certificate. In .Net 1.1, using direct calls to the CAPICOM dll AND using the "http://www.w3.org/2001/10/xml-exc-c14n#" transform from WSE 2.0.3.0 I can create signed xml with an enveloping signature using the SignedXml class and an X509 certificate. In .Net 2.0, using only the .NET 2.0 objects, I can create signed xml with an enveloping signature using the SignedXml and X509Certificate2 classe ...Show All

  • Visual Studio EnvDTE Visual Studio 8 (2005) -> Error _COMPlusExceptionCode = -532459699

    Hi All, I am getting the error : "The File xyz.odx is not open". The scenario is I have added the file into the solution project using code below project.ProjectItems.AddFromFileCopy("C:\xyz.odx"); //No error. works fine Next, I am trying to access the xyz.odx file for editing some properties of the orchestration file using code below ProjectItem workflow=project.ProjectItems.Item("xyz.odx"); workflow.Open(EnvDTE.Constants.vsViewKindDesigner); //Get error either here or next line Document workflowDoc=workflow.Document; //Error observed. EnvDTE is the latest version 8.0.0.0. I get a COMPlus exception code: Error _COMPlusExceptionCode = -532459699 This code used to work f ...Show All

  • SQL Server Views and Indexes in SQL2005

    I'm trying to clarify a situation I have dealing with indexes and views. Let's say I have Table_A and Table_B, both contain a column [name] which is indexed in both tables. I also have a view vw_Table_AB that unions Table_A and Table_B. If I write a query like: select * from vw_Table_AB where name = "Dobbs" are the indexes of the base tables used for this query ...Show All

©2008 Software Development Network