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

Software Development Network >> Alvin Kuiper's Q&A profile

Alvin Kuiper

Member List

m.a.fuchs
jsstone
Capt. KDS
hcoded
Bishnupada Mukhopadhyay
Joe Rattz
asisurfer
vackol
RGLloyd
Gary Burghardt
byteguy
Paul Stovell
Ganeshm
Zadoras
az81
Spenceee
Chandresh
Laurent P.
Javahar
Neotech
Only Title

Alvin Kuiper's Q&A profile

  • Windows Forms Need help with SendInput function

    Hi, this piece of code is supposed to print a letter, but nothing happens. Can anyone help me to find what's wrong Thanks. // Structures for keyboard input public struct KEYBDINPUT { public int vkCode; public int scanCode; public int flags; public int time; public int dwExtraInfo; } public struct INPUT { public int type; public KEYBDINPUT ki; } // Declaration of SendInput [DllImport("User32.dll")] public static extern int SendInput( int nInputs, ref INPUT pInputs, int cbSize); // Function that outputs the letter public void PrintMyKey( int vkCode) { INPUT input = new INPUT(); input.type = INPUT_KEYBOARD; input.ki.vkCode = vkCode; SendInput(1, ref input, 28); } // Call that function PrintMyKey(65 ...Show All

  • SQL Server Report subscriptions

    Is there a way to either query the ReportServer database or view a report within Reporting Services to show all the subscriptions and their next run time The "My Subscriptions" area only shows when a report was last run for subscriptions I created. Since we'll end up moving dozens of reports from Crystal to SSRS and multiple people will be creating schedules, it'd be handy to have a nice list displaying exactly what's scheduled and when they'll run next. Any ideas are greatly appreciated. Thanks You would have to create an user interface to pull the data from the SQL Server Agent for this. HTH, Jens Suessmyer. --- http://www.sqlserver2005.de --- ...Show All

  • .NET Development Trusted_Connection Problem with VS2005

    I'm sure this is a known problem, but I can't seem to find the fix. My VS2005 app connects to the SQL Server database through web services. If I connect with a connection string that uses userid and password, no problem. But, if I change that to use a Trusted_Connection instead, it won't work. This worked fine when the app was compiled under VS2003, but has not since migrating it to VS2005. Is there some setting I need to tweak somewhere In IIS maybe TIA, I don't think the Anonymous access matters ... users are authenticated with logins and passwords stored on SQL Server through an application login screen. This wouldn't be the cause of my problem anyway, would it ...Show All

  • Visual C# VB6 ActiveX Dll Problem !

    After compiling a activeX dll in VB6. I had tried to use it in my C# application : [DllImport ("MyLib.dll",EntryPoint="Function1")] private static extern int MyFunc (int _num); -> I get an exception "Entry Point not found !" It's my activeX Dll code : public function Function1 (byval num as long) as long ..... How to reuse this dll, Somebody help me ! Hi, Since VB6 is all about COM, you can have Visual Studio do all the work of creating a runtime-callable-wrapper (RCW) for your VB6 dll: Simply add a COM Reference to this dll to your project by using the "COM" tab on the "Add Reference" dialog ...Show All

  • .NET Development IpcClientChannel and [OneWay] methods

    It seems to me that IpcClientChannel doesn't really support one way calls. The channel waits for a response on these calls (not sure why) and the response never comes. So a worker thread is blocked on every call. I'm not using security, just the basic setup (on XP SP2). Yes this is a bug in the IPCChannel. It should be fixed in the next release. Unfortunately the only workaround for now is to not have the OneWay attribute. I will post here if I can come up with something better. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. General Audio Disfunction

    After about 10-15 minutes of gameplay, the audio slowly begins to become more and more distorted and fractured sounding. Both the sound FX and BGM gradually become more choppy and grainy sounding while dragging down the overall performance of the game. Any ideas my code for audio is pretty straight forward. My general routine for calling sound FX is; 1) call 'cue stop' in case the effect is still playing 2) call 'get cue' to retrieve the sound again 3) call play I do this in most cases where I only want one instance of the effect occuring at a time and there is a chance the sound will not have finished playing before it needs to be played again like in the case of a rapid fire weapon. ...Show All

  • Visual Studio Updating CodeModel/Intellisense

    Is there any function to find out whether or not the code model is currently up to date or not The IDE shows it in its status bar (Updating intellisense) and the object browser shows ... files to parse. So I think there should be any function, but I couldn't find. That info was added for VS 2005 in the new EnvDTE80 assembly. You have: EnvDTE80.FileCodeModel2.ParseStatus to get the status (Complete, Error) EnvDTE80.FileCodeModel2.Synchronize() to refresh I have not tested it, though, just some pointers. ...Show All

  • SQL Server Dynamic query

    Hello I have a problem with writing a query.Let me give an example: Table: ColA , ColB , ColC , Col1 , Col2 , Col3 , Col4 , Col5 Ok.I must write a SP and it gets a parameter,say @param. if @param=1 then in the select statement I will select Col1,if @param=2 then I will select Col2 and so on. How can I do this Thanks. Joey gives an answer how. You could also do: declare @query varchar(max) set @query = 'select col ' + cast(@param as int) + ' from table' Or if the column names aren't actually numberd, use a CASE expression to pick the columns. The question I have is why do this If all columns are only useful one at a time, this is probably a design issue. If this is to support some use ...Show All

  • .NET Development close listening socket, C++ .NET

    Hi. I spend few days solving problem how close listening socket in my server. Main problem is that I using C++ not C#. In C# I found many examples but in C++ (.NET) I don't found any one. So there is my code: // Server.h #pragma once #include "DistroSock.h" #include "NetworkEventArgs.h" namespace MyServer { using namespace System; using namespace System::Net; using namespace System::Net::Sockets; using namespace System::Collections::Generic; using namespace System::Windows::Forms; delegate void NetworkEventHandler(Object^ sender, CNetworkEventArgs^ e); ref class CDistroServer { private: Form^ m_MainForm; String^ m_LocalIP; int m_Port; Socket^ m_ListenSock; AsyncCallback^ m_Ac ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Any idea when XBox Live comes to the PC?

    I heard it was coming but I wasn't sure on the date. Any idea redshock, I have not heard a definative date but I do know that Shadowrun will be the first game to support 360 users in addition to PC users, so I would guess sometime before this game is released and if not when it is released. Thanks. Cale ...Show All

  • Visual Studio Express Editions best way to find all if webbrowser is totally ready

    I am trying to automate saving data from browsing some websites. I am having great difficulty to judge whether the webbrowser has completed all frames and becomes ready. I tried matching download complete against beforenavigate2,...etc as well as trying to use webBrowser.ReadyState I am adding this since people are looking for this solution. Basically neither solutions work. The website URL is: http://www.glguitars.com/ The first time the events are tripped: regular DocumentCompleted means a console write with no checking *** DocumentCompleted*** is Joepg solution and %%DocumentCompleted%% is gg1's solution Both do not work on certain Frame sites (see below) They are more ...Show All

  • .NET Development Deserialize - unable to find an Assembly .....

    Hi, I've got a really strange error. I'm using a fairly standard method to implement the IClonable interface, basically I serialize my object to a memory stream and then stream it back again. This all works fine in the .Net runtime environment and if I use a test application. However, I need to run as a COM control inside of an HTML page (long story, but I am embedding it in the home page pane of Outlook). Anyway everything works fine except this routine. It fails when trying to deserialize with "Assembly not found". I added some debug code to load the assembly dynamically and that all works fine. It can't be a version issue as I am serializing and deserializing the same object in the same method. I've traced where the framewor ...Show All

  • Visual Studio Tools for Office Get error on dropdown action for ribbon UI, "Callback signature mismatch" !

    Hi I have an Excel 2007 plugin with new ribbon interface. I have defined ribbon xml file like this: < tabs > < tab id = " TabDBOperations " label = " DBOpreations " > < group id = " grpAlmexa " label = " Operations " > < dropDown id = " ddDatabase " label = "Database " showLabel = " true " onAction = " cmdSeConn " > < item id = " Cars " label = "Cars " screentip = " 192.168.1.11 " /> < item id = "Buildings " label = "Buildings " screentip = " 192.168.1.11 " /> < item id ="Tests " label = " Tests " scr ...Show All

  • Smart Device Development How to access a Pervasive database from Win CE 5.0-device?

    Im about to begin develop an application for a device running Win CE 5.0. My developing environment is VS 2005. I would like the application to access a Pervasive database. The problem is that Pervasive doesnt have a client for Win CE. What options do I have ...Show All

  • Software Development for Windows Vista Simple STS - Certificate Authentication Scenarios

    Reference: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=659284&SiteID=1 So, I guess most of us have asked this same question. I am not able to get the Certificate Authentication Scenarios to work with Simple STS as well. It seems like the problem stems from the Cardspace Agent UI itself. It doesnt find the certificate associated with the card, no matter what you do. Even when a wrong password is set in the ini file - certificatepassword=xyz <Looking_at_Garrett />Can you help us, please Sorry, I got backlogged this last couple of weeks. RTM comes waaaaay to fast somedays :D I'll see if I can spare some time to get back in and look at this--I realize the docs didn't cover it all off. ...Show All

©2008 Software Development Network