Mahesha's Q&A profile
Visual Studio Express Editions Program opens, then closes right away
I have writen this code: # include <iostream> using namespace std; int main () { cout << "Hello World" ; return 0; } then compiled it, but when I open the executable, it opens then closes right away, and I was told that it's running to fast, is there any line of code that will make a set pause np ;) remeber, any "return <number>;" (replace <number> with any number) in "int main()" will end the program. if you dont want to display anything at the end do: #include <iostream> #include <windows.h> using namespace std; int main() { cout &l ...Show All
Visual Studio Tools for Office Why I sometimes lost CommandBarButtonEvents
I have a class for inserting tags in word 2003 using System; using System.Collections.Generic; using System.Text; using Office = Microsoft.Office.Core; using Word = Microsoft.Office.Interop.Word; using System.Data.SqlClient; using System.Collections; using System.Xml; namespace WordTest { public class WordEditor { private string [] PersonFields = { "NAME" , "FIRSTNAME" , "FULLNAME" , "COMPANYNAME" , "TITLEADDRESS" , "TITLELETTER" , "FAX" , "ADDRESSA" , "ADDRESSB" , "POSTALCODE" , "PHONE" , "EMAIL" , "CITY" , "PERSONID" , "NEGOTIATOR" }; private string ...Show All
Visual Studio Express Editions Is there a list of Code Words?
Is there a place I can look at to see a list of all the main code words (are they called reserved codewords ). As a beginner, a lot of the problem is to know what words exist to be able to use. Things like open, close, hide - these are the easy ones which are important. Also things like "I want to move this from a to b", "I want to change the colour from this to that" etc etc. I'm also interested in getting to know the various maths codewords and how to write formulas. Any help and guidance is much appreciated!!! Regards, and Happy Programming!! Steve And apart from the inbuilt math keywords in VB you may want to look at the .NET framework math namespace for specific mathematical methods. http:// ...Show All
Visual Basic How to restrict user to tab (no mouse) selection
Hello, There are 9 numerical TextBox plus other TextBox fields on a DataEntry Tabpage. How to restict the user ability to MouseClick in one of these numerical fields The reason - to eliminate repeating if statements (which writes 0.0 s in the fields), in the case the user MouseClick into one of these numerical field but fails to enter any numbers. As it is now, data entry are into the numerical fields are limited to NumberKeys and initially the DateEntry Tabpage numerical TextBoxes are loaded with 0.0 by the Data>DataBinding>Advanced setting. Greetings, You are my hero, I have to mull over what you said, but thanks to you I am learning. ---------------------------------------------------------------- ...Show All
Visual C# Time
Okay, so I am trying to make an alarm clock program for computer, to familiarize myself with C#. What I need help with, is I have the dateTimePicker tool for setting the alarm, and I have a label for displaying the current time. My coding problem, as it were, is that I cannot figure out how to make the label display the current time, or how to get my program to play the music when the time comes around. I already have the ability to open a file, and have set the file filters for WAV, WMA, MP3, MP4, and MIDI files. so, my program can open files, but of course, at this moment, it cannot use them. Any help would be greatly appreciated. hmmmm, maybe I should check ALL the properties before I ask. Than ...Show All
Audio and Video Development UserOps again...
Has anyone successfully prevented default handlers for e.g. skip next, pause, etc My programming doesn't seem to keep the default handlers from being called: var VK_SKIP_NEXT = 0xC7, VK_SKIP_PREV = 0xC8; function handleEvent(evt) { switch (evt.key) { case VK_SKIP_NEXT, VK_SKIP_PREV: stop Event (evt); } } function stopEvent(evt) { evt.stopPropagation(); evt.preventDefault(); } application.addEventListener("controller_key_up", stopEvent, false); application.addEventListener("controller_key_down", handleEvent, false); I tried this just now (using Peter's fix) and I am getting errors from the HD-XA1 but the Sonic Simulator is running it fine...Peter...if it's ...Show All
Visual C++ Embed png and dat files in exe
Hi, I need help on how to embed files in my exe application. I've use the option: add recourses, but it only lists bitmaps, won't let me choose png files ... and also, when I tried that out with a smaller demo that has bmp's then I could not add the .dat file. I obviously don't know what I'm doing here I have an .exe file that uses sprites that I have stored in folderstructure: data/'name of group'/'type of group'/'name of item'/ and inside that folder I have a .dat file and .png files. The program needs to be able to read from the .dat file (which tells the program, in what order the .png files in that folder, should be shown in the game). I'm using VisualStudio2005 - standard edition, and my application is Win32. Than ...Show All
.NET Development MMS Streamer...
Hello, i dont know if this is the right place... i need to make a mms streamer(if it is posible to a disk file)... does anybody have a example thanks!!! ...Show All
Windows Forms Graphic Maps in Visual Basic
I am going to develop an application that tracks physical inventory within a warehouse. I'd like to have a graphical map of the warehouse and when you click on a bin within the map it could bring up information about that bin and let quanitities, etc be edited. The problem is that the bins aren't always square or rectangle. It would need to support parallelagrams. Does anyone know if VB.NET supports this type of an interactive graphical map Is there any documentation You should be able to do this pretty easily by creating a CustomControl and drawing the bins yourself - the easiest way being to create bitmap images of the various bin shapes and then drawing those to the control (you could also draw the sh ...Show All
SQL Server Frustrated with Nested Groups/Lists subtotals
I have a set of three nested lists. Office_List header sum(fields!Cost.value,"Office_List") sum(fields!Access.value,"Office_List") Clerk_List header sum(fields!Cost.value,"Clerk_List") sum(fields!Access.value,"Clerk_List") Order_List header sum(fields!Cost.value,"Order_List") sum(fields!Access.value,"Order_List") Order_ List detail: Fields!Cost.value Fields!Access.value Fields!Total.value Order_List Detail: Table_Detail Order_List footer Clerk_List Footer Office_List footer Order_list groups by order id Clerk_list groups by clerk id Office_list groups by office id Using the sample above for the list header Or ...Show All
Visual Studio Express Editions Problems Compiling
I'm having troubles compiling my program and I'm not sure why it isn't generating the correct names. G:\RadASM\Cpp\Projects\TypeSpeech>cl TypeSpeech.cpp /link /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. TypeSpeech.cpp Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. /out:TypeSpeech.exe /nodefaultlib kernel32.lib user32.lib gdi32.lib ole32.lib sapi.lib TypeSpeech.obj TypeSpeech.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function "long __stdcall WndPr ...Show All
SQL Server SQL Query: Select with subfunction count() silly problem MS-SQL 2005
I'm working on an MS-SQL 2005 server, and feel totally lost on fixing a simple problem of reading count() from the main Table! I think I did the this easely in SQL 2000 Please; Tables (Some Columns, Collates and constraints removed to save space): CREATE TABLE [dbo].[Bruker_Detalj]( ---> User info AS BrukerID [PostID] [int] IDENTITY(1,1) NOT NULL, ---> About 4000 Columns now [KonsulentID] [varchar](5) NOT NULL, [BrukerID] [int] NOT NULL, [Etternavn] [varchar](50) NOT NULL, [Fornavn] [varchar](50) NOT NULL, ...(several Columns removed) CREATE TABLE [dbo].[Bruker_Tiltak]( ---> User Action AS BrukerID [PostID] [int] IDENTITY(1,1) NOT NULL, ---> About 50000 Columns now [KonsulentID] [varchar](5) NOT NULL, [BrukerID] [int] ...Show All
Visual Basic Restarting a Program
Been searching quite a bit, so my question is: 1.-is there a way to completely close the program and restart it again 2.- or to restore the memory values and clean everything like it was freshly run Im working on a small program that uses a database(access) based login for University class, problem is, once I clean the main instance (let's say form2, and form1 is the login ) when form1 calls form2 will give an error( if form2 was closed using the me.close or similars ) (triying to go back to the start , similarly to style #2 ) it depends what you mean by restart. If you are talking about completely restarting your own application you can use Application.Restart(). If you mean "resetting" your a ...Show All
Visual Studio VB6 broken after installing 2005 (Installer comes up)
I installed 2005 Team Suite and now whenever I run VB6, I get the installer. It takes over an hour, running 1-3 times per cycle. Eventually VB6 comes up, but as soon as I exit and go back in the cycle repeats. A coworker who is installing the same new products is experiencing this, as well. Here's the best part... Running Filemon.exe shows that it's accessing my removable drive E:. So when I launch VB6 at home, it works perfectly, but when I stop the drive, it fails. There are no files installed on E: and I did not install the product from E:. I don't get it! Some Event Log entries: Detection of product '{1862162E-3BBC-448F-AA63-49F33152D54A}', feature 'Visual_Studio_Ent_Suite', component '{9C843E45-C138-43EE-A224-7DB2F4A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TitleLocation writeable on the 360?
Let's say I run some code like this on the 360: string fullpath = Path.Combine( StorageContainer.TitleLocation, "new_file.dat" ); FileStream fs = File.Open( fullpath, FileMode.Create, FileAccess.Write ); Will this work on the 360 Or is "TItleLocation" read-only Assuming this will work are there any FileMode operations that are off limits in TitleLocation or it's subdirectories If this can be done, then is there any limit to the amount of space that can be written to TitleLocation or it's subdirectories other than the available free space on the 360 HD Thanks - Ryan Yeah, I got it, thanks. Sorry to have confused the issue. Now, you CAN fake an input channel by creati ...Show All
