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

Software Development Network >> Juergen Lorenz's Q&A profile

Juergen Lorenz

Member List

Predator14567
brokenrulz
The ZMan
ruk_walled
oyvindk
greenlantern
gokce
nattylife
msorens
tj-uk
Fei-tian
ekkapop
chrisryp
jecker01
Avangard
Ljhopkins
JDCAMP
yodafett_77
MarissaM
brottmayer
Only Title

Juergen Lorenz's Q&A profile

  • Visual C++ Generic Content handler for SAX contenthandler

    Hi All I am creating a generic XML parsar using SAX. I am having problem in providing content handler. Whatever I have found on the net is based on the requirement of the people. They have their XML file according to which they create their class and use that in contenthandler. How can I make a generic data structure which can hold the contents of XML file using SAX. I have created a generic SAX parser for this. If anyone wants the same please contact on pankajiae@gmail.com its free available. ...Show All

  • Visual Studio 2008 (Pre-release) Commands ignored when FocusManager.IsFocusScope="True"

    The SDK documentation for FocusManager.IsFocusScope says that a focus scope can be set to keep track of logical focus among child elements. However when I set a focus scope on an element it looks like the change of focus is being ignored by the command system. In the example code below I have a toolbar with buttons for cut, copy and paste commands, and two RichTextBoxes. When I select text in the RichTextBox with IsFocusScope="True" the cut and copy buttons are not enabled. If I select some text in the non-focus scope box the the cut and copy buttons are enabled. If I then change focus back to the box with focus scope enabled the cut and copy buttons remain enabled. If I click the paste button, the paste is always performed o ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Stop Sound

    I'm using this simple code to play a sound: http://xbox360homebrew.com/blogs/audio/archive/2006/09/01/119.aspx I know the asnwer to this must be very simple, but how do I stop a sound I'm guessing I got to use something like : Sound.Stop(xxx); but I do not know what is it that I am supposed to provide. Thanks in advance. What's confusing me its the sample from the website I posted in the first post. Seems as if everything is worked out there. It seems as if all I had to do is call the Sound.Stop() method but I don't know what is the Argument I'm supposed to provide. When the .Stop method is used, the following is what is done in the tutorial above: public static void Stop( Cue cue) { cue.Stop( ...Show All

  • .NET Development C++ Equivalent (unsigned char *) in VB.Net

    Hi All, Below code is written in PROGRESS Language and it's basic functionality is to convert a file into encrypted file based on provided key. For encryption it is using ARC4Encrypt function from DLL written in C++ 6.0. Now same functionality I want to achive in VB.Net. and What is equivalent of " unsigned char * " of C++ data type in VB.Net. Any help is highly appriciated. Vivek /** ALLOCATE MEMORY TO READ INPUT FILE **/ FILE-INFO:FILE-NAME = ipcInFile. SET-SIZE(mData) = FILE-INFO:FILE-SIZE. /** READ INPUT FILE INTO MEMORY **/ INPUT FROM VALUE(ipcInFile) BINARY NO-MAP NO-CONVERT. IMPORT UNFORM mData. INPUT CLOSE. /** CREATE EN/DECRYPTION KEY **/ SET-SIZE(mKey) = LENGTH(ipcPassword) + 1. PUT-STRING(mKey, ...Show All

  • Visual Studio Express Editions How do I prevent the user from leaving a NumericUpDown control empty?

    How do I check whether the user left a NumericUpDown control empty, removing the value on it For example, if you go to Control Panel, Display, click on the Screen Saver tab, then click on the Wait: spin box control, you can leave the control empty by pressing Backspace. However, if you press TAB or click another control, the program re-populates the spin box with a value of '1'. In my program, if you press Backspace and leave the spin box control empty, it stays empty. I try to check for a NumericUpDown1 = "" but got a runtime error because of the exception of comparing a numeric value with a string. I pretty much expected that, but I gave it the shot just in case. What's the correct way to check for an empty spin box so ...Show All

  • Windows Forms app.application Publish file

    Hi, I know this has already been posted, but I need to get it clear in a simple way. The 'app'.application file is created when you publish an application to a web/ftp server, along with other files. The publish.htm page shows a button linking to the 'app'.application file and I can correctly install it, but a friend of mine (and maybe many more people too) get the 'app'.application file contents displayed in his browser. He has the .NET Framework 2.0 installed (installed automatically with VB 2005 Express), and I would like a simple solution to resolve this issue, without reinstalling .NET 2.0 (unless you are sure it resolves it). I also heard that it has to do with MIME types , but I'm not too familiar with this term to unders ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. input strategy

    Is getting a input device state heavy Should I only do it once per tick and save the info to some global variables that the rest of the of the program can access. Or can I use GetState() everytime I need to check the state of a input device I've created an input manager of sorts that you may want to try out. You can find it, along with some other stuff, in this project. http://www.threesixbox.com/project/ id=3b8a246360 The class you care about is the InputHelper class. Just call the static InputHelper.Update() function once per frame update and it fills in all the data you might want for all the devices, including which buttons are being held, was just pressed, or were just released. It's pretty simple. ...Show All

  • Visual C++ More PDH trouble...

    And now, I don't have the slightest clue where I'm going wrong - hey, at least it compiles. Here's the code: /* Este arquivo trata de verificar a carga de * processamento e a memoria livre do computador. * O resultado destas funcoes sera usado dentro da * funcao main e enviado para o cliente atraves do * servidor, a cada pequeno periodo de tempo. * Estas funcoes usam a interface PDH (performance * data helper), que interage com o registro do Windows. */ #include <windows.h> #include <stdio.h> #include <pdh.h> #include <pdhmsg.h> long getload(void){ PDH_FMT_COUNTERVALUE value; PDH_STATUS status; HCOUNTER pCounter; PDH_RAW_COUNTER raw1; LPDWORD type = NULL; WORD dwUserData = 0; PDH_HQUERY query = NULL; char c ...Show All

  • Visual Studio 2008 (Pre-release) gfc card

    hi peopl.. i really dint understnd the shader thing and all tat required for xna game studio supported gfx card.. i hav an intel DG965RY motherboard and my gfx card is on board, which is of 128MB.. now how do i know if mine is capable of running xna another prob is tat wen i run the setup of xna, wen it is almost complete, it throws an error sayin "one of the components required by setup did not complete as expected. set up wil terminate now".. please help.. i hav the same .msi file tat is available.. ...Show All

  • Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints

    Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " I was having the same issue. Thank you Long Xue. I del ...Show All

  • .NET Development monitor/lock scope etc

    Some musings on synchronization ... Does a lock remain in effect if the critical section contains a call out to another method I'm sure I've read somewhere that it does but I can't find the reference. What happens if the called method is public and also has to implement synchronization If it locks on the same object there will be a deadlock. If a ReaderWriterLock it will just increment the lock count right I assume that's ok, but it will degrade performance. Does it make any difference if a return statement is inside or outside the critical section I assume not. Say I create a thread-safe wrapper for a collection class. I have to wrap GetEnumerator() but putting it in a critical section is pointless because the returned enu ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problems with DirectX Viewer

    Hi there I have installed the December release of the sdk and I'm having problems with the DX viewer everytime I try to open a .x file. have the error sying that DirectX viewer has encountered a problem and needs to close... Has anyone had the same problem Thanks :) Have a look here . ...Show All

  • Visual FoxPro Excel to cursor SPT problems

    I am using a SPT solution to take information from a .xls file and importing it to a cursor with this solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=509710&SiteID=1 However, I am now receiving problems where before I had not. Now I am getting Error 1466: Connection handle is invalid. Any ideas guys I can't see what the problem is but it occurs at the sqlstringconnect( ) line. Thanks! I don't know why but this is all very confusing to me. This code: MCONNSTR="Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:\FOX\TEST.xls;DefaultDir=c:\FOX;" nConn = sqlstringconnect(MCONNSTR) sqlexec(nconn, "select * from [sheet1$]", "CRSXLS") SELECT CRSXLS As supplied by Dave M. is fine, ...Show All

  • SQL Server What is wrong with my code relating to the marker of the line chart?

    Hi Guys, In my line chart report, I want to display the markers of the line chart dynamically. I wrote the below RDL script and VB script in the report, but the report designer gave me the following error message: The 'http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition:Type' element has an invalid value according to its data type Does this mean that I can only use string like"Circle" here, and cannot use a function to return the string Thanks in advance. Danny   Code snippet in the RDL file: <Marker>      <Type>=Code.GetMarkerType(Fields!TimeStamp.Value)</Type>      <Size>6pt</Size> </Marker> ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA Article on GamesIndustry.biz

    Clicky ...Show All

©2008 Software Development Network