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

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

neuhawk

Member List

Malmer
Deza
Jutsin Leung
banswaraboy
Jaime Stuardo
MartinMalek
Pooja Katiyar
Lug Vélez Schmitz
x868
Young K
a0-0b
Ramanujam Sampath
Jim Wooley
GeorgeBush
Bill Foust-DAI
Jason Croft
Manojit Paul
jkline
steal
fripper
Only Title

neuhawk's Q&A profile

  • Visual C# Callback from C++ .dll fails with "The memory could not be written"

    Hi, I'm having serious problems getting code that used to work in Visual Studio 2003, to work in .NET 3.0. I'm using Microsoft Expression Interactive Designer, but I figure my question is not really related to that product at all. I have a dll that controls a USB device (an ArtLebedev Mini 3). I can call bits of the dll fine and correctly set up my USB device. The problem is using a method within my c# code for the callback when a button on the device is pressed. After setting up the callback, pressing a button on the USB device causes the whole application to crash with a "The memory could not be written" error. Which i'm assuming means the dll is trying to call my method in c# but for some reason can't (memory address has chang ...Show All

  • Visual Studio Express Editions AccessDatabaseEngine and VB 2005 Express

    Hello, Is it possible to connect to "AccessDatabaseEngine" instead of "SQL Database" in VB 2005 Express. Will an "Access Database" icon show up in the Add>New Item> Template's Window Will be databinding possible Cheers The answer is Yes to all of these things. However, please know that experienced people do not like the inflexibilities and code produced by the Data Designed. I always started from scratch on these things. ...Show All

  • SQL Server How to control caption for the bit attribute?

    Hi Gurus, Have anybody idea how to control the caption of bit attribute The default is True/False. 1. How to force the AS to show Y/N or Yes/Now t . 2. How to force the AS to show localized bool string (Wahr/Falsch, / ). I can create table like ID Caption 0 Yes 1 No Or calculated fields in UDM but all it awkward. I have about 50 bit attributes in all my dimensions. It would be too expensive to devote so much attension to every bit attributes. If you have a table as described, with a bit column (ID in your example) and a character column with the value you want displayed (Caption in your example), then you can create the attribute in your dimension so that ...Show All

  • Visual Basic Multithreading cancellation Methode

    Hi All, Lately I explore about multi threading,because there is a urgent need to implement this feature.I came up with a case of multi threading cancellation. There is two kind of multi threading we have. 1. threading in the program itself. ex. Private Sub Worker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles Worker.DoWork Dim intI As Integer Dim intJ As Integer Dim intK As Integer Dim counter As Integer For intI = 1 To 20 For intJ = 1 To 20 For intK = 1 To 20 counter = counter + 1 'DO SOMETHING HERE Next Worker.ReportProgress(counter / 8000 * 100) Next Next End Su b 2. threading t ...Show All

  • SQL Server How to script Role Memebers

    Is there any way to script Databse Role(s) and Role Memeber(s) using SQL-SMO The workaround i am using here is, set the server connection execution mode to CaptureSQL and and use AddMemeber method while looping through Server.Database.Roles.EnumMemebers. This creates a string collection of sp_addrolemembers. (let me know if someone wants to have a look at this code) I couldn't even figureout how to do this using SQL Server Management Studion. When i script the entire database using SQL Server Mangement Studio, i dont see sp_addrolemember statements. Am I missing something Try something like this: Dim scrDBScript As Scripter Dim objSMOObjects(100) As SqlSmoObject Dim intObjCount As Integer intObjCount = ...Show All

  • SQL Server Lookup on AS400

    Hi everybody, I'm new in SSIS and I'm trying to activate a lookup on a table reside on DB2/AS400. Iget the following message when I try to join the input column to the lookup column: TITLE: Microsoft Visual Studio ------------------------------ The following columns cannot be mapped: [STOREK_S, STOREK_S] One or more columns do not have supported data types, or their data types do not match. ------------------------------ BUTTONS: OK ------------------------------ I know both columns have the same format on the DB2 table. What I'm doing wrong P.S: I'm using the IBM DB2 UDB for iSeries IBMDASQL OLE DB Provider as connection. If I try with the Microsoft OLE DB Provider for DB2, I was unable to get the list of ...Show All

  • Visual C# Question about objects

    I am a novice c# programmer and have a rudamentary question. I have a class to handle permissions, so to check permission you have to open an object. However, trying to consolitdate code in one spot, i have the class logging the person out if for some reason his/her userID is lost. In doing this, I am not closing out the object I created to check permissions. Will the object close automatically here is some code: permissions p = new permissions (intUserID, "cont" , strDBConn); //if no userid, user is logged off public class permissions public permissions( int userID, string prefix, string dbConn) { if (userID <= 0) { logUserOut(); } intUserID = userID; strPrefix = prefix; str ...Show All

  • Software Development for Windows Vista StreamingWrite12 Problem in Vista

    Has anyone ever try burning data by using WRITE12 command under Vista If enabling UseStreamingWrite12 under Vista ( Ver. 5483 in my case ) and burning data, the CPU would abnormally goes quite high ( 60% ~ 80%). Using TaskInfo to check CPU usage, it shows that "Interrupt time placeholder" consumes over 50%~60% CPU. If using WRITE10 command, the CPU usage would normally below 10%. Any suggestion to handle this CPU usage issue Dear Henry, Thanks for your reply. I have tried uninstalling the network card driver, but the issue still existed. From the documentation of IMAPIv2, there is a function called IDiscRecorder2Ex :: raw_SendCommandSendDataToDevice(). In fact, I ...Show All

  • .NET Development adding Window Media Player into IE Toolbar

    Hello: I am facing a problem in adding a Window Media Player Control into IE ToolBar. I found a project written in C# on Code Project site that can add a text into IE toolBar. But I can't add the window Media Player into IE. The Project I found constitutes of 2 projects BandOjLib and SampleBars window Application C sharp where the development is happening in it. So what you do in SampleBars project will be embedded into BandObj Project after compilation and start without debugging both BandObj and SampleBars respectively. When I am adding the Window Media Player into TOOLBOX, then to drag it into window Form => it gives me this error: Assembly generation failed -- Referenced assembly 'AxInterop.WMPLib' does not hav ...Show All

  • Visual Studio Progammatically reload document from disk

    Hi Is there a way to reload a file from disk I'm looking for something similar to what the IDE does when it detects that a file has changed on disk and asks you if you want to reload it. Currently I'm looking for a way to do this from a macro. We haven't tried to do this as a proper add-in yet. Thanks Riko Hi Riko, The IVsPersistDocData(2) interface has a ReloadDocData method, that is typically used for this purpose. From the perspective on an addin, you'd have to get figure out how to get at this interface on the specific document you were interested in. You could enumerate through the IVsRunningDocumentTable documents, and use IVsRunningDocumentTable to retrieve the DocData object (basically the I ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do I clean my solution?

    How do I clean my solution In my Build menu, there's no "Clean Solution" option. I want to clean it because I like backing up my project every now and then, and I don't want to back up my intermediary files. Thanks for the info, I wanted to know which folders I could safely delete. I'll probably start using version control eventually, right now I just want to zip up my project every now and then and store it online in case of disk failure. ...Show All

  • SQL Server How to count the number of textboxes

    Hi all,   In the report I am working on, I have a "textbox39" in a table which has groups. I want to have another "textbox29" outside the table to count the number of "textbox39"s that are actually displayed and also the number of "textbox1"s that have a certain value (e.g. "1") in the final report. I tried to use " Sum(ReportItems!textbox39.Value)"  but the compiler complains   Error 1 [rsAggregateReportItemInBody] The Value expression for the textbox 'textbox29' uses an aggregate function on a report item.  Aggregate functions can be used only on report items contained in page headers and footers. d:\perf\perfreportingproject\PerformanceTestDetails v.3.rdl 0 0  ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xna questions

    Just to make sure XNA game studio express is just for programing only so then what is the actual software that allows you to create your own levels in the game and to create the actual models that would be placed in the levels Demonslayer wrote: I just got XNA and i am not at all familiar with programming at all. So i was just wondering what are the basaics for making a third person side scroller Such as moving your guy while his legs are moving on the screen or shooting ammo from a gun. Any responses to this question should be directed here . ...Show All

  • Windows Forms Populate listbox in window1 from window2

    Hi How do i populate a listbox in window1 from window2. Have a lisbox named "listbox1" in window1. Cant just write "listbox1.Items.Add()" to populate the listbox from window2 Regards Fredric You are newing an instance of Form1, it is not the same as the one you already have! Declare this in Form1: public static Form1 GetForm() { return this ; } and then in Form2, call: Form1.GetForm()._Any_Call_in_Form1; -- cheers farshad ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game loop and update

    I find that the update mechanism of XNA is not completely right usually the order in the update makes sense because it's expected to be like this: UpdateInput (it can be from gamepad, netowrk ...) UpdateAI UpdatePhysic (or simulation) Using the GameServices collection it ca be reached if: GameServices.GetService<>() return a collection of services of type T and not just only one in this way you can write something like: inputservice[] inputs = GameServices.GetServices<inputservice>(); Foreach (inputservice is in inputs) { inputs.Update();} AiService[] ai = GameServices<AiService>() foreach( AiService ais in ai) { ais.Update(); } Otherwise now you can support extremly simple g ...Show All

©2008 Software Development Network