Koruyucu's Q&A profile
Windows Forms PropertyGrid Key Events not firing
this->m_rPropertyGrid->PreviewKeyDown += gcnew System::Windows::Forms::PreviewKeyDownEventHandler(this, &CtrlRSDataPropertyGrid::CtrlRSDataPropertyGrid_PreviewKeyDown); this->m_rPropertyGrid->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &CtrlRSDataPropertyGrid::CtrlRSDataPropertyGrid_KeyPress); this->m_rPropertyGrid->PropertyValueChanged += gcnew System::Windows::Forms::PropertyValueChangedEventHandler(this, &CtrlRSDataPropertyGrid::m_rPropertyGrid_ValueChanged); this->m_rPropertyGrid->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &CtrlRSDataPropertyGrid::CtrlRSDataPropertyGrid_KeyDown); none of these events fire .. whats going on I do mak ...Show All
Software Development for Windows Vista Adding a filter to the graph builder
When I add a filter to the graph builder , does its interface reference count increases by one The graph manager holds a reference count on all of the filters in the graph. You don't need to hold a reference count on any filters unless you need to specific filter interfaces (such as IVMRWindowlessControl). That might not be very clear from the docs, so I'll add a note to AddFilter and AddSourceFilter. ---------------------------------------------------------------------------- Mike Wasson, SDK Documentation This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. (c) 2006 Microsoft Corporation. All rights reserved. ...Show All
Software Development for Windows Vista Controlling MSWebDVD buffer
Hello, I want to use DirectShow (the MSWebDVD control) in a vb project and I need access to the buffer. Basically, I want the program to automatically skip from one part of a movie to another while the movie is being played (say from 10 minutes into the movie to 12) and I want it to happen seamlessly. To accomplish this I need to alter the choice of data that is being buffered. I need the buffer to load the information needed to play the video that will come after the section is skipped (So, in the previous example, it would buffer the data up to 10 minutes and the next data that would be buffered would be that which is after 12 minutes). Is there a way to control what is going on with the buffer If not, can anyone suggest something els ...Show All
Visual Basic COM assembly registered, but still get COM error Class not registered
I've been beating my head on my desk for a couple of hours now, so if anyone knows how to fix this, I'll be eternally grateful! I have a COM assembly created, used regasm to register and create the type library with no problems. When I try to access my object, I keep getting 80040154 Class not registered. I checked out the registry and the .tlh file. Both show same CLSID for the object. Any ideas what I'm missing Hi R u using .net assembly to Vb or any else If so use Codebase keywords while exporting your .net .dll to .tlb Example Regasm .net .dll name /tlb /codebase .tlb filename ...Show All
Smart Device Development Map HardwareButton to TAB button
Is there a way to use the HardwareButton component to emulate a TAB press Unfortunately, I don't see a way to set up that mapping within WM5. Thanks, Matthew Belk If I remember correctly I couldn't tab out of a component container (panel). I might have used SelectNextControl() incorrectly though. I used SelectNextControl(GetFocusedControl(), true, true, true, true); where GetFocusedControl() looped over the form controls to find the focused one. Lars ...Show All
Software Development for Windows Vista Missing Windows component
Hello, On Vista RC2 without Flash, after I close my app, I get this message titled "Program Compatibility Assistant": ... "This program requires flash.ocx, which is no longer included in this version of Windows." I don't want this message to appear. My app detects whether Flash is installed or not. BOOL IsFlashInstalled() { SafeOleInit(); // return AfxGetThreadState()->m_bNeedTerm || AfxOleInit(); CLSID clsid = CFlashActiveXControlBase().GetClsid(); CComPtr<IClassFactory> pFactory; return SUCCEEDED(CoGetClassObject(clsid, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, NULL, IID_IClassFactory, (void**)&pFactory)); } If Flash is not installed, the function above properly returns FALSE, and Vis ...Show All
Smart Device Development Dll method problem
Hi Guys I am new bie in Windows mobile platform. I am building a smartphone application using c#. It uses our own NetwrkAction.lib. Can you guys help me how can i use this lib in the project. I have follwoing functions that has to be used in the application. EXPORT CNetwrkAction* CALLBACK CreateNetwrkAction(); EXPORT void CALLBACK DeleteNetwrkAction(CNetwrkAction* obj); EXPORT int CALLBACK Configure(CNetwrkAction* obj,LPVOID aErrorNotifier,LPVOID aEventNotifier, const char *aPrimaryGateway); EXPORT int CALLBACK ConnectToServer(CNetwrkAction* obj); EXPORT int CALLBACK RequestToServer(CNetwrkAction* obj,const char *aPrimaryGateway); Can anybody tell me how to use this DLL with my program. Hi Ilya srry but i am really in trouble.. ...Show All
Visual Studio 2008 (Pre-release) Service cannot be started. System.IO.IOException: The network path was not found.
Hi, I am getting this error when I try to host my service on my live server.When I host this service to any system in our network it works,but in live it doesn't work.If any one knows please reply me as soon as possible. Regards, Pavan ...Show All
.NET Development Retrieving username of a running process
Hello, I've a windows service who's looking the owner of the Internet Explorer running process. I retrieve the PID with following code : Dim theProcesses() As Process = System.Diagnostics.Process.GetProcessesByName("iexplore" ) Dim PID As String Dim tp As Process For Each currentProcess As Process In theProcesses PID = currentProcess.Id tp = System.Diagnostics.Process.GetProcessById(PID) Next The question is now : how can I retrieve the username who is executing Internet Explorer Thank you for your help. wum Thank you for the tip but unfortunally, it doesn't work. tp.StartInfo.UserName always seems to contains an emptry string. ...Show All
Visual Basic Problem Installing VS2005 Standard on new computer
I have been using VB2005 Express since November 2005 and VB2005 Standard on a three year old Pentium 4 computer with 1GB of RAM, integrated graphics and Windows XP SP2 with all the latest update. I am trying to transfer to a new Compaq Preasario with Inter TM2 6400 dual core processors, NVIDIA GeForce 7500 LE graphics and 2GB RAM and XP SP2 updated. I have loaded OfficeXP, Norton Internet Security 2007 and GoBack 4 successfully along with copying all my datafiles from my old computer via an external hard disk. Successfully. I then loaded Visual Studio 2005 with VB and C# along with the MDSN Library. The next time I used Windows Explorer and right clicked on a datafile, the VS2005 JIT debugger kicked in with the error message " ...Show All
Visual Basic Timer countdown?
Hi, Ive looked for like 4 hours and this is only for fun... How do I make a timer countdown to midnight for example. And could there be answers with the time to countdown to as what would be select in a combo box thanks. Nothing to hard don't strain yourself trying to help me... Or instead of using timespan calculate difference in seconds. Something like the following Public Class Form1 Const SecondInHour As Integer = 3600 Const SecondInMinute As Integer = 60 Const MidnightTimeInSeconds = 86400 '24* 3600 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Timer1.Interval = 1000 Me.Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal send ...Show All
SQL Server Question to ytd()
Hi, Ihave a Time-Dimension with 2 hierarchies: (a) Year - Semester - Quarter - Month and (b) Year -Week. Than I have a calculated member in my Cube like: CREATE MEMBER CURRENTCUBE .[MEASURES].[Sales Volume KG (kum.)] AS Sum ( ytd (), [Measures].[Sales Volume KG]), FORMAT_STRING = "#,#.00" , VISIBLE = 1 ; When I browse the cube and I use the (a) hierarchy on the colums, all works fine; I get the accumulated sums over Semesters, Quarters, Month. When I use the (b) hierarchy, in each cell I get the normal week-sum and not the accumulated. What's my mistake Thanks Hans Hans, on the contrary, from what I can tell, when you select a week in [Date - Week], a year membe ...Show All
Visual C++ FOR loop in Vis C++
Hi there. I am doing my uni assignment, and I have got a silly problem here in C++ for for loop. Can you please solve it The code is: #include <stdio.h> #include <conio.h> int main( void ) { int i; for (i=0; i<5; i++) { if (i==3) printf( "Hi" ); } } And I am getting 4 errors for the syntex! Can I find some documentation of Syntexes anywhere Like we have for "J2SE"! Thank you for taking time to read it. I tried in the C compiler mode. The source code is as follows; #include <stdio.h> #include <conio.h> int main(void) { int i; for(i=0; i<5; i++) { if(i==3) printf("%d -> Hi\ ...Show All
Visual Basic The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Hi, I have recently converted a .net 1.1 web application project into a .net 2.0 web application. It compiles without errors, but when I run it in the browser, I get the following error: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Can anybody help please That's a pretty generic error message for "I tried to load a DLL to ...Show All
SQL Server SQL Bulk copy Question
Hi I need to transfer data from legay system to SQL Server . and I need to use Multiple threads for transfer data.and the status of the currently transfered records should be shown in Grid in UI. I've done this using INSERTS. Can I write the same using SQLBULKCOPY class. Thanks vizai ...Show All
