Learning VB's Q&A profile
SQL Server Autogenerate reply or ServerProc generated message............
Hello, I got my sample application to work that I am building my proof of concept out of. I need to be able to auto generate a reply message that would normally be in the run routine. The only way I see to do this is pull it from a table but I do not want to do that. I have tried tests where I change the code to see if I can send a message back but I have to reinstall the assembly into the database which is not what I am looking for. I am looking for a way to change the message by either accessing the GUI and getting the string, calling another function to do this, or something like that. I want it so I can change the code in the run routine in VS 2005 but this does not work. I am sure their is a trick to do this but am not sure what th ...Show All
Software Development for Windows Vista Where are Common Control Balloons
I have been trying to track down information on the new Balloon Common Controls but have so far only managed to fine the Vista guidlines on using Balloon Controls or the Common Controls Balloons info which just says it has not been written. Is there anywhere I can find information on the Balloon Common Control interface Thanks in advance, and appologies if this is a stupid question, but I have looked everywhere and found nothing!! EM_SHOWBALLOONTIP etc. http://msdn.microsoft.com/msdnmag/issues/06/07/CAtWork/ ...Show All
Software Development for Windows Vista Double playbackrate with IReferencClock?
HI, I have spend a lot time on this Problem but I am not able to solve it :( ...So you are my last hope. I have modified the Texture3d9 Sample from the PlatformSDK which renders a VideoFrame to a D3D9Texture. The Video now plays fine in my D3D enviroment. I can also double the playrate with SetRate(2.d), this also works quite fine if the PC is fast enough. OK now my Problem: I want to change the Video-Playbackrate on-the-fly (Audio is not rendered). In several forums all developers say "just use IReferenceClock" . But that is my Problem, i dont understand how IReferencClock works. This is what i have coded untill now: IReferenceClock* pRefClock; hr = CoCreateInstance(CLSID_SystemClock,NULL,CLSCTX_INPROC_SERVER,IID_IReferenceClock,(void**)& ...Show All
Visual Studio Express Editions How to use the BackGroundWorker??
I have an application that pulls data out of a database based off search criteria that is set in a form. What I would like to do is have a backgroundworker setup (or something else that will do the following) that allows for more then one search to be done at a time. for instance.... I want to pull all the names of people that have a name starting with "j" and I start that search and the data starts to pour in. Then as that data pours in I want to start another search with the same form of names that start with "t" but I dont want to interupt the first search and I dont want to have to wait for it to finish. In my research I believe a BackgroundWorker is the object that can handle this so what I have done is setup a BackgroundWor ...Show All
Visual Studio 2008 (Pre-release) How make a Custom Behavior participate in a transaction?
Hi, I have a WCF Service that handles money movements and these money movements must be audited. The audit is done thru a WCF Custom Behavior (a type that implements IServiceBehavior). The question is how to make the Custom Behavior participate in the same transaction of the Service action that makes the money movement, in order to rollback everything in case the money movement fails or the audit fails. Thanks Jp.- please send me email to madhup@microsoft.com , i will send you sample in july CTP,we are able to get transaction context in iparaminspector and not able to get this info in IDispatchMessageInspector implemented class ...Show All
SQL Server JDBC Driver Error
Hi, I am getting " This driver is not configured for integrated authentication.". Any suggestion how to resolve this error. Thanks. Placing it in the same directory as your application or anywhere in your path (system32 is in your path) is fine. I know other JDBC drivers suggest placing the auth.dll in the system32 directory but this seems like overkill to me. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader Newbie question - Jagged (sharp) edges
I'm working on a custom shader for a game and I'm really happy with the results except the edges of my object when drawn are jagged, and I was wondering about the best (preferred)way to antialias or smooth them out. Do I need to write a postprocessing shader or is there a way to do this in the vertex or pixel shader Thanks, Bill Are you referring to the texture aliasing or the polygon edge aliasing If its the former then setting the SamplerState (Min, mag and mip filters) for the texture to Linear or Anisotrpoic (either in your C# or in your Shader) will fix this. If its the polygon edges that appear highly aliased then you can either - increase the screen resolution, enabled Full screen Anti Aliasing (FSAA) or render the scr ...Show All
Visual Basic MSHTML System.AccessViolationException
Hello all, I seem to be in a quandry over an error that makes no sense to me. In following some examples I have found on the Net , I've been attempting to use the MSHTML library in vb.net to access the HTML DOM . However, the following code (copied directly from this article: http: / / www. codeguru. com/ vb/ vb_ internet/ html/ article. php/ c4815/ )... Dim objMSHTML As New MSHTML.HTMLDocument Dim objDocument As MSHTML.HTMLDocument objDocument = objMSHTML.createDocumentFromUrl(txtURL.T ext, vbNullString) produces this error: A first chance exception of type ' System .AccessViolationException' occurred in mscorlib.dll And when I look at the error message, it tells me that memory could be corrupt elsewhere. I've attempted this line of co ...Show All
Visual C# send e-mail
Hi, Im using VS .net 2003. I'm trying to send and email. I tried both smtp.gmail.com and smtp.mail.yahoo.com. I also tried many examples on the web on how to do it, and it is not working. Here is one of the codes I used: I have even deactivated the firewall. I don't understnad how come it isn't working. ************************************************* System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage(); message.From="myAccountOn Yahoo@yahoo.com" ; message.To="aMy other account on gmail" ; message.Subject="ddddd"; message.Body="yyyyy"; message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver","smtp.mail.yahoo.com"); me ...Show All
SQL Server Please help > Problem restoring database
We have 2 database on a production server running sql express 2005, the first one is 200mb and the other one is 1.3gig. We make backup under sql management studio using option full. When we try to recover database on another server the 200mb database restore perfectly, the 1.3 gig always fail with the following message : ADDITIONAL INFORMATION: System.Data.SqlClient.SqlError: The file "database_name" failed to initialize correctly. Examine the error logs for more details. (Microsoft.SqlServer.Express.Smo) We tried dbcc checkdb and everything seems alright. I updated the statistics, no change. I switched the recovery model from full to simple, no change. I tried using "restore database from disk='' with no ...Show All
Software Development for Windows Vista Setting volume levels with IAudioVolumeLevel
Hello, I've been trying to set the level of a particular part by using the IAudioVolumeLevel interface of the API. I can Activate a valid instance of the interface, and when I call GetLevelRange on it, I get a min value of -34.5, a max value of 12, and a step value of 1.5. However if I loop through the valid step values and set them with SetLevelUniform, while comparing the value of the volume level slider in the Control Panel (which goes from 1-100), I get unexpected results. The number on the slider (and volume from the speaker) remains at 0 for the first 8 iterations of the loop until I get to a level of -24 for the SetLevelUniform call, at which point the slider value moves to 1, where it remains until the 8th iteration in the loop ...Show All
Visual Studio Express Editions disappeard items in designer
I have a program with a menu-bar and a statusbar. Ther were a lot of items in these bars, but suddenly they have disappeard. In Designer you can't see them, but in the Code you can still use them and while compiling, there isn't a fault. In debugging-mode they also have disappeared. How can I get all these items back Thx! I had the same problem numerous times and I have discussed a solution for it in one of my posts. Even if you're already rebuilding the project I'll leave here my solution for reference. In the Form1.designer.vb file, you should have this piece of code for the MenuStrip (the names and values may differ): ' 'MenuStrip ' Me .MenuStrip.Location = New System.Drawing ...Show All
Gadgets endTransition parameters
Hi, I just would like to ask which parameters can I pass to the endTransition function Thanks Have MS still not updated that documentation ! Come on MS, get MSDN updated please... This one was raised several months ago! You've got two choices: System.Gadget.TransitionType.none System.Gadget.TransitionType.morph Not sure exactly what morph does, but it looks like it just zooms the gadget to the new size. It has some major flaws as well, which I'll Repro soon with some workarounds - basically if you use CSS "zoom" on your Gadget, it goes horribly wrong. ...Show All
Visual Studio Express Editions Application to generate MS Word document?
Is it possible for a C++ application to generate the MS Word *.doc files For example, if I had a form with two text boxes and a button on it. When the button is clicked, would it be possible for the program to make a new MS Word document that has a 2 cell table with the text box values in each cell, and save this Word file to the current directory If so, any pointers to the libraries to use or whatever tools I would need would be greatly appreciated. Thanks in advance I've now installed the PSDK and I got past the missing ole2.h but now mso9.dll cannot be found. I searched my computer and it was not installed anywhere by the PSDK. @kjh7r Unfortunately this computer only has W ...Show All
Windows Live Developer Forums Windows Live Search AJAX implementation & Localization
Hello, Is it possible to use a localized version of the implementation. What I mean is, now the search results are displayed in an en-US environement, is it possible (by changing a meta or a parameter ) to change and use instead another language in the results window We would like to use the Ajax version but have the results displayed in French or Dutch. ( like we have after a search in French http://search.live.com/results.aspx q=La+pacte+des+loups&mkt=en-gb&FORM=LVSP ) Nicolas Nicolas, yes you simply need to change the mkt parameter on the command line from en-GB to fr-FR. The frist two letters indicate the language, and the second two indicate the country or ...Show All
