MAwais's Q&A profile
Visual Studio Express Editions How do I into Sleep mode by VC 6.0
I would like to into sleep state after program executed 5 secs later. I know the sleep modes are include 6 states that S0~S5. The simple information of these modes are show as below. S1 (POS) ==> Stop HDD and monitor power, but CPU and memory still alive. S3 (Suspend) ==> Stop CPU and HDD. Store data to RAM. S4 (Hibernate) ==> Stop CPU, memory, HDD. Store data to HDD. Now, I can control my program into S3 and S4 by "SetSystemPowerState". But I don't know how I can into S1 mode. Could you please give me some hint If SetSystemPowerState() or any APIs does not into S1 mode, could you please help me to close monitor and stop HDD Thanks, Rabin After ...Show All
Audio and Video Development New HD DVD players
Toshiba recently announced new HD DVD players, the cheapest one is $499. But unfortunately True HD tv's are still very expensive. BTW anyone knows if they support persistent storage, or do all hd dvd players have this as default and how much http://www.hardwarezone.com/news/view.php id=5455&cid=5 128M of persistant storage is mandatory for all HD DVD players. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=415927&SiteID=1 TrueHDs are expensive Where do you live They are pretty cheap in the USA (comparable to tube TVs of equivalent size of ~5 yrs ago). ...Show All
SQL Server Script to export and import all the reports
Hello, Is any one can share with me a script to export all my reports in all subfolder in order to import the report to other server without using the backup and restore I know I should use RSS utility but I need help Thanks Idan ...Show All
Visual Studio 2008 (Pre-release) mexHttpsBinding anonymous authentication not enabled
I am trying to publish a mex for my service that requires HTTPS and Windows Integrated Authentication. However, when I enable the mex, it complains that anonymous authentication is not enabled in IIS. Is there anyway around this without turning on anonymous access within IIS Point the mex endpoint to the same authN'ed binding that your service endpoint uses, as the default mex binding requires anonymous access. I guess explicit host name means that you should assign a host header to the IIS web-site (your web site - properties - web site folder - advanced button - add - advances web site identification), but I have not looked into this matter. KjellSJ ...Show All
Visual Basic C++ dll in VB help needed
My vb coding below is wrong but i just want to show what i have so far. the C++ dll works like this it Loads the library, then loads and image, then Recognition outputs the results. There is a C++ example code at the both as to how it works. I'm trying to apply the same steps to VB. Can anyone help me Thanks. this is in a module... Declare Sub XMLoadLibrary Lib "OCRDll.dll" (ByVal LoadLibrary As String) Declare Sub XMLoadImage Lib "OCRDll.dll" (ByVal LoadImage As String) Declare Sub XMRecognition Lib "OCRDll.dll" (ByVal Recognition As String) Private Sub Form_Load() Dim LoadImage As String Dim LoadLibrary As String Dim getRec As Long LoadLibrary = "c:\xmRadio\lib\library.xcl" LoadImage = ...Show All
Visual Basic my.settings string,integer,color,bool work, system.data.datatable does not?
I have a my.setting named DGVDataTable with system.data.datatable as the type. When the application is started it is nothing. As long as I do not close the app it works fine & I have verified values with watches. This is true for debug and for a published app. I have other my.settings with types of integer, color, bool, string, and they work just fine. I am fairly new at VB2005, so the answer may be something simple that I am just missing. Here is the code to initialize the Table which is called toward the end of form1.load. It throws an exception without the if because it is nothing, which I expect for the first run, however not for subsequent runs. If My .Settings.DGVSettingsTable Is Nothing Then My .Settings.D ...Show All
Visual Studio Tools for Office Working with Headers
Using VSTO in VS.net 2005. I would like to include a picture in my MS Word 2003 header. The picture I would like to insert at runtime will depend on an action selected by the user in a smart tag ("Insert Logo"). I would like to just include the possible pictures in the same directory with the application add-in, and refer to the paths at run time. So far I have had problems getting the header pane to close, and figuring out how to insert a picture from a file. This is the first page header code I started with: Private Sub AddHeaderPic() Dim i as integer i=1 ' for first section For i = i to 1 Globals.ThisDocument.Section(i).Headers(Word.WDHeaderFooterIndex.wdHeaderFooterFirstPage) _ .Range.Sel ...Show All
Windows Forms Problem accessing forms through an externally compiled dll
Alright, I think I have it, when the main program compiles the .dll, it will add a reference to itself (compiler.exe) inside the .dll, now the .dll can change a variable within a public static class. But what about forms I get a bunch of referencing errors, I'm pretty sure that I am missing some references that forms need, possibly. This is the list of errors I get, I don't get them when I don't try to make the form variable and hide the form. Line number 14, Error Number: CS0012, 'The type 'System.ComponentModel.Component' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.; Line number 14, Error Number: CS0012, 'The ...Show All
Visual Basic Shrinking a file
Hi, I have a long file, and I want to make it smaller. How can I do it If you want to create your own compression algorithm from existing one, search for Lossless data compression, http://en.wikipedia.org/wiki/Lossless_data_compression . You'll find lot's of topic and lot's of document to read. ...Show All
Visual Studio Team System Comparing two branches
Is it possible to compare two branches to see what the differences are without attempting to merge We didn’t ship a UI for comparing folders (including branches) in v1, sorry. You can use the command-line tf diff <http://msdn2.microsoft.com/en-us/library/6fd7dc73.aspx> with the /recursive switch. Robert Horvick <http://blogs.msdn.com/roberthorvick/> has several blog posts on implementing recursive diff programmatically. Search this forum for a few more ideas I can’t recall. ...Show All
Software Development for Windows Vista How directshow play data in buffer(not in file)
Hi, I am new to direct show application development. I wonder whether DirectShow ONLY play media data in file format . I read my media stream data from internet, put these data into buffer(not file). I want to play these data using DirectShow directly. There is no file during the process. Please tell me which directshow interface should i use to do this Thanks, Yuan ...Show All
SQL Server how to make new database sql server 2005!
i had no problems working whith sql server 2000 but whith 2005 i am unable to make new database! question : HOW respond asap You have two main options you can do it through the commad line tools sqlcmd (You should look at the books online, or run the sqlcmd / for information on the syntax), Or you could install the sql server management tools for the SQL Express system. This is a free download that you can get from the MSDN Downloads site, or from the SQL Express home page on MSDN. Of course if you do have the Visual Studio Express IDE's (any of them) Installed you can create database in them by using user instances. To do this go to your project and add a database file from the add item dialogs. ...Show All
SQL Server Using Flat File Connection Manager Editor with delimited format
Hello everyone: I am new with SSIS and I have a problem that I don’t know solving it. I have a simple package with a delimited flat file source which is loaded into a table in a SQL Server database. Below is the import format: - Row delimiter: carriage return and line feed {CR/LF} - Column delimiter: Comma {,} - Text qualifier: “ In the source file, the data looks like this: “string1 ”, 34, “”, , ,” string2 “text1” string2” , “ “, This package with DTS works, but now with SSIS does not, when I see the “previous rows” in the Flat File Connection Manager Editor, the last column has incorrect information and when I create a new file without spaces and without twice “” in the sa ...Show All
Visual Studio 2008 (Pre-release) Generic GridView formatting function
Hi, everybody. I need to write a function like this: static void PrintTable( ListView TableToPrint, String Title, PageOrientation Orientation) The function traverses TableToPrint elements and copy them into a Visual in order to prepare for printing Listview content. Can you help with a fragment of C# code that performs this kind of "generic" traversing and copying Printing part is already working. Thank you all. EDV Thanks, Josh. The function needs to rearrange listview rendering in order to print appropriately (resizing columns, changing font size, word wrapping, etc). So, I'd like to copy portions of the input ListView elements into a printer-friendly ListView tha ...Show All
Visual Basic Error while loading a reference
Hi, I have a problem I can't solve. I use VB.NET project and I use VS.NET 2003 problem. I have added a .dll reference to my project. Then I closed the project without saving and then started it again. When I try to add the reference again it gives an error message: A reference to 'theref.dll' could not be added. Could not load the type library. Error loading type library/DLL. Does anyone have any ideas /M check if the added dll has any dependencies.. it yes put them in a sep folder. add this folders path to environment variable Path then it should load the dll. ...Show All
