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

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

dakota367

Member List

Feroz Khan
martinnickel
RickGaribay.NET
giddy
Jaime Stuardo
&#169&#59; Ţĩмό Şąļσмāĸ
DaveSmith
Imesh
fbiots
Veerakondalu
Ron Liu
goh6613
IamHuM
billb59
Teymur Hajiyev
Mirza Ashraf
Daikoku
Hokgiarto
HiTech2k
cdun2
Only Title

dakota367's Q&A profile

  • Visual C++ remove "null char???" before saving to file

    FileStream^ fs = gcnew FileStream("temp.csv", FileMode::Create); BinaryWriter^ bw = gcnew BinaryWriter(fs); String^ temp = "Testing"; bw->Write(temp); bw->Write(','); bw->Write(' '); the problem is when i open the file in notepad another character was added to the beginning. possibly its a null char how do i remove it A BinaryWriter writes strings with a length byte in front of the string. Don't use a BinaryWriter but a TextWriter derived class. For example (in VB.NET): Dim sw As New System.IO.StreamWriter("c:\temp\test.txt", False, Encoding.ASCII) sw.Write("Hello world") sw.Close() ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. [Managed DX] Vsync for a newbie ...

    How can i manage vsync specifications , my aim is to make a scroll without flickers , for now i think the vertical synchronization is the only way ... But i know how to make it on and make it fixed nd a related question , i use 2d fonts , must it be 3d or can i make this scroll with 2d What u mean by scroll If u use 2D fonts and u want to "scroll" them .... like moving them from bottom of screen to top of screen, just adjust the font rendering position. Please explain more on what u are making or doing, I never seen 3D code flicker before :) ...Show All

  • Visual Studio 2008 (Pre-release) June CTP - An approach to DataContract with custom xml schema validation

    Though IXmlSerializable interface provides full control over types, we wanted to use DataContract types as it is touted as the way to go in the WCF. At the same time, we wanted to add restrictions to data members. Some of the examples for restrictions are: An integer value must be between 10 and 20, a string length can not be more than 20 characters etc. There may be element validations as well. Currently there is no way to enfoce these restrictions with DataMember attribute in a DataContract type. We have come up with one possible implementation on how to achieve this. We wanted to use the data contract serializer but add our schema validation only after the data contract serializer done its job. Please let us know if you have any comm ...Show All

  • Internet Explorer Development IE7 and desktop icons

    I just installed Internet Explorer 7 today, which I guess is a.k.a. Windows Live . All of my fancy customized shortcuts on the desktop disappeared and each got replaced by the same generic windows icon. Right-clicking & changing the icons in properties no longer works. Also, when I create an internet shortcut while browsing, that creates a shortcut with that same generic icon (not even an explorer logo). Now my desktop is just one forest of identical icons. Anyone know how I can fix this I've wasted all day without success. Yes... I did the same. Fortunately, the uninstaller is thorough, so everything returned to normal as soon as IE7 was gone. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?

    Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream Hi there, I don't know if this is the right forum for this but I was reading this thread and had a question. I haven't done hobby PC game programming or C/C++ coding since the early 90s. I started to get back into C/C++ game programming by looking at the GBA (I went back to my roots and have been coding in 6502ASM). Just when I was about to get started I read the news on XNA. I've read a few things on C# and CLR. I've read that managed code can run as fast if not faster than unmanaged code. Anyway, back when I ...Show All

  • SQL Server dts only selected rows

    I have to dts rows by timestamp. For example if my dts downloaded at 10 am then in the next run i want to grab rows updated in the AS400 after 10am. what is the best way to go in ssis thanks... kushpaw   There is a timestamp field in both sql and as400 tables. I can select the last timestamp from the destination table and query source for that timestamp. Is that what u mean -kushpaw ...Show All

  • Visual C# Casting Question

    I have an ArrayList in which each element contains an Integer. I'd like to convert this to a Decimal Array. So I tried making the conversion like this: (decimal[]) MyIntegerArrayList.ToArray(typeof(decimal)) but it fails. Is there a simple way to make this conversion Robert From your ArrayList, you can easily create a int[] with the method you already used. Then, to convert the int[] to decimal[] you can use Array.ConvertAll<>. Using Array.ConvertAll<> usually means that you must provide a method to convert each element of the array from one type to another, but for simple types you can usually resort to the Convert class. In your case, it all boils down to: decimal [] myDecimalArra ...Show All

  • Community Chat Virtual Intelligence, AI

    People we need to talk about this. When people talk about this, they say its based on storing and retriving information. The learning process for the computer would be to save as much information as possible from its interactions with the environment. But when I think about this, I feel its a restriction to learning. Consider this, when we are small adding two numbers 2 and 3, would be done on fingers or on a peace of paper. But when we grow up we dont use the fingers or paper. So my point is: The input(add 2 and 3) remains the same, also the output(5) remains the same. So where did the process of learning go. Thus, I would suggest that a machine should not only learn and save in information, it should also learn to proce ...Show All

  • SQL Server No such interface supported

    I receive "No such interface supported" in SQL Server 2005, when: 1. on server, from my desktop client: attempting to create a maintenance plan within Management Studio without the wizard (with the wizard, works fine) 2. trying to copy, using SMO, an entire database from the server, to my local machine, from again, my desktop client. Any thoughts it's been a while, several installations ago, several months now, since I've had this issue, sicne applying SP1 I believe ... ...Show All

  • Visual Studio Express Editions Loop through system colors?

    How can I loop through all the system colors I want to draw a filled rectangle with each of the colors that are available & print them to a laser printer so I can see & compare the various shades of gray that each color prints out as. Thanks... Instead of enumerating through the colors and creating all those brushes which you are not disposing, you can just enumerate through all the brushes in the Brush class and not have to create brushes of your own. ...Show All

  • Visual C++ C4448

    Visual C++ v8.0 (Visual Studio 2005) Warning C4428 The compiler issues warning C4428 when compiling the following program: #include <windows.h> #include <stdio.h> #include <tchar.h> int _tmain( int , _TCHAR*[]) { // The statement below raises warning C4428 in VC 8.0 but not VC 7.1. // There is nothing wrong with this code. // See sections 2.13.4 and 2.2 of C++ Std (ISO/IEC 14882:1998). // A universal-character-name is a valid s-char. wprintf (L "\u00a1Hello!\n" ); return 0; } This seems to be a compiler bug. The help text for the C4428 warning is: The compiler issues C4428 when it detects at least one universal character name in a source co ...Show All

  • Visual Basic Error on export to Excel

    When I try to change data in Series object I got next error Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)) Please Help! Dim oExcel As Object Dim oBook As Object Dim oSheet As Object Dim oldCI As System.Globalization.CultureInfo = _ System.Threading.Thread.CurrentThread.CurrentCulture System.Threading.Thread.CurrentThread.CurrentCulture = _ New System.Globalization.CultureInfo("en-US") 'Start a new workbook in Excel. oExcel = CreateObject("Excel.Application") oBook = oExcel.Workbooks.Add 'Add data to cells of the first worksheet in the new workbook. oSheet = oBook.Worksheets(1) Dim i As Integer For i = 1 To 5 o ...Show All

  • Internet Explorer Development website won't display properly in ie7

    Hello, Our bank's website won't display properly in ie7 though it works fine in firefox ie6 and mac. I have narrowed it down to ie7 not being able to understand the percentage width on the div. If I change the percentage width to fixed everything works fine. The only problem there is that the website is a fluid layout. Is this a known bug or am i the first to report this, any help would be greatly appreciated. http://www.stgeorge.com.au Example of code issue div#heading{ padding:8px 2% 0px 0px; float:left; width:32%; _width:33%; border-top:1px dashed #ccc; } Regards, Drew I've encountered the same thing on one of the sites that I work on as well. The following works in IE6 and FF: .Div ...Show All

  • Software Development for Windows Vista Standard User Analyzer causes COM and ActiveX to fail

    We have a legacy application programmed in C++ and MFC that runs on Windows 2000 and XP but has problems with COM and ActiveX when run on VISTA. This app is built with Visual Studio 2003. I remotely debugged this app running on Vista from my development machine and found that the COM and ActiveX problems is the app trying to instantiate the COM components but they return E_ACCESSDENIED. I have checked the following: 1. The COM components on both my development machine (XP) and the test machine (VISTA) have the same ACL’s. 2. The access denied problem occurs if I am logged into the test machine (VISTA) as a local user or an administrator (Admin Approval Mode). 3. I added: HRESULT hr ...Show All

  • SharePoint Products and Technologies Built in functionality or Custom Web part

    I created a custom web part or our SharePoint 2003 Portal. Its is a RFI ( Request for information ). The web part is visible by all on the system. However there are groups of people. Lest say the groups are A, B and C. There is also a Control Group. A can only see questions asked by A, B by B, etc. Control group is the only one that can Anser questions. The flow is like this, a member of a group asks a question. A question is submitted using a form: Ask About ( A drop down list with the Following A,B,C ) Category ( A drop down of categories ) Sub Cat ( A drop down of Sub categories tied to the Selected Category ) Subject Question The main page is a list of RFIs submitted by you group ( or all groups if you happen to be part of the contro ...Show All

©2008 Software Development Network