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

Software Development Network >> Evan Haklar's Q&A profile

Evan Haklar

Member List

Ofir Epstein
Mansoor Adnan Ali
SrinSree
Anonomuys
mrdolby
Simon McMahon
Pr1nce
cheesenhomer
Tej62007
A.Russell
moondaddy
Mathew1972
ChiaraE
levyuk1
Anne_rangjin
JonnyAJAX
DaPosh
Jamie Thomson
D.A.V.E.
vtortola
Only Title

Evan Haklar's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Book ( In Progress )

    For reasons I cannot exactly put into words, I’ve decide to write a (free) book about how to use XNA.   It is defiantly a work in progress and thus far only includes two chapters and associated source code. I truly hope that my work is advantageous to some people out there. I am in part doing this as a practice towards writing technical documentation.   I am not accomplished in writing instructions for other people that may not have the same level of technical skill sets as myself.   I hope that with this book I learn a whole lot and more in that regard. Granted, if you are a diehard game programmer, what I have written is probably not for you, at least, not yet! Yet I would value your input.   If you feel like c ...Show All

  • Windows Forms Auto resize columns in TableLayoutPanel

    I have a TableLayoutPanel with one 1 row and 9 columns. The TableLayoutPanel has these properties set at Design Time AutoSize = True AutoSizeMode = GrowAndShrink All 9 columns have a Size Type of Percent equally set to 11.11%. Row1 (the only row) has a Size Type of AutoSize. All 9 cells contain a button with it's Dock Property to Fill . At runtime I need to hide some columns and have the remaining columns equally grow to fill the space. How can this be done Following JRQ's suggestion I wrote the following method and it works exactly how I need. Here is the code in case it helps anyone. Private Sub ResizeColumns() Dim VisColCount ...Show All

  • SQL Server BCP fails with 134 columns

    I'm trying to BCP from a csv file to a table, both have 134 columns. The error message coming back from BCP "SQLState = 37000, NativeError = 170 Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '1'." By reducing the number of columns in both csv file and table to around 20 column , the bcp call will work and the data will load into the table.Here's a sample that shows the problem The command line I'm using to call bcp:- "C:\Program Files\Microsoft SQL Server\80\Tools\Binn\bcp.exe" em.dbo.mytable1 in c:\temp\_rrs\datafile.csv -S SQL_SERVER_NAME -U username -P password -t "|" -c -F 2 The version of BCP this is using :- 8.00.194 on SQL Server 2000. Sample data in datafile.csv ...Show All

  • Visual C++ <windows.h> Interferes with System::IO::Directory::GetCurrentDirectory();

    Including windows.h in a managed project overrides System::IO::Directory::GetCurrentDirectory();, which is very annoying: rootFolder = System::IO::Directory::GetCurrentDirectory(); //'GetCurrentDirectoryW' : is not a member of 'System::IO::Directory' How can this be prevented This seems to be the only function in wondows.h that gets confused with System::... If you do not need the GetCurrentDirectory function from windows.h , maybe you can just un-define it: #include <windows.h> #undef GetCurrentDirectory I hope this makes sense. ...Show All

  • Visual Studio Build intellisense documentation (i.e. have ability to strip internal members from xml doc)

    NDoc had the ability to produce intellisense output from the raw intellisense xml doc produced by the compiler. There was the option to remove all internal members from it, which was really useful. I'm writing .NET components, and all classes that I do not want to expose to the public are internal, hence the documentation of those classes should not appear in the intellisense docs, because it could e.g. reveal sensitive information about used algorithms, and it bloats the intellisense doc unnecessarily. Is this possible with Sandcastle yet Couldn't find the option so far. (If not, please do not hesitate to cram it in the February CTP :-) ) Thanks, Wout I think it's a separate build type in NDoc. I believe ...Show All

  • Commerce Server Error messages regarding Catalog DTS task

    Hi, when executing the DTS package to import data into the data warehouse database even though the process seems to be successful I get the following errors in the Event Log: Event Type: Error Event Source: Commerce Server 2002 Event Category: None Event ID: 36911 Date: 22/1/2007 Time: 10:05:37 User: N/A Computer: VMPERBI04 Description: Catalog DTS task : Cannot change the variant type to BSTRs in WriteProductsIntoDW() Event Type: Error Event Source: Commerce Server 2002 Event Category: None Event ID: 36880 Date: 22/1/2007 Time: 10:05:38 User: N/A Computer: VMPERBI04 Description: Catalog DTS task : Error writeing categories and products Event Type: Error Event Source: Commerce Server 2002 Event Category: None Event ID: ...Show All

  • SQL Server How to get nextcounter for each row via a stored procedure and use it in insert into clause for each row

    Insert into TestJobTable (BookNumber,BookCode,IsActive,SourceId,ContactNumber) select [exec getnextBooknumber 'Book'],BookCode,'1', @SourceId ,[exec getnextBooknumber 'contact'] from TestBookTableTemp where SourceId = @SourceId and BookCode not in ( select BookCode from TestBookTable where SourceId = @SourceId ) Here i have to select records from the temprory table and insert it into actual table. During insertion I have to execute stored procedure for two columns and get counter for that coumlumn for each row. What can i do Can any body please give me a solution of my problem even by using cursor This 'seems' awkward. However, without a better description of what you are attempting to accomplish, and the code f ...Show All

  • Visual C++ using CreateProcessAsUser from service

    hi all, I am trying to call CreateProcessAsUser to run a excutable from a service in a particular user(xyz) security context. This is the code i m using for doing that....this code is within a thread...Now i am encountering something very odd......Process is created successfully(get a proper pid) but it is not executed. I am not able to understand y is it doing like that. I have assigned following rights to the account xyz...SE_ASSIGNPRIMARYTOKEN_NAME,SE_CREATE_PERMANENT_NAME,SE_CREATE_TOKEN_NAME, SE_INCREASE_QUOTA and my service is running under local system account HANDLE phtoken; HANDLE newtoken,threadtoken; if (LogonUser("xyz",".","hi",LOGON32_LOGON_NETWORK,LOGON32_PROVIDER_DEFAULT,& ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Translating C# DirectX example to C++/CLI

    Hi,   I try to convert/use a DirectX C# sample in C++/CLI but got stuck on following C# statement:        vb = new VertexBuffer(typeof(CustomVertex.PositionColored), 3, device, Usage.Dynamic | Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Default); How would you convert this statement to C++/CLI   I couldn't go farther than this.          vb = gcnew VertexBuffer(CustomVertex::PositionColored::GetType, 3, device, Usage::Dynamic | Usage::WriteOnly, CustomVertex::PositionColored::Format, Pool::Default);   Seems that I don't have the right equivalent expression for "typeof"... Any hint Thanks for help, Stephane   ...Show All

  • .NET Development XML socket problem? (C#)

    Hi all, I tired create a XML Socket with using c#. My problem is display Exception : System.IO.IOException: Unable to read data from the transport connection: WSACancelBlockingCall ---> System.Net.Sockets.SocketException: WSACancelBlockingCall with my receive Function. Whether because my server is java I sure i can connect server, server and client is using the same port. I guess it is because time out How to fix the problem. Below is my codeing. Please somebody help me. codeing NetworkStream ns; StreamReader sr; TcpClient clientsocket; bool connected; Thread receive; string serveraddress = "127.0.0.1"; int serverport = 4002; private void Connect() { socketConnection(); if (connected) { receive = new Thread(new ThreadStart( r ...Show All

  • Visual C++ C2440: '=' : cannot convert from 'const char [45]' to 'LPCWSTR'

    I am creating a simple Win32 form with a button for File Open dialog. OPENFILENAME ofn; [snip] ofn.lpstrFilter = "Lua Files (*.lua)\0*.lua\0All Files (*.*)\0*.*\0" ; This fails. c:\documents and settings\patrick\my documents\visual studio 2005\projects\craft_gold\craft_gold\craft_gold.cpp(228) : error C2440: '=' : cannot convert from 'const char [45]' to 'LPCWSTR' In a sample application with same headers the function compiles and it works. If I try to create a TCHAR with value "Lua Files (*.lua)\0*.lua\0All Files (*.*)\0*.*\0" , I get the same error. Removing Unicode with #undef UNICODE makes no difference. How can I get this to work Thanks in advance. ...Show All

  • Visual C++ In search of the lost Form1.cpp file

    I just tested making a Windows Form in C++/CLI for the first time. I've only used C++/MFC before where (most) functions are declared in a header file and defined in a cpp-file. Not so in a Windows Form class it seems. It seems that all functions in a Windows Form class are supposed to be inline. Is that true Please help me clarify this paradigm shift (if there is one). Thanks sriesch wrote: Are there any other unpleasant side effects Or is it just cosmetic and it's ok to keep doing this The only drawbacks are the "cosmetic" as you say, lack of designer support. Placing function bodies in a separate implementation file has a lot of adva ...Show All

  • Visual Basic Minimum function

    I'm working on a project that has the user input 15 grades, calculates the average, and finds the maximum and minimum values. The average and maximum calculations work but I can't figure out how to get the minimum value. Here is my code so far: Public Sub DetermineClassAverage() Dim total As Integer ' sum of grades entered by user Dim gradeCounter As Integer ' number of grades input Dim grade As Integer ' grade input by user Dim average As Integer ' average of grades Dim max As Integer Dim min As Integer ' initialization phase total = 0 ' set total to zero gradeCounter = 1 ' prepare to loop ' processing phase While gradeCounter <= 15 ' loop 15 ...Show All

  • Smart Device Development Create meeting requests in inbox

    Hi, We are trying to create meeting requests in the inbox via MAPI. So basically what I do is create a message, set the PR_MESSAGE_CLASS type to IPM.Schedule.Meeting.Request. So far so good, the message shows up as a meeting request and the menu extends so I am able to select 'Accept' or 'Reject'. What I don't know is how is it possible to automatically add the appointment data ( VCalendar, ICalendar ) in the message itself so when I click on 'Accept' the appointment will be added automatically to the calendar. That is not happening right now. I was checking one of the original meeting requests sent by Exchange and the VCalendar/ICalendar ( actually named as 'meeting.ics' ) is stored in there as an attachment. But ...Show All

  • Visual C++ Reading a Hyperterminal Session File

    I spent days trying to find the layout of a Windows NT Hyperterminal Session .ht file. I am using Hyperterminal on a Windows NT machine to communicate with a Optical Recording Device via the COM port. I would like to copy the Session file to my XP development machine and read the Session File. Is there a Hyperterminal Resource kit, SDK, White Paper or anything that gives the layout of this file Does anyone know where I can find the layout of the Windows NT Hyperterminal Session File Is there a better forum to post my questions where I may find the answer Thanks, Joel For such issues, please use the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups . Folks there will be more familiar ...Show All

©2008 Software Development Network