Kraxx's Q&A profile
SQL Server SQl Server 2005 installation Is depend on installation of visual studio 2005?
Hi every one, I'd like to install SQL SERVER 2005 Express Edition ,I begin to install it from DVD but during the installation it dosn't ask me about any instance and after installation there isn't SQLExpress service and I can't use sql server .(there are not MSSQL and Binn directory in sql server 2005) but when I install visual studio 2005 and after that I install sql server 2005 it ask me for name of instance and with this way every thing is ok and I use sql server completely. I 'd like to know the complete installation of sql server 2005 is depend on installation of visual studio 2005 befor it if not how can I introduce any instance after installation of sel server 2005 . Did you want to install additionally the Reporting Ser ...Show All
Visual C++ which pinvokeimpl is better
I write in mixed c++ with VS2005. I find out that there are two ways to invoke native functions. The first way is to use the DllImport attribute. The second way is to link to the native library directly. Let's take the function "GetLastError" as an example..... // using DllImport attribute #include <Windows.h> using namespace System::Runtime::InteropServices; namespace MyKernel32 { [DllImport("Kernel32", CallingConvention = CallingConvention::Winapi, EntryPoint = "GetLastError")] extern "C" DWORD GetLastError(); } void main() { DWORD LastError = MyKernel32::GetLastError(); } // link to the native library #include <Windows.h> void main() { DWORD LastError = ::GetLastError(); } ...Show All
Microsoft ISV Community Center Forums ListParagraphs collection in table
When I run this code on a simple doc containing bullet list paras, some of which are in a table and some not, only the list paras outside the table are found. The first red line counts only list paras outside the table. The second count (in a table cell with a list) finds no list paras. Any ideas how I can rectfy this Cheers, Mark If vTab.Cell(1, gReqIdCol).Range.Characters.Count > 2 Then temp = Application.ActiveWindow.Document.ListParagraphs.Count MsgBox "There are " & temp & " paras." With vTab.Cell(1, 1).Range vFound = False vIdx = 1 vLP = 1 Do temptab = .ListParagraphs.Count MsgBox "There are " & temptab & " paras in the cell." If ...Show All
SQL Server Dynamic Database Connection - EXCEL to SQL Server
Hi *, is there a way to connect Excel to SQL Server so that Excel serves as a frontend to SQL Server I heard rumors that this is possible with the 2007 release. I'm looking for a product that helps me storing massive data outside an Excel file. Right now, I'm using Palo (open source multidimensional database). Regards, Steve Visual Studio Tools for Office focuses on the scenario that you describe...you can find a good article that walks through the same basic scenario at: http://msdn2.microsoft.com/en-us/library/aa192473(office.11).aspx If you can't use Visual Studio Tools for Office, you could potentially use a poor man's version of what it does under the covers. By adding an "Update" column and using the code in the li ...Show All
Visual FoxPro Variable '_REPORTOUTPUT' is not found.
I have had a few users start complaining that they are getting the following error when running reports lately: Variable '_REPORTOUTPUT' is not found. I have verified that they have ReportOutput.App on their machines and the users have the proper access to it. I have also uninstalled and reinstalled the VFP9 SP1 redistributables including the report functions. I have also tried setting the _ReportOutput variable in the code before the reports run. Originally they were able to run reports with no problems and they say they haven't updated anything on their machines. Again, this is only happening to a few clients and not everyone. What am I missing Any help or suggestions anyone could provide would be appreciated. Thanks, Brian ...Show All
.NET Development How do I emit a generic method's parameter as a by ref?
I have a case where I am using System.Reflection.Emit to generate a couple of generic methods, in memory. I'm stuck on how to define the following method: public void MyMethod<T> (arg1 T, ref arg2 T) ... I use MethodBuild.DefineGenericParameter to retrieve a list of GenericTypeParameterBuilders. I then need to create the method's parameters, which is done using MethodBuilder.SetParameters. So my question is, how do I get GenericTypeParameterBuilder 'T' to become a 'ref T' so I can pass it as an element in MethodBuilder.SetParameters' arguments Thanks in advance, Paul. Bill, Thanks for the pointer. I have no idea why I didn't see that before. I'm kind of embarrassed about it now. Best, Paul. ...Show All
Windows Forms tablelayoutpanel
Hi, i am having a problem where tablelayoutpanel childrens are not accessible. is that the way or am i missing something i call addEventToControls on any control , most of them where view is detail have a tablelayoutpanel where dock works nicely. inner_c {System.Windows.Forms.TableLayoutPanel} System.Windows.Forms.Control inner_c.Controls error: cannot obtain value System.Windows.Forms.Control.ControlCollection Private Sub addEventToControls( ByVal c As Control) For Each inner_c As Control In c .Controls AddHandler inner_c.MouseClick, AddressOf Associate If inner_c.HasChildren Then addEventToControls(inner_c) End ...Show All
Internet Explorer Development IE 7 opening to Run Once page with error on it.
I downloaded updates last week. I have been using IE7 for a while with no problem. I dwnloaded the updates. Now when I open my browser the page tries to go to http://runonce.msn.com/runonce2.aspx . There is an error reported for this page and it will not open up I get a blue screen. How do I eliminate this I have my home page set in the tools section but when opening it won't go to my home page until I hit the home button on the tool bar. The error appears to be a web page error I copied what was displayed for the error Line 56 Char:2 Error 'windows.external' is null or notan object Code O URL:http://runonce.msn.com/runonce2aspx ...Show All
Visual C# Convert the following line from Class Diagram to code ?
Hello Guys, I got a class diagram and it had something like this +Find(obj:Object):ICollection<Test> Now to move this to code... I have a Test Class so this is what I did public ICollection<Test> Find(Object obj) { //Now the Test class doesn't inherit ICollection, if I need to return the Result how should I do it. Or do I need to make change to Test class (keeping in mind that code is written by someone else and I can make almost no changes there) } Please advise.... Thanks, Harsimrat ICollection<Test> result = new ICollection<Test>(); I tried doing this and it doesn't work, I get this error... Cannot create an instance of the abstract ...Show All
Visual Basic How to tell if no records are returned
I dont know the code for this or even the technical term so here goes: I am returning data from access, and if nothing is retuned the I want to set my varialbe to XXX else set my varialbe to the value that is returned. See the code below. I tried if NULL and it did not like that I tried if the string value is "" and that did not work either. Thanks in advance! Dim constr As String = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=d:\mydocs\db1.mdb" Dim conn As New OleDbConnection(constr) Dim dt As New DataTable() Dim cmd As New OleDbCommand( "select guid from table1 where company = '" & PathItems(2) & "'" , conn) conn.Open() Dim dr As Ol ...Show All
Visual C++ Problem: float +/- result depend on computation order, Win32/x64, compiler options
Hi, I have this small test program test.cpp: #include <iostream> using namespace std; int main() { cout.precision(8); float v1= -1.9513026f, v2= 0.31476471f, v3= 3.1415927f; cout << "v1-v2+v3= " << v1-v2+v3 << endl; cout << "v1+v3-v2= " << v1+v3-v2 << endl; return 0; } When I compile it (using Visual Studio 2005 SP1) with cl /EHsc test.cpp as a Win64 application (both on Windows XP x64 and Vista x64) and run it I get this result: v1-v2+v3= 0.87552547 v1+v3-v2= 0.87552536 So, depending on the order of computations I get different results. I know that float has only 6-7 significant digits, so some inaccuracy is to be expected (using double in stead of float giv ...Show All
Visual Basic Generics, Collections, and Inheritance...
I have an inheritance model as follows: Public MustInherit Class ProviderBase End Class "So, you are saying you should consider a collection as a type". Yes, List Of SomeType is in fact another type, a new type, that has nothing to do with SomeType. It's List that can contain items of type SomeType or any other types that inherit from SomeType. "What is the purpose of Generics then " Hmm... writing "generic" code List Of SomeType is one of the most common and useful things that Generics enable. Let's say we have 2 classes A and B. Let's also assume that there is no inheritance relation between them to keep things simple. Now let's suppose we need lists that can contain items of type A ...Show All
Windows Search Technologies How to use WDS versions from Managed Code?
Hi, I have a .NET application that needs to search from either WDS v2.5, 2.6 and 3.0 on either Windows XP or Windows Vista RTM. It's like this because I don't know what versions my customers will be using. I have handlers inside my code that detects which version/OS is installed and then uses the correct column names and query formats (as these have changed on each version). For Windows XP I can use this approach, but for Windows Vista (as has been noted elsewhere in this forum) I can't do this anymore - as the WDSQuery COM helper DLL (ISearchDesktop) seems to have been deprecated for the "WDS 3.0 Vista" version. Questions: (1) Are the above statements correct, as in the WDS3.0 version API is called differently whe ...Show All
Visual C++ Bug in Windows 2003 winsocks or MFC CAsyncSockets implementation?
Download this http webserver example from msdn. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vcsample/html/_sample_mfc_httpsvr.asp Compile and run the software on any Windows 2000 box, with Visual C++ 6.0 or Visual Studio 2003. (I have not installed 2005 to try it with it.) Now inside c:\Webpages (the root dir) put a really large file, say 300k. Download it from another machine. If you had installed the server on Windows 2000 - the download goes very fast. I get (150kb/s). I use wget to time the download speed, and download from a unix box at a different location. You can also use Internet explorer to time the results, but wget is more accurate. Now copy the same server program into a windows 2003 machine an ...Show All
Visual C++ /clr Error
// compile with: /clr #ifdef _MANAGED public ref class A { public: static void foobar(); // error C3280 }; #endif I compile the above in Visual Studio C++ 2005 with /clr and get error C3280. The documentation says if the /clr switch is set, it should compile as managed. error C3280: 'OSAPI::Net::Event::foobar' : a member-function of a managed type cannot be compiled as an unmanaged function So, why is a declaration in a compile unit that is built using managed code see this as compiling an unmanaged function Also, when the documentation says function, does the definition of function include method declarations I would say term "function" includes "member method declarations". ...Show All
