wolf777's Q&A profile
Visual C++ invoking cl.exe using CreateProcess
I have a program which uses the cpp to parse input files. It invokes cl.exe using CreateProcess. However, I get the errormsg about mspdb80.dll. I have run vvcvarsall.bat, and from the command line it works normally. I can sove the problem by copying all the necessary files of the C compiler into a different folder and adding that to the path. Is there perhaps a more elegant solution I think that simple solution is to run this program with environment variables set to VS variables. For example, you can create batch file which calls vcvarsall.bat and then your program. ...Show All
Visual C# MapPoint - Faster Route Calculation (Performance Problem)
Hi, We currently are evaluating MapPoint to use in conjunction with our software. Among the needs is a fast path calculator. The main use is to get the travel time and mileage between 2 stops. Any other information (including directions) is non-necessary and a loss in processing. Our first performances tests seem to show that the path calculator is 4 times slower than competing products. The 2 options I am looking for is A- Is it possible to ask for a cost matrix (i.e. send many stops and get the cost/duration between each stop combination) or B- Are there ways of asking for these 2 informations that would make it run faster Note, I'm not looking for solutions of embedding it as an add-in, more about what can I do different wit ...Show All
Visual Basic How to close Byte Array with 0 Byte?
Ok, I need to send socket that has my string converted to byte array (so far it works) but I also need to close the socket with 0 Byte (And this drives me crazy!!!) I have no Idea what 0 byte is but i would assune this is a chank that has no data in it (i staring to hate Sockets XML protocol now) So, does any one know how to close (append) byte array with 0 byte at the end Thanks! PS: Just in case here is how im converting string to bytes for transmition: Dim Buffer() As Byte = System.Text.ASCIIEncoding.ASCII.GetBytes(txtText.Text) _ClientSocket.Send(Buffer, 0, Buffer.Length, Sockets.SocketFlags.None) Thanks alot for your help! ' set last element = to 0 Buffer ( Buffer . Length - 1 ) = 0 'Or ...Show All
Visual Studio 2008 (Pre-release) Is this a defect?
Hello, I have a very simple listview in my window. The listview's view property is set to a gridview. When the listview is contained in a stackpanel (Orientation=Horizontal) my listview loses its scrollbar and some of the columns disappear under the window's right edge. When I change the Orientation=Vertical, then everything is fine again. I'm new to WPF so I can't tell if this is a defect or it is supposed to behave this way Thanks Houman <StackPanel Orientation="Vertical"> <ListView x:Name="InboxListView" DataContext="{Binding ElementName=win, Path=Pictures}" ItemsSource="{Binding}" Margin ="5,5,5,5" View="{StaticResource DetailView}"/> </Stac ...Show All
SQL Server run sql query on multiple databases
I need to run a same query on 15 different databases and union the results. Does any of the experts know how to do this with good performance Any help is appreciated. Phil....the only reason i posted in T-Sql is because i will be using this query in reporting services :) Thanks Nice to see you over here... The only reason I invited you over here is that using the power of SSIS may be better suited than doing a large cross-database query. Here's what I'd suggest... Build a package in SSIS that connects to all of your various databases, and then using the union all component, you can store the results in a staging table to be used in SSRS. Or do you need the results real-time ...Show All
Software Development for Windows Vista Radio Button Patterns in WPF?
I am trying to write an automation provider for a collection of radio buttons in a WPF application. The help files seem to indicate that I should implement a selection provider pattern for the collection, which would mean that the Radio Buttons support the Selection Item provider pattern. Unfortunately radio buttons do not seem to support any Automation patterns. Does this mean I will need to create a custom Radio Button class that implements the pattern I need to use or is there an easier way around this problem HI, I am using the below code to select the radioButton but i am getting the error( given below in red). It seems that radio button don't support selectionItemPattern. I am using m ...Show All
Visual C# How to build a global connection with ODBC?
I could not create a global connection with ODBC. It needs to identify in a method, not in a class out of a method. In this case while program running, it builds and destroys million connection. In every loop in the called method creating a new connection then doing something then closing it. This condition takes so so much time. I want to optimize this. So at first I should create a global solid connection. Program should do own work with out creating new connection but with using the connection. Finally when finishing the program, connection will be closed. Could you help me Regards... Thank you for your no helping. Okay anyway... Below codes are answere. class example { string connectionString = & ...Show All
Windows Forms Combo box problem
hi im having a little problem with combobox control the problem is that when i show another form on the dropdown event of combobox then the combobox dosent remains drop down... but when i show a dialog (.showdialog) the combobox remains drop down even after the dialog box is closed...... is there any way i can close the drop down of combobox without clicking it.....on some event of my dialog box thanks in advance im displaying second form on the dropdown event of combobox of first form now after i close the second form the combobox in the first form shouldnt remain drop down this is okay when i use .show to display first form but when i use .showdialog the combo box remains drop down after i close the ...Show All
Windows Forms Is it a bug? Starting multiple .NET applications from .NET Windows Service.
Subby Dev wrote: I started the jit on dev machine and found a clue that this exection is win32exception and raising in the Windows Application (Form Appliction) which is being started by this service. Here is the what I saw, but I am still not sure why this error comes after 24 processes are started without such error. Any comment Errors: 1. An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll Additional information: The parameter is incorrect And 2. An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.windows.forms.dll Additional information: Error creating wi ...Show All
Visual Studio Express Editions problem with SQL
Dim totaltext As String totaltext = "SELECT SUM(Contributor) FROM GENERAL" Total.Visible = True Total.Text = "Total no of contributions is <b> " & totaltext & "</b>" Im trying to return a value here ie, a number. Its supposed to count the total no of contributors from my database and return me the sum. However, with my code above the label Total always returns me a String instead. Based on the current code,the result is: Total no of contributions is SELECT SUM(Contributor) FROM GENERAL This is wrong. How do I edit the code if I want the output to be: Total no of contributions is 20 How do I make it return an interger instead of just the whole string.. Pls hel ...Show All
SQL Server Deadlock at trigger
a trigger need to insert or update record at the other table in high traffic environments however, the deadlock happens; ie, a trigger running twice at the same time want to need to insert record at the table. i trid to change isolation as SERIALIZABLE or REPEATABLE , but i cannot solve the problem. i guess the "while loop" affects the result because i try to cancel the loop and execute smoothly. How to solve the deadlock Thx ----------------------------- i used the following commands to change isolation level: SET TRANSACTION ISOLATION LEVEL SERIALIZABLE begin transaction commit transaction ----------------------------- the code are as follows: declare setskuCursor cursor local static for select item, qua ...Show All
Smart Device Development Form closing event not fired
Hi, I have an application with only one form. If the user wants to close this form I want to ask him, if he would like to save his work. I'm trying to do this in the form's closing event. But this event is not fired. Has anyone any ide ralph Overriding OnClosing will not change anything. The default implementation fires Closing event. If you are not getting the event, OnCLosing is not called. Application.Exit does not fire OnClosing by default. If you want to make sure the user gets asked, do not use Application.Exit ...Show All
Windows Forms VERTICAL MENU - HOW CAN I DO IT???
Hello, I need to do a vertical menu, like use Outlook on the left There is any control for to do it on the framework Thanks a lot The framework doesn't come with one built in but you can easily make your own or use someone elses: Outlook Bar Control An Outlook Bar Implementation Cheat's Outlook Bar ...Show All
Visual Basic Need help on call fx in a do loop
I am trying to call 4 functions together in a loop With a 2s delay in between each fx However only the last fx is called What is goin on Timer2.Start() Do While Timer2.Enabled = True Call RLeg_Up() If Timer2.Enabled = False Then Call RLeg_Down() Timer2.Start() If Timer2.Enabled = False Then Call LLeg_Up() Timer2.Start() If Timer2.Enabled = False Then Call LLeg_Down() 'Only LLeg_Down is called Timer2.Start() End If End If End If Application.DoEvents() Loop Still a noob btw This is how i think the code should be you can do like this to wait 2 second in between two function calls. //Call f ...Show All
Audio and Video Development query for the controller APIs..
Are different controllers supported by simulator Aim to check different controllers on the simulator. Actually, I tried on the simulator, using controller APIs. It is showing that 3 controllers are attached to the simulator (remote controller, keyboard and mouse). I wrote a script in which I created two events and initialised them using initControllerKeyEvent Api. First Event was initialised with parameter ' id ' having value of keyboard id and the key value was ' 0x30 ' for VK_1' key code, and the second Event was initialised with parameter ' id ' having value of mouse id and the key value was ' 0x01 ' for VK_MOUSE_1' key code. Expected output : On dispatching these events, two different images should be generated according to the event ...Show All
