Jeff_LIU's Q&A profile
Software Development for Windows Vista Single-instance DCOM server problems with high/low integrity levels
I am working on an application that employs a single-instance DCOM server. The application works fine on all other versions of Windows except Vista. There is a strange behavior that I observe on Vista in regards of the instantiation of the singleton COM interface if there is a difference between integrity levels of the server and client applications. The single instance is accomplished by having the singleton interfaces declared with DECLARE_CLASSFACTORY_SINGLETON ATL macro. Additionally, there is a code in the application that ensures only one instance of application is running by utilizing a named mutex. The application checks if the mutex exists, exits if it does and stays running otherwise. The scenario of the problem I pbserve is the ...Show All
SQL Server Rolap Cubes - Cannot enable real time updates
I am trying to create a ROLAP cube with 'Enable real-time updates' . When I go to process the cube it fails stating, Creating indexes for Aggregation XXXX CANNOT enable real time updates on this partition without indexed views: <date> Im running SQL Sever 2000 Developer Edition - SP4 on Windows Server 2003 My cube don't use DCount measures ,only simple calculation (sum, count) Can anyone help me debug this Is there any way to get a more descriptive error from Analysis Services Thank you ...Show All
.NET Development DAAB problem with SQL syntax.
Dear All I want to use Microsoft data access application block for dynamic database layer In my application which support SQL server , DB2 , oracle databases . But as you know each one of these DBMS has his own syntax for SQL parameter Example : Oracle >> select empno,ename from emp where empno=:empno SQL server>> select empno,ename from emp where empno=@empno DB2>> select empno,ename from emp where empno= So I wonder if I should modify the DAAB to rewrite the SQL statement according to the DB provider Or there is another solution for this . Note: I want to use the native DB provider for each DBMS not OLE or ODBC provider . Dear Mr. Logic; Ho ...Show All
SQL Server what directory are my nightly backups (.bak) files written to?
where in sql server 2005 ( and 2000 for that matter) do i find the path to the location where backups are placed (.bak files) is there sql i can use to find this out I also thought about the default setting first, but then it struck me that there's no guarantee that any given backup actually used the default path, so I thought it'd better to look at the backups taken just to be sure. =:o) /Kenneth ...Show All
Visual Studio Express Editions Loading text when form loads
Hi, How do I load text on the form when the form loads Here is what I’m trying to display when the form is loaded. With MBSerial If .Serial_OpenComPort = True Then ToolStripStatusLabel1.Text = "Connected" Else ToolStripStatusLabel1.Text = "Disconnected" End If End With Ken Hi, I've tried the code below to load a rectangle but, I can't get it to work. Do you see anything I may be doing wrong. Thanks, Ken Private Sub frmMBDemo_Load( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase .Load &n ...Show All
Visual C# events on form activate?
I have a windows form where I want to perform certain actions each time the form is activated. Is there an event handler that I can use for this ...Show All
.NET Development Problem with send pointer of struct from C# to C++(VS6)
Hi, I'm dealing with an application written in C++ (VS6) which receive a pointer of a struct in one of its functions. The pointer should be sent from C# (VS2005) in a "Register" function. I wrote it like this: //call the "Register" function Register( GetStructPointer()); //Declaration of Register in C#: [ DllImport (CQS_ARBITER_DLL)] public static extern void Register( IntPtr EvntStruct); //declaration of the basic sturct public static SEvent mEvent; //Implementation of GetStructPointer() private static IntPtr GetStructPointer() { return VarPtr(mEvent); } //Implementation of VarPtr() --pinning the pointer static IntPtr VarPtr( SEvent obj) ...Show All
Internet Explorer Development Web Browser inside a tabbed page flickers on resize
Hi, Can any one offer a solution to the resizing flicker problem when using a tabbed page and web browser control I have used double buffering to no effect and need a quick solution to this problem as the work is already live in a production environment and need to fix it without having to implement new controls. Please help. Thanks. take a look at this project they use a custom control that so far does not look like it flickers at all http://www.codeproject.com/vb/net/IE7_Clone_VS2005_Browser.asp i'm going to take a look at the source and see if i can use this for my project btw ty for the response ...Show All
Visual Studio Express Editions Using Listviewitems for text in a groupbox
Hello all, I am needing to ust items in a listviewbox as the text for a groupbox. In the listview box it shows drives and the files in those drives. I have got that part, now I need to use the checked items in the listviewbox as text for the groupbox. Example I check the drive labeled C:\, now I want to add C:\ as the text for the groupbox. If you dont understand let me knwo and I'll try yo be more clear. thanks Although the groupbox is a container control....the only text property it has is the label for the groupbox Me.GroupBox1.text= String.empty For Each i As ListViewItem In Me . ListView1 . SelectedItems Me .Groupbox1.Text = Me .Groupbox1.Text & " " & ( i . Text ) Next How ...Show All
Visual Basic Is there any way to create DXF files from within VB?
I am developing some general purpose engineering programs with Visual Basic and they make heavy use of GDI+ for printed output. Nevertheless, the capability to export graphical data in DXF format would be a very welcome addition. Is there any resource, books or white papers, where I can learn about DXF creation Before I did anything with AutoCAD, I'd look at buying a seat of SolidWorks. It's half the price of AutoCAD, .NET compliant, easy to automate, and can save files in any number of formats. Now, it may not help with your original goal - you may have to redo the drawing using the SolidWorks API, but this makes for an extremely robust automated drawing engine. We use an automated process for custom ...Show All
.NET Development Could not find installable ISAM.
I got the "Could Not find installable ISAM error" while uploading an Excel file in my application. The connection string uses the Microsoft.Jet.OLEDB.4.0 provider with following parameters Provider=Microsoft.Jet.OLEDB.4.0;Excel 8.0; Extended Properties=HDR=No; IMEX=1. I checked the registry entries as mentioned in the "Retrieving Data from Excell 2003-Could Not Find installable ISAM" post and even registered the "Msexcl40.dll" again. Even then I got the "Could Not find installable ISAM error". So I restarted the IIS Server. Even then the problem persists. What else could be the problem Thanks and Regards, Little I see some problems with the syntax. Tr ...Show All
Visual Basic File Attributes
Hi. Im writing a program that is searches all the files in the Hard Drive. All files are listed in a listbox. But i DON'T want to list the system files. I tried to do : If File.Attributes = FileAttributes.System Then..... but it didn't work! And the reason is that for example the file "A" is a system file but it is also hidden! If it weren't hidden it would work! To be specific: FileAttributes.System = 4 and FileAttributes.Hidden = 2 That's make us 6. The program won't list files that it's attributes = 4. That goes for any other combination. Is there a way to NOT list the file if it is a system file but is is hidden, or compressed etc Or the only way would be something like this If File.Attributes = FileAttributes.System AND Fi ...Show All
Smart Device Development prob with syncronizing socket send and recieve. Plzzzzzzzzzz help!
Hi, My app uses a socket connection to send and receive from a remote server. I've very serious prob with the socket, i.e. synchronizing send and receive on that. The app actually creates seperate threads for sending and recieving. The receive thread, which we call as cmsThread, keeps polling the socket, by calling receive on the socket periodically. From the time i started this app, i had probs with synchronizing the send and recieve. Previously i used lock(this) for both send and recieve, in the socket class that i created. This made my app look hanging when more msgs were sent. I realized that this was because of blocking the thread in send and receive. So i removed the lock statements altogether. But now i've a ne ...Show All
.NET Development WSDL contains local server name URL in soap:address location attribute
I have a Web service which is being accessed by a third party who uses a Java tool to construct SOAP interfaces from the WSDL published automatically by ASP.Net about my service. The location attribute contains the local name of the server, rather than the external domain, eg.: - < wsdl:service name =" MyService " > - < wsdl:port name =" MyService Soap " binding =" tns: MyService Soap " > < soap:address location =" http://localservername/ MyService .asmx " /> </ wsdl:port > - < wsdl:port name =" MyService Soap12 " binding =" tns: MyService Soap12 " > < soap12:address location ...Show All
Audio and Video Development Focused Buttons and State not working.
Code sample below. My buttons are acting kinda screwy. I can activate them by clicking, but they exhibit the focus and active states only when I click. Focus is not happening when I mouse over. Also the buttons quickly get out of sync or something. I wonder if I am not dealing with state properly. < xml version="1.0" > <root xml:lang="en" xmlns="http://www.dvdforum.org/2005/ihd" xmlns:style="http://www.dvdforum.org/2005/ihd#style" xmlns:state="http://www.dvdforum.org/2005/ihd#state"> <head> <styling> <style id="BTNSTYLE" style:position="absolute" style:backgroundFrame="0" style:width="137px" style:height=" ...Show All
