modtran's Q&A profile
SQL Server cannot connect to integration services
When i try to connect to SQL 2005 integration services from object explorer i get connected (in the sense it shows in object explorer running packages stored packages ..)but when i try to exand any of these objects i get the following error -------------------------------------------------------------------------------------------------- Failed to retrieve data for this request(Microsoft.sqlserver.smoEnum) Additional information The sql server specified in SSIS service configuration is not present or not available.This might occur when there is no default instance of Sql server on the computer. For more information see "config integeration services" in server 2005 books online. Login time out expired An error ha ...Show All
Visual FoxPro Command Buttons in Grid
FoxPro newbie, working on foxpro 7.0 and im trying to place a command button in a grid. I haven't been able to view the code that makes up the form, only event/property/method codes. There a trick where you use a wizard to build the grid and replace the text boxes it puts in with combo boxes or something else. What i did set the text boxes visible property to False and then I put in a command button that uses it's value. When I run the form the column with the command button doesn't show anything, when you click on the field you can see the button and click it. when you move to another field and click it disapears from the last field and appears on the currant one. i set bound property to False i don't know what else to do. any help is app ...Show All
Visual C# Get selected text form MS Office Word
hi everyone, i want get selected text from ms office word. i use Ms AA 2 component but i dont get any thing . please give me solution. Hi, I guess you want to paste something from word to somewhere else in program. If I've misunderstood you, pls let me know. If so, reference to clipBoard in .NET Framework: http://msdn2.microsoft.com/en-us/library/c2thcsx4(VS.80).aspx Thanks ...Show All
Visual C++ Debug Assertion Failed at AfxGetResourceHandle
Hai any one please help me In this issue I am using a VC++ 6.0 Project in VC++.NET 2003 IDE (Only IDE is changed not code it is native code only which is written in VC++ 6.0) & My OS WinXP Professional It is compiled and build successfully. Actually my project configuration is an EXE, which I am calling from another EXE of VC++ only. My project contains only one dialog box, which will be shown when we select an option from the Main EXE When we are trying to show the dialog using if (dlg.DoModal() == IDOK) { m_selectedPAK = dlg.m_SelectedPAK; } in dllinit.cpp line no. 240 hInst = AfxGetResourceHa ...Show All
Software Development for Windows Vista Is there a "standard place" to store writeable not plublic shared files to please UAC?
Our program has two files must be writeable (a database file and a config file) which are shared by all dedicated users of the program on a single system. The automatic redirection to a single users directory path is not helpfull in that case. Before changing our program: Is there a standard place on Vista to store writeable not public shared files (We whant also to pass Vista Logo test...) Thanks in advance Well then that is GREAT news. Yes, I do get myself confused because I have needs for both and I had run into that confusion over the erratically-functioning ssfCOMMONDOCUMENTS with the Shell Objects. Anyone else reading this please keep in mind that there is no such documented constant as ssfCOMMONDOCUMENTS, so t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpaceWars - can you work around Shader limitations?
Two days ago I started working on the XNA framework. This is also the first time I've had any dealings with C# or DirectX. I got the first game tutorial working pretty easily, but I couldn't get the SpaceWars starter kit to run properly. Firstly, I had to set AllowMultiSampling to false (this is a known, and widely discussed problem), and also switch to keyboard mode. With this done, the game ran, but I could not see some of the graphics (ships, backdrop & bullets) in either retro or evolved mode. Score and explosions appeared ok. As far as I can tell, this is because the missing graphics are using CompiledEffect shader objects which are loaded from the FX files. My poor graphics card (Nvidia GeForce 440MX) doesn't support any shader ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detect mouse click on a sprite
Anybody know how to detect a mouse click on a sprite I would guess you'd start off reading something like mouse.x and mouse.y and then iterating through all the coordinates of the sprite to see if the point clicked is in the sprites non-transparent pixels (slow) or.. Is there a way to hit test the sprites region Since this is specifly a game dev kit, I would assume there would be a method in the sprite class part of the engine to handle this like I would in vb.net for a polygon region(InRegion), and not have to iterate through each non-transparent pixel. Is that in the sprite class for hit testing If not, why ...that's a standard thing for a game(hit testing/collision detection). Guess thats for a MS XNA developer to answer ...Show All
Visual Studio 2008 (Pre-release) Strange behavior setting HorizontalAlignment of GridViewColumnHeader to Left
Try the following xaml : <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Page.Resources> <Style TargetType="{x:Type GridViewColumnHeader}"> <Setter Property="HorizontalAlignment" Value="Left" /> </Style> <XmlDataProvider x:Key="TestData" XPath="/Contacts"> <x:XData> <Contacts xmlns=""> <Contact Name="Foo" Telephone="555-12345" /> <Contact Name="Bar" Telephone="555-54321" /> </Contacts> </x:XData> </XmlDataProvider&g ...Show All
Visual C# get key from hashtable
How to get hashtable's key and index if I know the value if (hashtable.ContainsValue("default")) Thanks, Hi, if you want to go from a value to a key, I believe the only way you can do it is to loop through the Keys collection, accessing each value of the hashtable until you get the value you want, at which point you then know the associated key. Mark. ...Show All
Visual Studio Express Editions Use Multi-SqlDataReader to retrive data from multi-table
I use two SqlDataReader to retrive data from two tables: conn = New SqlConnection(connectionstring) conn.Open() Dim cmd As SqlCommand Dim reader1 As SqlDataReader, reader2 As SqlDataReader sql = "Select * from scheme.opheadm" cmd = New SqlCommand(sql, conn) reader1 = cmd1.ExecuteReader sql = "Select * from scheme.opdetm" cmd = cmd. CommandText = sql reader2 = cmd.ExecuteReader There's an error with the last code line: "There is already an open DataReader associated with this Command which must be closed first." I change it to create two SqlCommand for each SqlDataReader: Dim cmd1 As SqlCommand, cmd2 As SqlCommand ...Show All
Smart Device Development Problem with an existing connection was forcibly closed by the remote host
Hi, I got a very strange problem on WM5. My code works fine on PC2002, PC2003, .NET1.1 (WinXP) but it does not on WM5. The code works fine when I query a web-site that respondes with Keep-Alive tag and it doesn't work when a web-site respondes with Proxy-Connection : Close. The code is very simple - it accepts connections and for each connection creates two sockets, one is accepted socket and the other soket is to a proxy server. Then the code just passes queries-responses between browser on PDA and the proxy server. There are 2 threads per connection, one thread reads from browser and writes to my proxy server, another thread reads from the proxy and writes to the browser. I have removed all unnecessary code t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game designing
I'm a Canadian citizen reside in Jordan , My son is 12 years old ,he has made a full online game (Designing and Programming ) which can be played all over the world live and it's now already live on internet , So kindly please advise me how to improve him ( where can he develop his skills and knowledge ) . F.Y.I he has never study programming and Designing he is a student. Regards B. Mirza Wish I could have made games when I was 12, but all the computers back then needed vacuum tubes, punched cards, and cost over a million dollars. ...Show All
SQL Server what is the best way to do this search?
what is the best way to do this search I want a stored procedure which can serach in any of the filled form on my C# windows application. The textBoxes are: txtFileNo txtIDNumber txtContactNumber txtName txtBuilding txtBlock txtBox txtEmail I want SQL Server to search for any fiiled text, so if the user enterred txtName and txtEmail this it will onlt search for txtName and txtEmail. I know how to do this directly from the form but I want to perform this using stored procedure. Sorry, didn't see... Dynamic SQL is really hard to debug without seeing the query that is being executed. Add: select @sql_string And look at the SQL being returned. Post it here if you cannot figure out the issue. ...Show All
SQL Server Newbie: Am I really using Everywhere?
I just went through Steve Lasker's slide show on Everywhere (which was very informative) and noticed that when he setup the connection to the Everywhere database it had a .sdf extension. However, when I look at my database using SQL Server Management Studio Express it shows me as having the standard .mdf and .ldf files and *no* sdf file. I thought for a moment that I might be using Express but when I look at the connection properties of my (or what I think is my Everywhere) database I see: Product Name: Microsoft SQL Server Desktop Engine Product Version: 8.0.818 SP3 Instance Name: MICROSOFTBCM If I look at an Express database, I see connection properties of: Product Name: Microsoft SQL Server Express Edition with Advanced S ...Show All
Windows Forms KeyDown
Hello, I want to capture special Keys from the DataGridView during EditMode (e.g. when the Caret is showing) This was my first guess: ...somewhere in the code ... dataGridViewSuche.EditingControl.KeyDown -= new KeyEventHandler(EditingControl_KeyDown); dataGridViewSuche.EditingControl.KeyDown += new KeyEventHandler(EditingControl_KeyDown); later... private void EditingControl_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Return) { BeginSearch(); // special Reaction to "Return" e.Handled = true; } Console.WriteLine(e.KeyCode.ToString()); // just for looking.... } As i understood, i can not get preprocessed charaters (like vk_return, vk_up ...) like this ...Show All
