Yakov Melman's Q&A profile
Software Development for Windows Vista WMI and Win32_DeviceChangeEvent
Apologies in advance if this is the wrong forum to post on. If so, then please direct me to a better one. I'm having difficulty getting notification for the WMI event Win32_DeviceChangeEvent. Using the TempConsumer sample in the latest Windows SDK (Samples\SysMgmt\WMI\VC\TempConsumer), I modified two lines of code to be able to subscribe to the Win32_DeviceChangeEvent Line 169 changed from CBSTR Query(L "select * from MyEvent" ); to CBSTR Query(L "select * from Win32_DeviceChangeEvent" ); and line 239 from CBSTR(L \\\\.\\ROOT\\DEFAULT ), to CBSTR(L "\\\\.\\ROOT\\CIMV2" ), Compile the sample and run in Windows XP, then went to Device Manager and picked a device (in my cas ...Show All
Visual C++ CAtlHttpClient returns RR_READCHUNKEDBODY_FAILED
I'm using CAtlHttpClient in a windows service under XP, using VS 2003, c++. In some cases I find that CAtlHttpClient::Navigate() or CAtlHttpClient::NavigateChunked return RR_READCHUNKEDBODY_FAILED and I have no idea why this would be. I can attempt to read the exact same URL and sometimes it is successful on the first attempt, sometimes it takes 2 or 3 of these errors before it succeeds and sometimes it just never seems to work. This is on the same URL, so I suspect something is going on that I am missing. Here's some sample code: Here's my setup: m_url = new CUrl; if ( m_url->CrackUrl( host ) ) { m_navigateData = new CAtlNavigateData; m_navigateData->SetMethod( ATL_HTTP_METHOD_GET ); m_navigateData->SetFlags( ATL_H ...Show All
SQL Server Partner works from mirror to principal, but not vice versa.
We were having problems setting up the mirroring, so I did it via command lines. I found out the "alter...set partnership" command works on the mirror server going to the principal, but gets a 1418 error when going from the principal to the mirror. So if A is the principal and B is the mirror, A to B fails but B to A works. If I reverse it so that B is the principal and A is the mirror, B to A fails and A to B works. Any suggestions Fixed it! We did two things: - Went to C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys and set the administrators permission to Full Control and - Edited the C:\WINDOWS\system32\drivers\etc\hosts file on each se ...Show All
SQL Server Data mining formation for SQL Server 2005
Hi, I already have data mining experience with different software, but my company is now migrating to SQL Server 2005 and since it include a data mining module, I would like to learn how to use it properly (Analysis Services, DMX language DMX, …). Is there companies that offers formation in data mining for SQL Server 2005 Thanks! Tony ...Show All
SQL Server Cascading parameters problem
Hi, I have a problem with cascading parameters. I have 10 parameters in my report. Parameters 1, 2, 9 and 10 are independant. Parameters 3 to 5 are cascading parameters as well as parameters 6 to 8. Parameters 3 to 5 have no relationship with 6 to 8. But when I change the value for parameter 3 the values for parameters 4 to 10 are reset ! I don't understand why, only parameters 4 to 5 should be reset. Can someone please tell me how to avoid parameters 6 to 10 being reset Can you sent me the RDL file than I will take quick look at it. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Visual Studio Workround for Subreport within a subreport??
I have a main report, whith details of a "work order". Within this report is a subreport, and this details all revisions for that work order. This is a requirement. I've been asked by the users to create a summary report for each of them, and from there allow them to expand into the main report. Doing so obviously then gets rid of my revisions subreport. I've read into using hyperlinks but upon trying this I get the same problem. Is there a way to get around this successfully Will this be an implementation into a later version of CR for .NET (is this a limitation to CR.NET, or is it an issue in all CR products ) Any help would be greatly appriciated. Kind Regards, Luke Actually, it's doable. ...Show All
Software Development for Windows Vista fullscreen exclusive mode with VMR9
I'm a bit confused on how to go about implementing a fullscreen screen exclusive mode custom allocator presenter with VMR9. The VMR7 samples I've seen do a " CoCreateInstance(CLSID_AllocPresenterDDXclMode...) ", then go on to configure this ready to go allocator presenter. The documentation on the MSDN about this says " This topic applies to the VMR-7 only. In the VMR-9, you enable exclusive mode by supplying your own exclusive mode allocator-presenter. This is relatively straightforward if you use the IVMRSurfaceAllocatorNotify9::AllocateSurfaceHelper method. The VMR9Allocator sample shows how to implement a custom allocator-presenter.". I do already have my own VMR9 allocator-presenter, based on the VMR9A ...Show All
Visual Basic Hotkeys in VB 2005
How do i add a hotkey into my program for example i would like to have a mesage box pop up if Ctrl h is pressed. Set the form's KeyPreview property to true and add a KeyDown event handler to recognize the keystroke. For example: Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.H And e.Modifiers = Keys.Control Then MsgBox("Nobugz waz here") e.Handled = True End If End Sub ...Show All
SQL Server Logging in SSIS
Logging in SSIS as compared to DTS is more complex to set up with so many events. What events should I choose if I need something similar to DTS package logging i.e. I simply want to see which tasks executed at what time and whether they failed or succeded and if they failed, what was the error My advice would be to use a script task to write to the log. You can use the syntax "DTS.Log("Message") to log custom data. The script task will then show up within the events section of any built-in logging provider and you can log this information. The built-in logging providers do not provide much information to log just some system variables. Using a script task enables you to log more precise inf ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Demos Released
Hi All, I've just started a new series of XNA demos on my website. So far I have 3 demos: XNA Per-Pixel Lighting Demo, XNA Normal Mapping Demo, and XNA Parallax Normal Mapping Demo. I haven't included any pre built executables with the demos, so you'll have to build them yourself from the source provided with each demo. The demos target the Windows platform, but should run with little or no modifications for the Xbox 360. I chose to only target Windows to reduce the complexity of the source code. The per-pixel lighting demo implements per-pixel Blinn-Phong lighting (including specular lighting). The normal mapping demo implements tangent-space normal mapping. The demo also shows you how to calculate the tangent space basis vectors ...Show All
Visual C# error CS0029:Cannot implicitly convert type 'int' to 'bool'
for (int j=arrcolid.Length-1;j=0;j--) //<--error line { path += "<a href=article/" + arrcolid[j] + ".htm>" + arrcolname[j] + "</a>>>"; } Note: "arrcolid" and "arrcolname" are array. I answered this on your other thread... >> for (int j=arrcolid.Length-1;j=0;j--) Well, that's easy. j=0 is an assignment, which evaluates to 0 (int) j==0 is a comparison, which evaluate to t/f (bool) ...Show All
SQL Server Error Starting Script Editor in SSIS
I am having a problem in the Business Intelligence Development Studio. When I add and try to edit a Script Task or a Script Component, I click on the Design Script button and get one of two errors. For the Script task I get an error that states: Cannot show the editor for this task. (Microsoft Visual Studio) For the Script component I get: Cannot show Visual Studio for Applications editor. (Microsoft Visual Studio) For some reason or another it just will not start Visual Studio for Applications. I have uninstalled an re-installed several times. I have also researched and discovered that there is a bug when C# tasks are include in the project. However, this is not the case. Please help! I'm having the same problem, except ...Show All
.NET Development casting problem
hi all, I fail to cast the following to VC++.Net in VS2003 anybody can help ------------------------------------------------------------------------------------------------------------------- //Origanal BYTE Buf[1024]; PSP_DEVICE_INTERFACE_DETAIL_DATA pspdidd = (PSP_DEVICE_INTERFACE_DETAIL_DATA)Buf; ------------------------------------------------------------------------------------------------------------------- //What i have converted, unable pass the compiler Char Buf[] = new Char[1024]; PSP_DEVICE_INTERFACE_DETAIL_DATA *pspdidd = (PSP_DEVICE_INTERFACE_DETAIL_DATA )Buf; ------------------------------------------------------------------------------------------------------------------- //This one can Pas ...Show All
.NET Development Why do we use XSD's?
We are developing a 3-tier application and we are new to .NET , we need to know what is the actual benefits of using xsd's IT URGENT Please!!!!!!!!!!!! Thanks in advance........... By XSD, I presume you mean the W3C XML Schema Definition Language There are a number of reasons to use XML schemas, including: - To define a "data contract" between producers and consumers of XML data so that each knows what to do and expect. The tighter the data contract you can come up with, the simpler the code. For example, "RSS" is a very loosely specified XML format, so RSS aggregators have to do a lot of work to figure out what to do with different tags that may show up. If you have a tighter ...Show All
SQL Server Parse dataset in report
I am using a "jump to report" that accepts multivalue parameters for fiscal periods. It works fine, returning the correct data. However, I want to add the chosen fiscal periods to the report header in a textbox. When I use =Join(Parameters!DATEfiscalperiod.Value, ", " ) the results in the textbox show as: [DATE].[fiscal_period].&[5], [DATE].[fiscal_period].& When using:: =Parameters!DATEfiscalperiod.Value results in [ rsInvalidExpressionDataType] The Value expression used in textbox ‘textbox5’ returned a data type that is not valid. Is there a way to parse the dataset to only return "5, 6" in a string TIA ...Show All
