Yustos's Q&A profile
Visual Basic html editing problams
i have create a file : Imports System.io ..... System.IO.File.Create( "C:\filename.html" ) now i want to edit it : <html> bla </html> i know that i can use Streamwriter but Dim StreamW As StreamWriter streamw.write("<html>bla</html>") doesnt work what shold i do to wirte into html / txt files with stream writer o so FileStream make files and i changed the post right after you post yours i guess ... and i dont really understand you can you explain about filestream ...Show All
.NET Development MSDN 64-bit issue
I am developing 64-bit Windows program and need to use CListCtrl and CTreeCtrl. But there are following sentences in MSDN: CListCtrl::SetItemData http://msdn2.microsoft.com/en-us/library/936147y4.aspx BOOL SetItemData( int nItem, DWORD_PTR dwData ); Sets the 32-bit application-specific value associated with the item specified by nItem. Similar sentences appear in CListCtrl::GetItemData(), CListCtrl::InsertItem() and CTreeList::SetItemData(), etc. How do I understand "32-bit" Does it mean I cannot pass 64-bit value to it or just Microsoft forgot to update these pages Where should I get help on this issue Jessie: Your assumption of overlooked documents is correct. The DWO ...Show All
Visual Basic Limit on Events??
I'm trying to setup events in a Sudoku game and some of then keep dissapearing. some subs have 81 events for 81 boxes but the ones I am having trouble with only have 9 each in 9 boxes like so Private Sub Row_3(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles c9.TextChanged, c8.TextChanged, c7.TextChanged, _ b9.TextChanged, b8.TextChanged, b7.TextChanged, _ a9.TextChanged, a8.TextChanged, a7.TextChanged Private Sub Row_2(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles c6.TextChanged, c5.TextChanged, c4.TextChanged, _ b6.TextChanged, b5.TextChanged, b4.TextChanged, _ a6.TextChanged, a5.TextChanged, a4.TextChanged Private Sub Row_1(ByVal sender As System.Object, ByVal e As System.Event ...Show All
Visual Studio Express Editions project settings
hello. i recently downloaed visual c++ express edition and am planning to utilize it while i begin to learn opengl. as per the instructions, i am told to create a win32 application, and go to project settings to add opengl libraries... i can seem to find project settings. how do i view the project settings of my project and successfully LINK the opengl libraries into my build environment thanks in advance. The project settings only appear when you have a project loaded, you can press ALT+F7 to view them. The easiest way to link the libraries is using the #pragma comment statement from your source files ie: #pragma comment (lib,"OpenGL32") #pragma comment(lib,"GLu32") ...Show All
Windows Forms TextBox problem
Hi everyone I met a problem when using vc2005 to build a form Application(about a calculator).I dragged a TextBox named show into Form1 and set one of the TextBox's property:RightToLeft to Yes,but find a very intersting problem:if I use this sentence:show->Text="-123",it displayed "123-".then I made a test:set the RightToLeft property to No then it can display "-123"very well.but I do want it show the string from right to left, who can tell me why If I want it display"-123"(right to left style),how should I modify the code There are my test code build in another project: #pragma once namespace Again { using namespace System; using namespace System::ComponentModel; using namespace Syste ...Show All
Visual Studio Express Editions displaying database details customly
im not sure if any of you have ever seen the championship manager type games, they display the players in a nice clean way (without the grid etc) is there a way to do this in vb or is it pushing it a bit too far It's easy to do in VB, But a somewhat different kind of programming unreliant upon binding and the data designer is required. You can alway bring data into a table or tables or load displays as you see fit and that's the way I prefer to do it. The penalty is of course that more code is involved. ...Show All
Visual C# Proceses and Arguments?
How Would I Send a command to CMD like netstat through c# and So far My app can open CMD I'm lost from here... Any help would be appreciated TY... you would start a process with arguments for example. System.Diagnostics.Process.ProcessStartInfo thePSI = new System.Diagnostics.Process.ProcessStartInfo("netstat"); thePSI.Arguments = " argsHere "; System.Diagnostics.Process.Start(thePSI); does this help Basically you create a PSI - ProcessStartInfo, which allows you to customize how the process should run, such as create no window or wait until its finished processing or redirect the stream inputs and outputs etc.... once configured, then you execute that process using Process.Start() http://msdn2.microsoft.com/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using multiple matrixes
hi, i wrote c# code before and i'm i began to learn directx programming. i read the dxsdk for managed code, i have come to the tutuorial 5 : using meshes and i want to try moving meshes that i created in 3dsmax. as i searched the forum for using multiple meshes, the knowledge that i gain, as follows; 1. i must declare a new matrix for using translation on a mesh, (for every mesh i must declare a matrix), 2. after i declared a matrix and put a mesh into it, if i want to move it, i move the matrix, using transformation functions. 1st question " did i understand truly " 2nd question " can someone send sample code (or link of course) about declaring multiple meshes and matrixes," ...Show All
Visual C# Unable to find SHObjectProperties
Hi.. I am using the SHObjectProperties. I have written the code as: public partial class Form1 : Form { [ DllImport ( "shell32.dll" , EntryPoint = "SHObjectProperties" , CharSet = CharSet .Auto)] public static extern bool CallPropDialog( IntPtr hwnd, GetProperties dwType, string szObject, string szPage); public enum GetProperties { SHOP_PRINTERNAME = 0x00000001, // lpObject points to a printer friendly name SHOP_FILEPATH = 0x00000002, // lpObject points to a fully qualified path+file name SHOP_VOLUMEGUID = 0x00000004 // lpObject points to a Volume GUID }; private void Form1_Load( object sender, EventArgs e) { CallPropDialog ( ...Show All
Visual FoxPro VFP Bug... Or is it a feature?
Hi all; In a grid's AfterRowColChange I have the following: if CertainCondition this.AllowCellSelection = .T else this.AllowCellSelection = .F. endif This is basically to implement a 'when' for the record the user is in. I have noticed that in some cases the AfterRowColChange won't fire. I have used ReadOnly (Instead of AllowCellSelection) and it works fine. Aleniko Well... you may be right, but when I move to a different ROW using the mouse - it fails. when using the keyboard - it works. A note here: It fails only when the records are different and not the same. thank you all ...Show All
Software Development for Windows Vista WASAPI IsFormatSupported and exclusive
Hello Im getting tired of googling about WASAPI and only finding hits on my OWN code :) What are we supposed to do if we want to do exclusive mode and IsFormatSupported just returns AUDCLNT_E_UNSUPPORTED_FORMAT, and doesnt even provide a "closet match". Are we supposed to try all millions of permutations of members in WAVEFORMATEX(TENSIBLE), and at the end, after failing all of them, realise that this device doesnt do Exclusive at all I dont know about you but i would kind of like to get the equivalent of GetMixFormat from an exclusive mode device, at least its "prefered" internal format. Cheers Hello. And thanks for the added info. Sorry about the shared vs excl ...Show All
SQL Server sql express installation error
Hi, I have tried to install sql express several times and each time it fails to start the sql service during the install process. I am copying part of the three log files below. File Name :C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0008_REHMANK-PC_Core.log Running: ActivateLoggingAction at: 2006/11/11 13:33:57 Complete: ActivateLoggingAction at: 2006/11/11 13:33:57, returned true Running: DetectPatchedBootstrapAction at: 2006/11/11 13:33:57 Complete: DetectPatchedBootstrapAction at: 2006/11/11 13:33:57, returned true Action "LaunchPatchedBootstrapAction" will be skipped due to the following restrictions: Condition "EventCondition: __STP_LaunchPatchedBootstrap__2836" returned false. Running: Per ...Show All
SQL Server Changing collation in SQL 2000
I have a database in SQL 2000 on which I am trying to convert the collation to case insensitive from case sensitive. I am trying to use DTS to do this. The master database is already case insensitive. I have created a new database on the same server with the proper collation. I am then trying to use the DTS to import the data by replacing all objects. I am essentially trying to copy all the database objects changing only the collation. Everytime I try the process, I get errors and the process stops. It does not tell me what the errors are. Could someone please give me some guidance on what may be causing this problem, and where I can find what kind of errors are occurring Thank you Garry ...Show All
Visual C++ Regular expressions for VC6?
Hello Comunity, i read about ATL Class Library that they habve an functions for regular expressions in VC6, if this is true, where can i download this library, please post an link(url) for me! With best regards Mirsad Concerning Boost on VC6, this thread just came up: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=703421&SiteID=1 VC6 didn't use Boost as a test suite, and Boost probably never targeted VC6. Brian ...Show All
Microsoft ISV Community Center Forums To find Whether a value in a cell is pasted?
Hi, Actually if we copy - paste a value of one cell into another, the format of the copied cell, like font,color, size etc, overrides that of the cell in which the value is pasted. Is there any way where we can prevent this. Thanks i think there are a no. of ways of doing it... 1) right-click on the cell that you wanna paste, then select "Paste Special", and in the Paste Special dialogue box select "Values" or "Formula". 2) when you select the cell you wanna copy, copy from the Formular bar (ie. highlight the text in the formula bar then CTRL+C) instead of hitting CTRL+C when the target cell is selected. ...Show All
