tinaM's Q&A profile
Visual Studio Changing default behaviour of GenerateResource
Hi, The strongly typed resource class that's automatically generated by the designer from the .resx file results a in a class that's internal, whereas I'd like it to be public. The background to this is in a message I posted earlier today: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=187755&SiteID=1 It seems the problem should be solvable by customizing the build process somehow. This is what I've tried so far: 1) Modified GenerateResource task in the Microsoft.Common.Targets file so that PublicClass="true". Doesn't work--generated class is still internal. 2) Changed the Build Action of the ...Show All
Windows Search Technologies Display text results
For some reason, text documents are not being displayed in the preview pane. Instead, they are displayed in Notepad. If the first result of a search happens to be a text document, Notepad opens automatically as soon as the results window is displayed, which can be quite annoying. This is happening both with the latest release version of WDS and with the 2.6.5.5373 beta. Is there any way to configure text to display in the preview pane instead of Notepad Hi Jerry, Working on getting an answer to this. Please stay tuned. Thanks, Bill Connors Program Manager, Windows Desktop Search - Communit ...Show All
Visual Basic Where can I find real looking playing cards
I asked this question once before and was directed to the Blackjack starter kit. The problem with those cards is they don't look real. Is there anywhere else I can obtain images of playing cards (hopefully free) to use in making my own card game lol - "try a newsagent" Actually, scanning them was a good idea, although a royal pain. Thank you. ...Show All
Software Development for Windows Vista Playing a wmv file
Hi I am looking to play a wmv file through directshow. I would like to play both the audio as well as the video streams. Basically i have a wmv file i need to read it and play it. I am working on win mobile 5.0. Also i have heard of the windows media source filter but not enough documentation available on it. If anybody could guide me i would be grateful Regards Adil Saleem I don't have win mobile, so I'm not sure what's available there. On xp, I'd suggest looking at IGraphBuilder::RenderFile. ...Show All
Visual Studio Team System Restore a specific file
Hi, Is it possible to restore a specific file that was deleted in the last version Thanks, Michael You should be able to undelete files and folders in version control. From the command line, run "tf undelete [item-name]". From within Visual Studio, turn on "Show deleted items in Source Control Explorer" under the Tools -> Options -> Source Control -> Visual Studio Team Foundation Server menu, and then navigate to the item in Source Control Explorer. Hope this helps! Cheers, Adam ...Show All
Visual C++ MessageBox memory leak/corruption problem
I have a main thread that displays a message box using CDialog's MessageBox function. And there's another thread that exits the application. Termination of the MessageBox (without the user pressing "OK") is corrupting memory or causing memory leaks. In debug mode it says "user breakpoint is reached in code .. ". Is there a simple way to close the messagebox before terminating the application so that there won't be memory corruption or memory leaks Things I tried are: * Using pClassPointer->SendMessageToDescendants(WM_CLOSE, 0, 0, TRUE, FALSE); This is not working! I do not know why! I ...Show All
SQL Server SSIS Extension Catalog
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
Visual C++ MFC ClassWizard from typelib for automation
I'm trying to use automation in a simple MFC application. I've created a CApplication class from the PowerPoint library. It creates the class fine, but it won't compile. There are various variables renamed and not understood. Here are some examples... c:\work\powerpointautomation\autoproject\autoproject\capplication.h(3) : warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\OFFICE11\\msppt.olb' is already a macro; use the 'rename' qualifier c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(414) : error C2371: 'FontPtr' : redefinition; different basic types c:\program files\mi ...Show All
Visual C++ declare/initialize int?
Hello, I wish to have an integer inumber to use as the index in myArray[inumber] How do I declare/initialize this value Also can I have something similar to the C# code of private string[] results; results = new string[myArray.Length]; Thanks Geoff Jonathan, I got there just before your message - largely by trying anything I could think of! Thanks Geoff ...Show All
Visual J# axWebBrowser
I have this problem in vusal j#, C:\Work\Form1.jsl(92): Cannot find method 'Navigate(String)' in 'AxSHDocVw.AxWebBrowser' I have no clue how to fix this, the program works on my friends comp but not mine, I'm running win xp sp2 with zone alarm security suite installed. Please reply -- Thanks I have been trying to do exactly the same thing, however, what you have suggested there, does not work for me. Anything I could do ...Show All
Visual C# Problem in getting handle using WindowFromAccessibleObject
Hi All! I am having a problem in obtaining the handle of a particular accessible object using WindowFromAccessibleObject. First, let me show you my code: private static string GetWindow(IAccessible iAccessibleControl) { try { ...Show All
Windows Forms equivalent of Datagrid.CurrentRowIndex in DatagridView 2.0?
DatagridView.CurrentRow.Index does not work the same as Datagrid.CurrentRowIndex. How to get the equivalent Example: If you scrolled to a row using the arrow keys in a Datagrid in 1.x and using ProcessCmdKey to capture the enter key you could get that row number in Datagrid.CurrentRowIndex But in 2.0 if you attempt the same operation the DatagridView.CurrentRow.Index returns the row that you previously were on not the row you moved to and hit enter on. How about this: DataGridView.CurrentCellAddress.Y Tony ...Show All
Visual Studio Team System WebDav supports in Web Test
Is there a way to simulate WebDav HTTP request in WebTest Different from standard HTTP request (only GET and POST), web dav supports other verb (OPTIONS, PROFIND, and so on). Can I simulate this in Web Test The stream was got from LoadRunner since VSTS can't record the binary request. However, I need a way to conver those stream so that i can use it in VSTS. ...Show All
.NET Development Brief BeginAccept() question
Hi, I noticed a new overloaded version of BeginAccept in the 2.0 framework, specifically: public IAsyncResult BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, Object state ) If I understand it correctly, BeginAccept can now be used to return the first "recieveSize" bytes sent to the socket once EndAccept is called from within the callback. Anyway, here's my question: normally BeginAccept is used only to return a connection to a socket, not to return data. Once connected you can use the asynchronous BeginReceive/EndReceive to read the stream, but since you aren't guaranteed the number of ...Show All
.NET Development Expiration of Dlls
Hi, I am a new comer to c# and .net. I am currently required to solely maintain a c# and asp.net based web application. My ex-colleague who worked on the application says that the dlls will expire this month end. He says he has set expiration dates and this is locked in an encrypted file. To decrypt and remove the expiration dates, he has to come in person, use his active USB card and unlock the code. I don't understand this. Can somebody please explain what he has done Thanks, Bell Hi! It appears that he has embed in code something related to dates and expiration, I can guess a dozen of ways t ...Show All
