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

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

xgene

Member List

lib_team
KAllbritain
murratore
SharePointing
RichardMW
John Shiangoli
Thomas Cunningham
mschelstrate
nhaas
Sameer234
Blueforce
WV John
Price Brattin
tamri
Tracey Macias
mtm81
aCaen
Ori'
Johnny_Jones91
Jive Dadson
Only Title

xgene's Q&A profile

  • .NET Development NoNullAllowedException on an Identity column in SQL

    Hi I have created an SQL database with two columns the first is an identity. When I try inserting a new row I get a NoNullAllowedException on the identity column. DataRow newRow; newRow = infoDataSet.infoTable.NewRow(); //newRow[0] = [int]; as an identity column I am hoping this is autogenerated newRow[1] = "Any Text"; infoDataSet.infoTable.Rows.Add(newRow); // NoNullAllowedException occurs here! infoTableAdapter.Update(infoDataSet.infoTable); Any help appreciated - cheers Hi, You are trying to insert a null value in the identity column (and identity columns don't allow this kind of values). I'm not sure, but I think that if it is auto-generated (if you defined that in ...Show All

  • SQL Server Microsoft VBScript runtime error

    Hello, I am currently getting the following error: Microsoft VBScript runtime error '800a000d' Type mismatch: 'QueryString' /admin/equipment/addequipment.asp, line 128 This is when i try to submit a new database item in Dreamweaver. The DB I am using is SQL Server 2005. My code is as follows: Dim equipspec__urlid equipspec__urlid = "1" If (QueryString("ID") <> "") Then equipspec__urlid = QueryString("ID") End If %> <% Dim equipspec Dim equipspec_numRows Set equipspec = Server.CreateObject("ADODB.Recordset") equipspec.ActiveConnection = MM_intranet_STRING equipspec.Source = "SELECT * FROM EquipSpec WHERE " + Replace(equipspec__urlid, "'", "''") + ...Show All

  • SQL Server SQL Server Integration Services - Stop large number from being converted to exponential

    I am importing a text file with a column (serial numbers) with alphanumeric data, some mixed and some only numeric. The very large values that are all numeric are being converted to exponential when I run it thru an import package in SQL Server Integration Services (2005) Ex. 4110041233214321 --> 4110040000000000 (displays as 4.11E+15) In the past I dealt with this by importing the text file into Excel and changing the format of the column to number. This works even when many of the values contain alpha characters. I am not sure how to accomplish this same thing without going thru Excel. If you have any ideas on this I would be happy to hear from you. I am importing the text file into a sql table. ...Show All

  • Visual C++ "error LNK2005"

    I have the following code in my Form1.h file: #include "stdafx.h" #include <stdio.h> #pragma once struct Record { char arr[15]; }; Record theRecord; errno_t err_temp; FILE *tempfile; namespace StrToCharArr { .... //typical stuff } #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { StrToCharArray(this->textBox1->Text); } }; } My StrToCharArray.cpp function is the following: #include "stdafx.h" #include "Form1.h" using namespace StrToCharArr; void Form1::StrToCharArray(String^ str) { err_temp = tmpfile_s(&tempfile); fprintf(tempfile,"%s",str); } I am g ...Show All

  • Visual Studio 2008 (Pre-release) DataContract vs persistence model - Guidance needed

    Hi forum I really need some architectural guidance on the above subject. Here's the scene and how I chose to implement it so far: I have layered server, which host WCF services. These are the layers: - WCF Layer - Business layer - Persistence layer The persistence layer is not the database, but merely a repository of method, which operates on the persistence model. The persistence model is exposed with a OR mapper (Vanatec OpenAccess) and is highly navigable in respect to associations between persistent classes. The WCF layer is the transaction boundary, which has the role of calling the right methods (in the right order) in the business layer. So you can say that the WCF service methods controls the steps involved in each "business t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Bullet Fires Only Once--Never again

    Hi there, Like everyone else here, I have a problem. Basically, whenever I fire a bullet, it will fire only once. It fires just fine, only, when I hit space to fire a second bullet, a second never fires. Or any other number. So, I think this is all the relevent code for the bullet: void FireBullet() { for ( int x = 0; x < bulletnumber; x++) { if (BulletVisible[x] == false ) { BulletVisible[x] = true ; BulletPos[x].X = PlayerPos.X + 40; BulletPos[x].Y = PlayerPos.Y + 32; } } } Another section where there could be issues, this time in Draw(): for ( int x = 0; x < bulletnumber; x++) { if (BulletVisible[x] == true ) { SpriteBatch.Dr ...Show All

  • .NET Development VB 2005 Colletions Issue

    HI Im inheriting from a System.Colletions.CollectionBase as a base class for my collection, and would like to use a string key to itemise each element I put into my collection, but you cant supply a key when adding elements to the CollectionBase collection, any assistance or other suggestions would be much appreciated. Thank You Have a look at the generic System.Collections.Generic.Dictionary<TKey, TValue> class, this is a new class for .NET 2.0. Dim instance As New Dictionary(Of String , String ) instance.Add("Key", "Value") ...Show All

  • Visual C++ How could I use the "default window behavior" in initial time ??

    I dock a toolbar in the bottom of Mainframe[ in function of CMainFrame::OnCreate() ], so I can initial my application with docking that toolbar in the botom. My problem: After I hide that toolbar by any click event, I can't start my application with default toolbar by rebuild [it is hidden from last time use] In other words, first time I start my application and I see the toolbar in the bottom, then after I hidden the toolbar, I can't see the toolbar anymore in initial time How could I do I just need to see the default window behavior designed by programmer. Thanks for help. Hello Re: How could I use the "default window behavior" in initial time Such questions are outside ...Show All

  • Visual C++ partial serialize/deserialize a structure

    Hello everyone, I have a large number of strcture instances, the I can not have all of them in memory. So I have the idea of serialize/deserialize partial of them to/from disk. The operation I need on these structure instances is to enumerate elements one by one, and I want to provide applications which use this interface to enumerate elements be transparent to how and which parts of structure instances is written/read to/from disk -- and the application only will feel read from memory. I am wondering whether there are any samples/tutorials to make a reference thanks in advance, George Enumerating elements won't be possible, unless you're using C++/CLI and reflection. For native C++, see http://www.boost. ...Show All

  • .NET Development ASP.net C#, sending email error-the client was not authenticated.

    Hi, everyone: Hope I can get some help here. I've been working on this problem for two days and checked all the resources, but no luck. I'm a beginner of ASP.net C#. and recently working on an application try to send out emails. Below is my code and error message I got: (I used system.net .mail) ///////// code in web.config < add key = " MailServer " value = " 68.142.198.11 " /> < add key = " EnableErrorLogEmail " value = " false " /> < add key = " ErrorLogEmail " value = " XXX@sbcglobal.com " / > < add key = " ProductsPerPage " value = " 6 " //////code in utilities.cs public static void SendMail( stri ...Show All

  • Commerce Server Making Commerce Site multilingual

    Hi, I'd like to make my site multilingual. I already use localized text resources for my asp Pages and that works correctly. But now if i open a product detail page i still get the data for the product of the default langugage. What do I have to do so that the correct data gets loaded Another problem is, that i use an extern DLL like the CommeceComponents of the StarterSite. What can I do, that this DLL loads the Correct Resources, Thanks for your help You need to also make sure that you have set the CurrencyProvider options in your web.config. The problem I had is that I had to create a catalog for each country because the prices didn't have an exchange rate applied to them, and some products weren' ...Show All

  • Visual Studio Problems passing parameters to LocalReport again....

    Hi all, First of all, sorry, I've read all post about parameters reports and I try to apply but I do withhout success. I have a ASPX page with a DropDownList, a report viewer object and an object datasource, here you are the code: <asp:DropDownList ID="ddlCurs" runat="server" OnSelectedIndexChanged="ddlCurs_SelectedIndexChanged" AutoPostBack="True" > </asp:DropDownList > <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label><br /> <tr> <td width=100%> <!-- ReportViewer control binds to the ObjectDataSource control --> <rsweb:ReportViewer ID="VisualReportViewer" runat="server" Height="402px" Width="109%" ShowFindControls="False"> <Loc ...Show All

  • Visual C++ Retrieving bitmap pixel dimensions

    Hi, How can I retrieve the pixel dimensions of an HBITMAP object without using MFC Thanks. ---Dan Please limit your use of this forum for its intended scope: C++ language issues. This question is best asked here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.gdi&lang=en&cr=US ...Show All

  • SQL Server keeptogether applied incorrectly on pdf export

    I've got a strange issue on a SRS2005 report.  I've searched the forums for something similar and found a couple of questions but no answers.  Any help anyone can provide would be greatly appreciated. So, the report has a list with an embedded list.  List of categories then list of detail items inside.  On both lists keeptogether, pagebreakatend, and pagebreakatstart are all false.  But when the report is exported to pdf it behaves like keeptogether is on for the outer list, creating page breaks after the list if the next one won't fit on the same page.  Which creates a lot of needless white space and makes the report several pages longer than it needs to be. I've checked for report width and height, mar ...Show All

  • Visual Studio Express Editions Using windows media player in vs 2005 express???

    Ive tried the AxWindowsMediaPlayer1.URL = "file name"  and the codes ok but any and all of the files i try to play come up with a message that sais " the file you are trying to play has an extension that does not match the file format" and then won't work. what is there some where that has a reference to wmp i am getting it to play ok, but i would like to do more, I don't care for the interface in the full program, for the webbrowser there is a ton of examples but nothing for media player... perhaps were not looking in the right place... ...Show All

©2008 Software Development Network